1{ lib
2, python
3, buildPythonPackage
4, bootstrapped-pip
5, fetchPypi
6, mock
7, scripttest
8, virtualenv
9, pretend
10, pytest
11, setuptools
12, wheel
13}:
14
15buildPythonPackage rec {
16 pname = "pip";
17 version = "19.2.3";
18 format = "other";
19
20 src = fetchPypi {
21 inherit pname version;
22 sha256 = "e7a31f147974362e6c82d84b91c7f2bdf57e4d3163d3d454e6c3e71944d67135";
23 };
24
25 nativeBuildInputs = [ bootstrapped-pip ];
26
27 # pip detects that we already have bootstrapped_pip "installed", so we need
28 # to force it a little.
29 pipInstallFlags = [ "--ignore-installed" ];
30
31 checkInputs = [ mock scripttest virtualenv pretend pytest ];
32 # Pip wants pytest, but tests are not distributed
33 doCheck = false;
34
35 meta = {
36 description = "The PyPA recommended tool for installing Python packages";
37 license = lib.licenses.mit;
38 homepage = https://pip.pypa.io/;
39 priority = 10;
40 };
41}