From 143faeee0e1279906e0dc18d912338da83b8d151 Mon Sep 17 00:00:00 2001 From: iarspider Date: Thu, 6 Oct 2022 00:32:56 +0200 Subject: Add checksum for py-distlib 0.3.6 (#33009) * Add checksum for py-distlib 0.3.6 * Update package.py * Update package.py * Update package.py --- var/spack/repos/builtin/packages/py-distlib/package.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/py-distlib/package.py b/var/spack/repos/builtin/packages/py-distlib/package.py index bf3d529d97..385ff4cbf8 100644 --- a/var/spack/repos/builtin/packages/py-distlib/package.py +++ b/var/spack/repos/builtin/packages/py-distlib/package.py @@ -10,10 +10,21 @@ class PyDistlib(PythonPackage): """Distribution utilities""" homepage = "https://bitbucket.org/pypa/distlib" - pypi = "distlib/distlib-0.3.3.zip" + pypi = "distlib/distlib-0.3.6.tar.gz" + version("0.3.6", sha256="14bad2d9b04d3a36127ac97f30b12a19268f211063d8f8ee4f47108896e11b46") version("0.3.4", sha256="e4b58818180336dc9c529bfb9a0b58728ffc09ad92027a3f30b7cd91e3458579") version("0.3.3", sha256="d982d0751ff6eaaab5e2ec8e691d949ee80eddf01a62eaa96ddb11531fe16b05") # pip silently replaces distutils with setuptools depends_on("py-setuptools", type="build") + depends_on("py-setuptools@44:", when="@0.3.6:", type="build") + depends_on("py-wheel@0.29.0:", when="@0.3.6:", type="build") + + def url_for_version(self, version): + url = "https://files.pythonhosted.org/packages/source/d/distlib/distlib-{0}.{1}" + if version >= Version("0.3.5"): + ext = "tar.gz" + else: + ext = "zip" + return url.format(version, ext) -- cgit v1.2.3-70-g09d2