blob: d138cb2f8e1fbd904433b08d5dd71aee24f9c9e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{
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;
};
}
|