summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Wójcik <w8jcik@gmail.com>2024-02-11 21:48:29 +0100
committerGitHub <noreply@github.com>2024-02-11 14:48:29 -0600
commit4d91fbdf0fb5c1aa12c4ef46a803afbb75ac784b (patch)
tree47f7354c7a63b9579c7329db4950bd56f92340c0
parentd7aa9d38fa7f8349cb8cbacdaabfa9d1a8395547 (diff)
downloadspack-4d91fbdf0fb5c1aa12c4ef46a803afbb75ac784b.tar.gz
spack-4d91fbdf0fb5c1aa12c4ef46a803afbb75ac784b.tar.bz2
spack-4d91fbdf0fb5c1aa12c4ef46a803afbb75ac784b.tar.xz
spack-4d91fbdf0fb5c1aa12c4ef46a803afbb75ac784b.zip
py-versioneer-518: add a workaround (#42534)
-rw-r--r--var/spack/repos/builtin/packages/py-versioneer-518/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-versioneer-518/package.py b/var/spack/repos/builtin/packages/py-versioneer-518/package.py
index dec34deb97..f7d1e29817 100644
--- a/var/spack/repos/builtin/packages/py-versioneer-518/package.py
+++ b/var/spack/repos/builtin/packages/py-versioneer-518/package.py
@@ -14,6 +14,10 @@ class PyVersioneer518(PythonPackage):
pypi = "versioneer-518/versioneer-518-0.19.tar.gz"
git = "https://github.com/python-versioneer/versioneer-518.git"
+ # A workaround for invalid URL, most likely due to presence of 518 in the name.
+ def url_for_version(self, version):
+ return super().url_for_version(f"518-{version}")
+
version("0.19", sha256="a287608997415f45401849d1227a42bb41b80a6e4a7da5776666f85ce6faec41")
depends_on("py-setuptools", type="build")