summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-fqdn/package.py
blob: ed0340894a691d9feca83ec0dd9837a597803e8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class PyFqdn(PythonPackage):
    """Validates fully-qualified domain names against RFC 1123, so that they
    are acceptable to modern bowsers."""

    homepage = "https://github.com/ypcrts/fqdn"
    pypi = "fqdn/fqdn-1.5.1.tar.gz"

    license("MPL-2.0")

    version("1.5.1", sha256="105ed3677e767fb5ca086a0c1f4bb66ebc3c100be518f0e0d755d9eae164d89f")

    depends_on("py-setuptools", type="build")

    depends_on("py-cached-property@1.3:", when="^python@:3.7", type=("build", "run"))