about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pip
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2020-11-05 16:09:24 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2020-11-05 16:10:05 +0100
commitb66f954dfc90eea8aa0c416baff1abe2fd7b7c3d (patch)
treeb841f877b8ff67fd9cee01dbb22d4e94f06f4f1e /pkgs/development/python-modules/pip
parent75d9e713d98599fdfea87b1231c66813a0dbe5d6 (diff)
python2.pkgs.pip: fix regression in 20.2
Diffstat (limited to 'pkgs/development/python-modules/pip')
-rw-r--r--pkgs/development/python-modules/pip/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pip/default.nix b/pkgs/development/python-modules/pip/default.nix
index 9db7cdea6721a..d451ca4a9b256 100644
--- a/pkgs/development/python-modules/pip/default.nix
+++ b/pkgs/development/python-modules/pip/default.nix
@@ -10,6 +10,8 @@
 , pytest
 , setuptools
 , wheel
+, isPy27
+, fetchpatch
 }:
 
 buildPythonPackage rec {
@@ -27,6 +29,13 @@ buildPythonPackage rec {
 
   nativeBuildInputs = [ bootstrapped-pip ];
 
+  patches = lib.optionals isPy27 [
+    (fetchpatch {
+      url = "https://github.com/pypa/pip/commit/94fbb6cf78c267bf7cdf83eeeb2536ad56cfe639.patch";
+      sha256 = "Z6x5yxBp8QkU/GOfb1ltI0dVt//MaI09XK3cdY42kFs=";
+    })
+  ];
+
   # pip detects that we already have bootstrapped_pip "installed", so we need
   # to force it a little.
   pipInstallFlags = [ "--ignore-installed" ];