nixpkgs/pkgs/development/python-modules/jaraco_itertools/default.nix
2020-06-11 10:00:01 +02:00

30 lines
709 B
Nix

{ 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";
};
patches = [ ./0001-Don-t-run-flake8-checks-during-the-build.patch ];
buildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ inflect more-itertools six ];
checkInputs = [ pytest ];
checkPhase = ''
pytest
'';
meta = with lib; {
description = "Tools for working with iterables";
homepage = "https://github.com/jaraco/jaraco.itertools";
license = licenses.mit;
};
}