python.pkgs.pip: move expression

This commit is contained in:
Frederik Rietdijk 2018-04-08 08:40:08 +02:00
parent d775b0350a
commit 4421dbc217
2 changed files with 35 additions and 25 deletions

View File

@ -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;
};
}

View File

@ -10029,31 +10029,7 @@ in {
piexif = callPackage ../development/python-modules/piexif { }; piexif = callPackage ../development/python-modules/piexif { };
pip = buildPythonPackage rec { pip = callPackage ../development/python-modules/pip { };
pname = "pip";
version = "9.0.1";
name = "${pname}-${version}";
src = pkgs.fetchurl {
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
sha256 = "09f243e1a7b461f654c26a725fa373211bb7ff17a9300058b205c61658ca940d";
};
# pip detects that we already have bootstrapped_pip "installed", so we need
# to force it a little.
installFlags = [ "--ignore-installed" ];
checkInputs = with self; [ 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 = licenses.mit;
homepage = https://pip.pypa.io/;
priority = 10;
};
};
pip-tools = callPackage ../development/python-modules/pip-tools { pip-tools = callPackage ../development/python-modules/pip-tools {
git = pkgs.gitMinimal; git = pkgs.gitMinimal;