pythonPackages.fetchPypi: support SRI hashes

This commit is contained in:
Frederik Rietdijk 2019-07-11 16:28:46 +02:00 committed by Frederik Rietdijk
parent 30f299027a
commit 8074133844

View file

@ -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;
})