1{ lib, buildPythonPackage, fetchPypi, setuptools_scm
2, inflect, more-itertools, six, pytest
3}:
4
5buildPythonPackage rec {
6 pname = "jaraco.itertools";
7 version = "6.0.1";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "6939e47806a39330a9f9772bf9ea910da39abc159ff2579d454a763358553439";
12 };
13
14 pythonNamespaces = [ "jaraco" ];
15
16 nativeBuildInputs = [ setuptools_scm ];
17
18 propagatedBuildInputs = [ inflect more-itertools six ];
19 checkInputs = [ pytest ];
20
21 # tests no longer available through pypi
22 doCheck = false;
23 checkPhase = ''
24 pytest
25 '';
26
27 pythonImportsCheck = [ "jaraco.itertools" ];
28
29 meta = with lib; {
30 description = "Tools for working with iterables";
31 homepage = "https://github.com/jaraco/jaraco.itertools";
32 license = licenses.mit;
33 };
34}