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