1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 flit-core,
6 pytestCheckHook,
7 six,
8 stdenv,
9}:
10
11buildPythonPackage rec {
12 pname = "more-itertools";
13 version = "10.6.0";
14 format = "pyproject";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-LNf60QCcMcyftqA1EIUJ5lR1R6enODdPEL1JoJ6z7js=";
19 };
20
21 nativeBuildInputs = [ flit-core ];
22
23 propagatedBuildInputs = [ six ];
24
25 nativeCheckInputs = [ pytestCheckHook ];
26
27 # iterable = range(10 ** 10) # Is efficiently reversible
28 # OverflowError: Python int too large to convert to C long
29 doCheck = !stdenv.hostPlatform.is32bit;
30
31 meta = with lib; {
32 homepage = "https://more-itertools.readthedocs.org";
33 changelog = "https://more-itertools.readthedocs.io/en/stable/versions.html";
34 description = "Expansion of the itertools module";
35 license = licenses.mit;
36 maintainers = [ ];
37 };
38}