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