diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2018-04-08 08:40:08 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-04-08 11:36:07 +0200 |
commit | 4421dbc2175a8402a31580c8d146b716ec2b6ad2 (patch) | |
tree | 7409ea2626f9bbe83e3a45e176d72b93e6a4c70d /pkgs/development/python-modules | |
parent | d775b0350a406021b4ec2e548818f86ee6549d30 (diff) | |
download | nixlib-4421dbc2175a8402a31580c8d146b716ec2b6ad2.tar nixlib-4421dbc2175a8402a31580c8d146b716ec2b6ad2.tar.gz nixlib-4421dbc2175a8402a31580c8d146b716ec2b6ad2.tar.bz2 nixlib-4421dbc2175a8402a31580c8d146b716ec2b6ad2.tar.lz nixlib-4421dbc2175a8402a31580c8d146b716ec2b6ad2.tar.xz nixlib-4421dbc2175a8402a31580c8d146b716ec2b6ad2.tar.zst nixlib-4421dbc2175a8402a31580c8d146b716ec2b6ad2.zip |
python.pkgs.pip: move expression
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/pip/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pip/default.nix b/pkgs/development/python-modules/pip/default.nix new file mode 100644 index 000000000000..1da0cc1da5b5 --- /dev/null +++ b/pkgs/development/python-modules/pip/default.nix @@ -0,0 +1,34 @@ +{ lib +, buildPythonPackage +, fetchPypi +, mock +, scripttest +, virtualenv +, pretend +, pytest +}: + +buildPythonPackage rec { + pname = "pip"; + version = "9.0.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "09f243e1a7b461f654c26a725fa373211bb7ff17a9300058b205c61658ca940d"; + }; + + # pip detects that we already have bootstrapped_pip "installed", so we need + # to force it a little. + installFlags = [ "--ignore-installed" ]; + + 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; + }; +} \ No newline at end of file |