summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2019-07-11 16:28:46 +0200
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2019-07-11 18:01:04 +0200
commit807413384443b3e65d8f4624b6650695f7c18e78 (patch)
tree75f2972580130c087ae55489a27a5d6262d31ff1
parent30f299027a5d24b51fd7e0f6cf8c8a74495e8ea8 (diff)
pythonPackages.fetchPypi: support SRI hashes
-rw-r--r--pkgs/development/interpreters/python/fetchpypi.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/interpreters/python/fetchpypi.nix b/pkgs/development/interpreters/python/fetchpypi.nix
index 91dd331e6f3e..e60c9df1f8bb 100644
--- a/pkgs/development/interpreters/python/fetchpypi.nix
+++ b/pkgs/development/interpreters/python/fetchpypi.nix
@@ -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;
})