1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 unittestCheckHook, 6 six, 7 stdenv, 8}: 9 10buildPythonPackage rec { 11 pname = "more-itertools"; 12 version = "5.0.0"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "38a936c0a6d98a38bcc2d03fdaaedaba9f412879461dd2ceff8d37564d6522e4"; 17 }; 18 19 nativeCheckInputs = [ unittestCheckHook ]; 20 propagatedBuildInputs = [ six ]; 21 22 # iterable = range(10 ** 10) # Is efficiently reversible 23 # OverflowError: Python int too large to convert to C long 24 doCheck = !stdenv.hostPlatform.is32bit; 25 26 meta = { 27 homepage = "https://more-itertools.readthedocs.org"; 28 description = "Expansion of the itertools module"; 29 license = lib.licenses.mit; 30 }; 31}