summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorErik Heeren <erik.heeren@epfl.ch>2023-01-25 18:24:50 +0100
committerGitHub <noreply@github.com>2023-01-25 11:24:50 -0600
commit902a40bf722e584bf70981c93b0c2814693a5100 (patch)
tree0d10c1752125f89b31a945f419b6bade4ba4567d /var
parenta2d51cd4dbee68c6ce7e6d9a98dba8b7e8d34081 (diff)
downloadspack-902a40bf722e584bf70981c93b0c2814693a5100.tar.gz
spack-902a40bf722e584bf70981c93b0c2814693a5100.tar.bz2
spack-902a40bf722e584bf70981c93b0c2814693a5100.tar.xz
spack-902a40bf722e584bf70981c93b0c2814693a5100.zip
py-lazy: add 1.4 and 1.5 (#35124)
* py-lazy: add 1.4 and 1.5 * py-lazy: add url_for_version
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-lazy/package.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-lazy/package.py b/var/spack/repos/builtin/packages/py-lazy/package.py
index 4f976dc7db..c18b87d7cd 100644
--- a/var/spack/repos/builtin/packages/py-lazy/package.py
+++ b/var/spack/repos/builtin/packages/py-lazy/package.py
@@ -11,6 +11,19 @@ class PyLazy(PythonPackage):
pypi = "lazy/lazy-1.2.zip"
+ version("1.5", sha256="cb3d8612aa895a48afe8f08860573ba8ef5ee4fdbe1b3cd606c5f50a16152186")
+ version("1.4", sha256="2c6d27a5ab130fb85435320651a47403adcb37ecbcc501b0c6606391f65f5b43")
version("1.2", sha256="127ea610418057b953f0d102bed83f2c367be13b59f8d0ddf3b8a86c7d31b970")
depends_on("py-setuptools", type="build")
+
+ def url_for_version(self, version):
+ url = "https://pypi.io/packages/source/l/lazy/"
+
+ if version < Version("1.5"):
+ url += "lazy-{0}.zip"
+ else:
+ url += "lazy-{0}.tar.gz"
+
+ url = url.format(version)
+ return url