summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLydéric Debusschère <lyderic.de@gmail.com>2023-12-06 15:42:48 +0100
committerGitHub <noreply@github.com>2023-12-06 08:42:48 -0600
commit071c74d1858d02179e7b94fbcd5406dd6b9301e9 (patch)
tree950a19e6fe3463ea7d4a1c4a7f648be17e28c6f3
parent51435d6d69825f9b40b9fe46d0290c5d321ef9a7 (diff)
downloadspack-071c74d1858d02179e7b94fbcd5406dd6b9301e9.tar.gz
spack-071c74d1858d02179e7b94fbcd5406dd6b9301e9.tar.bz2
spack-071c74d1858d02179e7b94fbcd5406dd6b9301e9.tar.xz
spack-071c74d1858d02179e7b94fbcd5406dd6b9301e9.zip
py-tldextract: new package (#41330)
* py-tldextract: new package * py-tldextract: add version 5.1.1 * py-tldextract: fix version constraint on py-setuptools-scm --------- Co-authored-by: LydDeb <lyderic.debusschere@eolen.com>
-rw-r--r--var/spack/repos/builtin/packages/py-tldextract/package.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-tldextract/package.py b/var/spack/repos/builtin/packages/py-tldextract/package.py
new file mode 100644
index 0000000000..e97b4a00a2
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-tldextract/package.py
@@ -0,0 +1,32 @@
+# Copyright 2013-2023 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 PyTldextract(PythonPackage):
+ """
+ Accurately separates a URL's subdomain, domain, and public suffix,
+ using the Public Suffix List (PSL). By default, this includes the
+ public ICANN TLDs and their exceptions. You can optionally support
+ the Public Suffix List's private domains as well.
+ """
+
+ homepage = "https://github.com/john-kurkowski/tldextract"
+ pypi = "tldextract/tldextract-3.4.1.tar.gz"
+
+ maintainers("LydDeb")
+
+ version("5.1.1", sha256="9b6dbf803cb5636397f0203d48541c0da8ba53babaf0e8a6feda2d88746813d4")
+ version("3.4.1", sha256="fa9e50c4a03bede2a1d95dca620d661678484626858ccf388cf9671a0dd497a4")
+
+ depends_on("py-setuptools@61.2:", when="@5.1.1", type="build")
+ depends_on("py-setuptools", type="build")
+ depends_on("py-setuptools-scm@6.2:+toml", when="@5.1.1", type="build")
+ depends_on("py-setuptools-scm", type="build")
+ depends_on("py-idna", type=("build", "run"))
+ depends_on("py-requests@2.1.0:", type=("build", "run"))
+ depends_on("py-requests-file@1.4:", type=("build", "run"))
+ depends_on("py-filelock@3.0.8:", type=("build", "run"))