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 format = "setuptools"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "38a936c0a6d98a38bcc2d03fdaaedaba9f412879461dd2ceff8d37564d6522e4"; 18 }; 19 20 nativeCheckInputs = [ unittestCheckHook ]; 21 propagatedBuildInputs = [ six ]; 22 23 # iterable = range(10 ** 10) # Is efficiently reversible 24 # OverflowError: Python int too large to convert to C long 25 doCheck = !stdenv.hostPlatform.is32bit; 26 27 meta = { 28 homepage = "https://more-itertools.readthedocs.org"; 29 description = "Expansion of the itertools module"; 30 license = lib.licenses.mit; 31 }; 32}