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