importlib: disable for Python>2.6 and PyPy

importlib is part of the standard library for Python > 2.6 and PyPy.

Tested with nix-shell for all *Packages.importlib versions.
This commit is contained in:
Frederik Rietdijk 2015-08-28 15:09:31 +02:00
parent 6b866a37fc
commit 50aed1ee10
1 changed files with 5 additions and 3 deletions

View File

@ -6805,14 +6805,16 @@ let
};
};
importlib = if isPy26 then (buildPythonPackage {
importlib = buildPythonPackage rec {
name = "importlib-1.0.2";
disabled = (!isPy26) || isPyPy;
src = pkgs.fetchurl {
url = "http://pypi.python.org/packages/source/i/importlib/importlib-1.0.2.tar.gz";
md5 = "4aa23397da8bd7c7426864e88e4db7e1";
};
doCheck = false;
}) else null;
};
influxdb = buildPythonPackage rec {
name = "influxdb-0.1.12";