update-python-libraries: enable nix command
Since the Nix command used is an implementation detail of the script, it's the script that will have to be updated if the command changes, it's the script that should be opting into this, rather than making the user do it globally.
This commit is contained in:
parent
6425011efe
commit
3dae05bb91
|
@ -342,7 +342,7 @@ def _update_package(path, target):
|
|||
text = _replace_value('version', new_version, text)
|
||||
# hashes from pypi are 16-bit encoded sha256's, normalize it to sri to avoid merge conflicts
|
||||
# sri hashes have been the default format since nix 2.4+
|
||||
sri_hash = subprocess.check_output(["nix", "hash", "to-sri", "--type", "sha256", new_sha256]).decode('utf-8').strip()
|
||||
sri_hash = subprocess.check_output(["nix", "--extra-experimental-features", "nix-command", "hash", "to-sri", "--type", "sha256", new_sha256]).decode('utf-8').strip()
|
||||
|
||||
|
||||
# fetchers can specify a sha256, or a sri hash
|
||||
|
|
Loading…
Reference in a new issue