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