python.pkgs.bootstripped-pip: remove obsolete argparse code

because we no longer have Python 2.6.
This commit is contained in:
Frederik Rietdijk 2017-06-06 14:41:54 +02:00
parent 7111351963
commit 76e082922f

View File

@ -13,11 +13,6 @@ let
format = "wheel"; format = "wheel";
sha256 = "f2900e560efc479938a219433c48f15a4ff4ecfe575a65de385eeb44f2425587"; sha256 = "f2900e560efc479938a219433c48f15a4ff4ecfe575a65de385eeb44f2425587";
}; };
argparse_source = fetchPypi {
pname = "argparse";
version = "1.4.0";
sha256 = "c31647edb69fd3d465a847ea3157d37bed1f95f19760b11a47aa91c04b666314";
};
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
pname = "pip"; pname = "pip";
version = "9.0.1"; version = "9.0.1";
@ -34,11 +29,8 @@ in stdenv.mkDerivation rec {
unzip -d $out/${python.sitePackages} $src unzip -d $out/${python.sitePackages} $src
unzip -d $out/${python.sitePackages} ${setuptools_source} unzip -d $out/${python.sitePackages} ${setuptools_source}
unzip -d $out/${python.sitePackages} ${wheel_source} unzip -d $out/${python.sitePackages} ${wheel_source}
'' + stdenv.lib.optionalString (python.isPy26 or false) ''
unzip -d $out/${python.sitePackages} ${argparse_source}
''; '';
patchPhase = '' patchPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
''; '';