Files
nixpkgs/pkgs/development/python-modules/jaraco-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

47 lines
898 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools-scm,
inflect,
more-itertools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "jaraco-itertools";
version = "6.4.3";
pyproject = true;
src = fetchFromGitHub {
owner = "jaraco";
repo = "jaraco.itertools";
tag = "v${version}";
hash = "sha256-LjWkyY9I8BBYpFm8TT3kq4vk63pNQrnZ15haJCQ5xlk=";
};
pythonNamespaces = [ "jaraco" ];
build-system = [ setuptools-scm ];
postPatch = ''
# downloads license texts at build time
sed -i "/coherent\.licensed/d" pyproject.toml
'';
dependencies = [
inflect
more-itertools
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "jaraco.itertools" ];
meta = {
description = "Tools for working with iterables";
homepage = "https://github.com/jaraco/jaraco.itertools";
license = lib.licenses.mit;
};
}