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