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 compute (builtins.removeAttrs attrs ["format"]);
|
||||||
|
|
||||||
in makeOverridable( {format ? "setuptools", sha256, ... } @attrs:
|
in makeOverridable( {format ? "setuptools", sha256 ? "", hash ? "", ... } @attrs:
|
||||||
let
|
let
|
||||||
url = computeUrl (builtins.removeAttrs attrs ["sha256"]) ;
|
url = computeUrl (builtins.removeAttrs attrs ["sha256" "hash"]) ;
|
||||||
in fetchurl {
|
in fetchurl {
|
||||||
inherit url sha256;
|
inherit url sha256 hash;
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user