py-versioneer-518: add a workaround (#42534)

This commit is contained in:
Maciej Wójcik 2024-02-11 21:48:29 +01:00 committed by GitHub
parent d7aa9d38fa
commit 4d91fbdf0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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")