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

49 lines
1.1 KiB
Nix
Raw Normal View History

2018-04-08 06:40:08 +00:00
{ lib
, python
2018-04-08 06:40:08 +00:00
, buildPythonPackage
, bootstrapped-pip
, fetchFromGitHub
2018-04-08 06:40:08 +00:00
, mock
, scripttest
, virtualenv
, pretend
, pytest
, setuptools
, wheel
2018-04-08 06:40:08 +00:00
}:
buildPythonPackage rec {
pname = "pip";
2020-06-13 08:40:39 +00:00
version = "20.1.1";
format = "other";
2018-04-08 06:40:08 +00:00
src = fetchFromGitHub {
owner = "pypa";
repo = pname;
rev = version;
2020-06-13 08:40:39 +00:00
sha256 = "01wq01ysv0ijcrg8a4mj72zb8al15b8vw8g3ywhxq53kbsyhfxn4";
name = "${pname}-${version}-source";
2018-04-08 06:40:08 +00:00
};
# Remove when solved https://github.com/NixOS/nixpkgs/issues/81441
# See also https://github.com/pypa/pip/issues/7808
patches = [ ./reproducible.patch ];
nativeBuildInputs = [ bootstrapped-pip ];
2018-04-08 06:40:08 +00:00
# pip detects that we already have bootstrapped_pip "installed", so we need
# to force it a little.
pipInstallFlags = [ "--ignore-installed" ];
2018-04-08 06:40:08 +00: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 ];
homepage = "https://pip.pypa.io/";
2018-04-08 06:40:08 +00:00
priority = 10;
};
2018-04-14 15:12:10 +00:00
}