Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 41 lines 995 B view raw
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.8.0"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "more-itertools"; 18 repo = "more-itertools"; 19 tag = "v${version}"; 20 hash = "sha256-ZKvucnPFCA6Q4EQn/nKC9LIevOdSYXHIJ3w3Frregic="; 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 = { 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 = lib.licenses.mit; 39 maintainers = [ ]; 40 }; 41}