diff options
Diffstat (limited to 'pkgs/development/python-modules/pip/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pip/default.nix | 39 |
1 files changed, 27 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/pip/default.nix b/pkgs/development/python-modules/pip/default.nix index 310de7c4c7174..058970320f90d 100644 --- a/pkgs/development/python-modules/pip/default.nix +++ b/pkgs/development/python-modules/pip/default.nix @@ -2,23 +2,32 @@ lib, buildPythonPackage, fetchFromGitHub, + + # build-system installShellFiles, - mock, - scripttest, - setuptools, - virtualenv, wheel, - pretend, - pytest, + setuptools, # docs sphinx, + # checks + freezegun, + git, + mock, + scripttest, + virtualenv, + pretend, + proxy-py, + pytestCheckHook, + tomli-w, + werkzeug, + # coupled downsteam dependencies pip-tools, }: -buildPythonPackage rec { +let self = buildPythonPackage rec { pname = "pip"; version = "24.0"; format = "pyproject"; @@ -72,17 +81,21 @@ buildPythonPackage rec { cd .. ''; + doCheck = false; + nativeCheckInputs = [ + freezegun + git mock scripttest virtualenv pretend - pytest + pytestCheckHook + proxy-py + tomli-w + werkzeug ]; - # Pip wants pytest, but tests are not distributed - doCheck = false; - postInstall = '' installManPage docs/build/man/* @@ -94,6 +107,7 @@ buildPythonPackage rec { passthru.tests = { inherit pip-tools; + pytest = self.overridePythonAttrs { doCheck = true; }; }; meta = { @@ -102,4 +116,5 @@ buildPythonPackage rec { homepage = "https://pip.pypa.io/"; changelog = "https://pip.pypa.io/en/stable/news/#v${lib.replaceStrings [ "." ] [ "-" ] version}"; }; -} +}; +in self |