diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2019-07-11 16:28:46 +0200 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2019-07-11 18:01:04 +0200 |
commit | 807413384443b3e65d8f4624b6650695f7c18e78 (patch) | |
tree | 75f2972580130c087ae55489a27a5d6262d31ff1 /pkgs/development/interpreters/python/fetchpypi.nix | |
parent | 30f299027a5d24b51fd7e0f6cf8c8a74495e8ea8 (diff) | |
download | nixpkgs-807413384443b3e65d8f4624b6650695f7c18e78.tar nixpkgs-807413384443b3e65d8f4624b6650695f7c18e78.tar.gz nixpkgs-807413384443b3e65d8f4624b6650695f7c18e78.tar.bz2 nixpkgs-807413384443b3e65d8f4624b6650695f7c18e78.tar.lz nixpkgs-807413384443b3e65d8f4624b6650695f7c18e78.tar.xz nixpkgs-807413384443b3e65d8f4624b6650695f7c18e78.tar.zst nixpkgs-807413384443b3e65d8f4624b6650695f7c18e78.zip |
pythonPackages.fetchPypi: support SRI hashes
Diffstat (limited to 'pkgs/development/interpreters/python/fetchpypi.nix')
-rw-r--r-- | pkgs/development/interpreters/python/fetchpypi.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/interpreters/python/fetchpypi.nix b/pkgs/development/interpreters/python/fetchpypi.nix index 91dd331e6f3..e60c9df1f8b 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; }) |