1{ lib, buildPythonPackage, fetchPypi, setuptools-scm
2, inflect, more-itertools, six, pytest
3}:
4
5buildPythonPackage rec {
6 pname = "jaraco.itertools";
7 version = "6.0.3";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "1775bfcad5de275a540a36720c5ab34594ea1dbe7ffefa32099b0129c5604608";
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}