py-metomi-isodatetime: fix url parsing (#41415)

* py-metomi-isodatetime: fix url parsing

* One-liner

* Add note that checksum doesn't work
This commit is contained in:
Adam J. Stewart 2024-01-10 21:47:10 +01:00 committed by GitHub
parent 94885c2402
commit fb320ec313
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,7 @@ class PyMetomiIsodatetime(PythonPackage):
"""Python ISO 8601 date time parser and data model/manipulation utilities."""
homepage = "https://github.com/metomi/isodatetime"
# NOTE: spack checksum does not yet work for epoch versions
pypi = "metomi-isodatetime/metomi-isodatetime-1!3.0.0.tar.gz"
maintainers("LydDeb")
@ -18,3 +19,6 @@ class PyMetomiIsodatetime(PythonPackage):
version("3.0.0", sha256="2141e8aaa526ea7f7f1cb883e6c8ed83ffdab73269658d84d0624f63a6e1357e")
depends_on("py-setuptools", type="build")
def url_for_version(self, version):
return f"https://files.pythonhosted.org/packages/source/m/metomi-isodatetime/metomi-isodatetime-1!{version}.tar.gz"