summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJen Herting <jen@herting.cc>2023-07-19 08:03:21 -0400
committerGitHub <noreply@github.com>2023-07-19 14:03:21 +0200
commit33939656e2a9602f295daf58201f7a32e993b44e (patch)
tree6a1d794a10568e19d9fcaa127563853ce66fe1d9
parent950b5579fb303469778e5a18dacae8edca3633e9 (diff)
downloadspack-33939656e2a9602f295daf58201f7a32e993b44e.tar.gz
spack-33939656e2a9602f295daf58201f7a32e993b44e.tar.bz2
spack-33939656e2a9602f295daf58201f7a32e993b44e.tar.xz
spack-33939656e2a9602f295daf58201f7a32e993b44e.zip
[py-hatch-requirements-txt] new package (#38965)
-rw-r--r--var/spack/repos/builtin/packages/py-hatch-requirements-txt/package.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-hatch-requirements-txt/package.py b/var/spack/repos/builtin/packages/py-hatch-requirements-txt/package.py
new file mode 100644
index 0000000000..6f2489e2a9
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-hatch-requirements-txt/package.py
@@ -0,0 +1,19 @@
+# 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 PyHatchRequirementsTxt(PythonPackage):
+ """Hatchling plugin to read project dependencies from requirements.txt"""
+
+ homepage = "https://github.com/repo-helper/hatch-requirements-txt"
+ pypi = "hatch_requirements_txt/hatch_requirements_txt-0.4.0.tar.gz"
+
+ version("0.4.0", sha256="800509946e85d9e56d73242fab223ec36db50372e870a04e2dd1fd9bad98455d")
+
+ depends_on("python@3.6.1:", type=("build", "run"))
+ depends_on("py-hatchling@0.21:", type=("build", "run"))
+ depends_on("py-packaging@21.3:", type=("build", "run"))