pypi2nix should only be avaliable for python27

This commit is contained in:
Rok Garbas 2013-08-15 14:32:25 +02:00
parent b85984d840
commit 48e89259b1

View File

@ -53,25 +53,6 @@ pythonPackages = modules // import ./python-packages-generated.nix {
inherit python setuptools;
};
pypi2nix = buildPythonPackage rec {
rev = "e231db7e8874d4543a6f0fffc46c0fffbe6108c5";
name = "pypi2nix-1.0_${rev}";
src = fetchurl {
url = "https://github.com/garbas/pypi2nix/tarball/${rev}";
name = "${name}.tar.bz";
sha256 = "0wqk6milnagr0b0v8igjp8p25d5y63pki3pkdy7hbgjxvyw8wril";
};
propagatedBuildInputs = [ pythonPackages."Distutils2-1.0a4" ];
doCheck = false;
meta = {
homepage = https://github.com/garbas/pypi2nix;
description = "";
maintainers = [ stdenv.lib.maintainers.garbas ];
};
};
# packages defined elsewhere
blivet = callPackage ../development/python-modules/blivet { };
@ -6987,4 +6968,27 @@ pythonPackages = modules // import ./python-packages-generated.nix {
};
};
# python2.7 specific eggs
} // pkgs.lib.optionalAttrs (python.majorVersion == "2.7") {
pypi2nix = pythonPackages.buildPythonPackage rec {
rev = "e231db7e8874d4543a6f0fffc46c0fffbe6108c5";
name = "pypi2nix-1.0_${rev}";
src = pkgs.fetchurl {
url = "https://github.com/garbas/pypi2nix/tarball/${rev}";
name = "${name}.tar.bz";
sha256 = "0wqk6milnagr0b0v8igjp8p25d5y63pki3pkdy7hbgjxvyw8wril";
};
propagatedBuildInputs = [ pythonPackages."Distutils2-1.0a4" ];
doCheck = false;
meta = {
homepage = https://github.com/garbas/pypi2nix;
description = "";
maintainers = [ pkgs.stdenv.lib.maintainers.garbas ];
};
};
}; in pythonPackages