python: more-itertools: 4.3.0 -> 5.0.0 / 6.0.0

Upgrade to 5.0.0 for 2.7 and 6.0.0 for other versions.
This commit is contained in:
Frederik Rietdijk 2019-02-14 08:37:20 +01:00
parent 79009ede68
commit 3e4e9abae4
3 changed files with 36 additions and 3 deletions

View File

@ -0,0 +1,31 @@
{ lib
, buildPythonPackage
, fetchPypi
, nose
, six
, stdenv
}:
buildPythonPackage rec {
pname = "more-itertools";
version = "5.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "38a936c0a6d98a38bcc2d03fdaaedaba9f412879461dd2ceff8d37564d6522e4";
};
checkInputs = [ nose ];
propagatedBuildInputs = [ six ];
# iterable = range(10 ** 10) # Is efficiently reversible
# OverflowError: Python int too large to convert to C long
doCheck = !stdenv.hostPlatform.is32bit;
meta = {
homepage = https://more-itertools.readthedocs.org;
description = "Expansion of the itertools module";
license = lib.licenses.mit;
};
}

View File

@ -9,11 +9,11 @@
buildPythonPackage rec {
pname = "more-itertools";
version = "4.3.0";
version = "6.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "c476b5d3a34e12d40130bc2f935028b5f636df8f372dc2c1c01dc19681b2039e";
sha256 = "590044e3942351a1bdb1de960b739ff4ce277960f2425ad4509446dbace8d9d1";
};
checkInputs = [ nose ];

View File

@ -5030,7 +5030,9 @@ in {
inflect = callPackage ../development/python-modules/inflect { };
more-itertools = callPackage ../development/python-modules/more-itertools { };
more-itertools = if isPy27 then
callPackage ../development/python-modules/more-itertools/2.7.nix { }
else callPackage ../development/python-modules/more-itertools { };
jaraco_functools = callPackage ../development/python-modules/jaraco_functools { };