From 807413384443b3e65d8f4624b6650695f7c18e78 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Thu, 11 Jul 2019 16:28:46 +0200 Subject: [PATCH] pythonPackages.fetchPypi: support SRI hashes --- pkgs/development/interpreters/python/fetchpypi.nix | 6 +++--- 1 file 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; })