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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.1 KiB
Nix
Raw Normal View History

2018-04-08 08:40:08 +02:00
{ lib
, buildPythonPackage
, fetchFromGitHub
2018-04-08 08:40:08 +02:00
, mock
, scripttest
, setuptools
2018-04-08 08:40:08 +02:00
, virtualenv
, wheel
2018-04-08 08:40:08 +02:00
, pretend
, pytest
# coupled downsteam dependencies
, pip-tools
2018-04-08 08:40:08 +02:00
}:
buildPythonPackage rec {
pname = "pip";
2023-07-29 11:49:01 -07:00
version = "23.2.1";
format = "pyproject";
2018-04-08 08:40:08 +02:00
src = fetchFromGitHub {
owner = "pypa";
repo = pname;
rev = "refs/tags/${version}";
2023-07-29 11:49:01 -07:00
hash = "sha256-mUlzfYmq1FE3X1/2o7sYJzMgwHRI4ib4EMhpg83VvrI=";
2018-04-08 08:40:08 +02:00
};
postPatch = ''
# Remove vendored Windows PE binaries
# Note: These are unused but make the package unreproducible.
find -type f -name '*.exe' -delete
'';
nativeBuildInputs = [
setuptools
wheel
];
2018-04-08 08:40:08 +02:00
nativeCheckInputs = [ mock scripttest virtualenv pretend pytest ];
2018-04-08 08:40:08 +02:00
# Pip wants pytest, but tests are not distributed
doCheck = false;
passthru.tests = { inherit pip-tools; };
2018-04-08 08:40:08 +02:00
meta = {
description = "The PyPA recommended tool for installing Python packages";
license = with lib.licenses; [ mit ];
homepage = "https://pip.pypa.io/";
changelog = "https://pip.pypa.io/en/stable/news/#v${lib.replaceStrings [ "." ] [ "-" ] version}";
2018-04-08 08:40:08 +02:00
};
2018-04-14 17:12:10 +02:00
}