42 lines
876 B
Nix
42 lines
876 B
Nix
{ lib
|
|
, python
|
|
, buildPythonPackage
|
|
, bootstrapped-pip
|
|
, fetchPypi
|
|
, mock
|
|
, scripttest
|
|
, virtualenv
|
|
, pretend
|
|
, pytest
|
|
, setuptools
|
|
, wheel
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pip";
|
|
version = "19.3";
|
|
format = "other";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "324d234b8f6124846b4e390df255cacbe09ce22791c3b714aa1ea6e44a4f2861";
|
|
};
|
|
|
|
nativeBuildInputs = [ bootstrapped-pip ];
|
|
|
|
# pip detects that we already have bootstrapped_pip "installed", so we need
|
|
# to force it a little.
|
|
pipInstallFlags = [ "--ignore-installed" ];
|
|
|
|
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;
|
|
};
|
|
}
|