nixpkgs/pkgs/development/python-modules/pip/default.nix

45 lines
959 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
, fetchFromGitHub
2018-04-08 07:40:08 +01:00
, mock
, scripttest
, virtualenv
, pretend
, pytest
, setuptools
, wheel
2018-04-08 07:40:08 +01:00
}:
buildPythonPackage rec {
pname = "pip";
2020-01-23 02:02:39 +00:00
version = "20.0.2";
format = "other";
2018-04-08 07:40:08 +01:00
src = fetchFromGitHub {
owner = "pypa";
repo = pname;
rev = version;
2020-01-23 02:02:39 +00:00
sha256 = "1jj0qa47d7pqn2r379p434hxk14ij2qgmr83x65w9ib9l8092fhg";
name = "${pname}-${version}-source";
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 = with lib.licenses; [ mit ];
2018-04-08 07:40:08 +01:00
homepage = https://pip.pypa.io/;
priority = 10;
};
2018-04-14 16:12:10 +01:00
}