Files
nixpkgs/pkgs/development/python-modules/more-itertools/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

42 lines
995 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
flit-core,
pytestCheckHook,
six,
stdenv,
}:
buildPythonPackage rec {
pname = "more-itertools";
version = "10.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "more-itertools";
repo = "more-itertools";
tag = "v${version}";
hash = "sha256-4ZzuWVRrihhEoYRDAoYLZINR11iHs0sXF/bRm6gQoEA=";
};
build-system = [ flit-core ];
propagatedBuildInputs = [ six ];
nativeCheckInputs = [ pytestCheckHook ];
# iterable = range(10 ** 10) # Is efficiently reversible
# OverflowError: Python int too large to convert to C long
doCheck = !stdenv.hostPlatform.is32bit;
meta = {
homepage = "https://more-itertools.readthedocs.org";
changelog = "https://more-itertools.readthedocs.io/en/stable/versions.html";
description = "Expansion of the itertools module";
downloadPage = "https://github.com/more-itertools/more-itertools";
license = lib.licenses.mit;
maintainers = [ ];
};
}