1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/pip/default.nix

42 lines
878 B
Nix
Raw Normal View History

2018-04-08 07:40:08 +01:00
{ lib
, python
2018-04-08 07:40:08 +01:00
, buildPythonPackage
, bootstrapped-pip
2018-04-08 07:40:08 +01:00
, fetchPypi
, mock
, scripttest
, virtualenv
, pretend
, pytest
, setuptools
, wheel
2018-04-08 07:40:08 +01:00
}:
buildPythonPackage rec {
pname = "pip";
2019-10-18 11:42:06 +01:00
version = "19.3.1";
format = "other";
2018-04-08 07:40:08 +01:00
src = fetchPypi {
inherit pname version;
2019-10-18 11:42:06 +01:00
sha256 = "21207d76c1031e517668898a6b46a9fb1501c7a4710ef5dfd6a40ad9e6757ea7";
2018-04-08 07:40:08 +01:00
};
nativeBuildInputs = [ bootstrapped-pip ];
2018-04-08 07:40:08 +01:00
# pip detects that we already have bootstrapped_pip "installed", so we need
# to force it a little.
pipInstallFlags = [ "--ignore-installed" ];
2018-04-08 07:40:08 +01: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 16:12:10 +01:00
}