2018-04-08 08:40:08 +02:00
|
|
|
{ lib
|
2019-07-17 20:36:47 +02:00
|
|
|
, python
|
2018-04-08 08:40:08 +02:00
|
|
|
, buildPythonPackage
|
2019-07-17 20:36:47 +02:00
|
|
|
, bootstrapped-pip
|
2018-04-08 08:40:08 +02:00
|
|
|
, fetchPypi
|
|
|
|
, mock
|
|
|
|
, scripttest
|
|
|
|
, virtualenv
|
|
|
|
, pretend
|
|
|
|
, pytest
|
2019-07-17 20:36:47 +02:00
|
|
|
, setuptools
|
|
|
|
, wheel
|
2018-04-08 08:40:08 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pip";
|
2019-08-31 15:23:58 +02:00
|
|
|
version = "19.2.3";
|
2019-07-17 20:36:47 +02:00
|
|
|
format = "other";
|
2018-04-08 08:40:08 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-08-31 15:23:58 +02:00
|
|
|
sha256 = "e7a31f147974362e6c82d84b91c7f2bdf57e4d3163d3d454e6c3e71944d67135";
|
2018-04-08 08:40:08 +02:00
|
|
|
};
|
|
|
|
|
2019-07-17 20:36:47 +02:00
|
|
|
nativeBuildInputs = [ bootstrapped-pip ];
|
|
|
|
|
2018-04-08 08:40:08 +02:00
|
|
|
# pip detects that we already have bootstrapped_pip "installed", so we need
|
|
|
|
# to force it a little.
|
2019-07-17 20:36:47 +02:00
|
|
|
pipInstallFlags = [ "--ignore-installed" ];
|
2018-04-08 08:40:08 +02:00
|
|
|
|
|
|
|
checkInputs = [ mock scripttest virtualenv pretend pytest ];
|
|
|
|
# Pip wants pytest, but tests are not distributed
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The PyPA recommended tool for installing Python packages";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
homepage = https://pip.pypa.io/;
|
|
|
|
priority = 10;
|
|
|
|
};
|
2018-04-14 17:12:10 +02:00
|
|
|
}
|