Add checksum for py-async-lru 1.0.3 (#33196)

* Add checksum for py-async-lru 1.0.3

* [@spackbot] updating style on behalf of iarspider

* Update var/spack/repos/builtin/packages/py-async-lru/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update package.py

Co-authored-by: iarspider <iarspider@users.noreply.github.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
iarspider 2022-10-13 18:22:37 +02:00 committed by GitHub
parent a8b1314d18
commit f5704fff69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,11 +10,20 @@ class PyAsyncLru(PythonPackage):
"""Simple lru_cache for asyncio"""
homepage = "https://github.com/wikibusiness/async_lru"
pypi = "async_lru/async_lru-1.0.2.tar.gz"
pypi = "async-lru/async-lru-1.0.2.tar.gz"
maintainers = ["iarspider"]
version("1.0.3", sha256="c2cb9b2915eb14e6cf3e717154b40f715bf90e596d73623677affd0d1fbcd32a")
version("1.0.2", sha256="baa898027619f5cc31b7966f96f00e4fc0df43ba206a8940a5d1af5336a477cb")
depends_on("python@3.6:", type=("build", "run"))
depends_on("py-setuptools", type="build")
def url_for_version(self, version):
url = "https://files.pythonhosted.org/packages/source/a/{0}/{0}-{1}.tar.gz"
if version >= Version("1.0.3"):
name = "async-lru"
else:
name = "async_lru"
return url.format(name, version)