Skip to content

Commit

Permalink
py-metomi-isodatetime: fix url parsing (#41415)
Browse files Browse the repository at this point in the history
* py-metomi-isodatetime: fix url parsing

* One-liner

* Add note that checksum doesn't work
  • Loading branch information
adamjstewart committed Jan 10, 2024
1 parent 94885c2 commit fb320ec
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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"

0 comments on commit fb320ec

Please sign in to comment.