mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
Python: fix update script in case no PyPI releases are available for a given version
This commit is contained in:
parent
753aab1494
commit
54eeab4da0
@ -91,7 +91,8 @@ def _get_latest_version_pypi(package, extension):
|
||||
if release['filename'].endswith(extension):
|
||||
# TODO: In case of wheel we need to do further checks!
|
||||
sha256 = release['digests']['sha256']
|
||||
|
||||
else:
|
||||
sha256 = None
|
||||
return version, sha256
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user