aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/jaraco_itertools/default.nix
blob: f5d0b0538b66933ac4eafc30513cdc159d1694e3 (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
{ lib, buildPythonPackage, fetchPypi, setuptools_scm
, inflect, more-itertools, six, pytest
}:

buildPythonPackage rec {
  pname = "jaraco.itertools";
  version = "5.0.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "6447d567f57efe5efea386265c7864652e9530830a1b80f43e60b4f222b9ab84";
  };

  pythonNamespaces = [ "jaraco" ];

  nativeBuildInputs = [ setuptools_scm ];

  patches = [
    ./0001-Don-t-run-flake8-checks-during-the-build.patch
  ];

  propagatedBuildInputs = [ inflect more-itertools six ];
  checkInputs = [ pytest ];

  # tests no longer available through pypi
  doCheck = false;
  checkPhase = ''
    pytest
  '';

  pythonImportsCheck = [ "jaraco.itertools" ];

  meta = with lib; {
    description = "Tools for working with iterables";
    homepage = "https://github.com/jaraco/jaraco.itertools";
    license = licenses.mit;
  };
}