mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
pythonPackages.fetchPypi: support SRI hashes
This commit is contained in:
parent
30f299027a
commit
8074133844
@ -20,9 +20,9 @@ let
|
||||
|
||||
in compute (builtins.removeAttrs attrs ["format"]);
|
||||
|
||||
in makeOverridable( {format ? "setuptools", sha256, ... } @attrs:
|
||||
in makeOverridable( {format ? "setuptools", sha256 ? "", hash ? "", ... } @attrs:
|
||||
let
|
||||
url = computeUrl (builtins.removeAttrs attrs ["sha256"]) ;
|
||||
url = computeUrl (builtins.removeAttrs attrs ["sha256" "hash"]) ;
|
||||
in fetchurl {
|
||||
inherit url sha256;
|
||||
inherit url sha256 hash;
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user