2019-01-18 16:50:57 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, setuptools_scm
|
2019-03-10 13:12:22 +01:00
|
|
|
, inflect, more-itertools, six, pytest
|
|
|
|
}:
|
2018-09-03 02:18:24 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jaraco.itertools";
|
2020-06-06 08:47:14 +02:00
|
|
|
version = "5.0.0";
|
2019-01-18 16:50:57 +01:00
|
|
|
|
2018-09-03 02:18:24 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 08:47:14 +02:00
|
|
|
sha256 = "6447d567f57efe5efea386265c7864652e9530830a1b80f43e60b4f222b9ab84";
|
2018-09-03 02:18:24 +02:00
|
|
|
};
|
2019-01-18 16:50:57 +01:00
|
|
|
|
2020-11-20 19:54:52 +01:00
|
|
|
pythonNamespaces = [ "jaraco" ];
|
|
|
|
|
2020-06-23 03:08:34 +02:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
2020-06-25 11:25:05 +02:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
./0001-Don-t-run-flake8-checks-during-the-build.patch
|
|
|
|
];
|
|
|
|
|
2018-09-03 02:18:24 +02:00
|
|
|
propagatedBuildInputs = [ inflect more-itertools six ];
|
2019-03-10 13:12:22 +01:00
|
|
|
checkInputs = [ pytest ];
|
2019-01-18 16:50:57 +01:00
|
|
|
|
2020-06-23 03:08:34 +02:00
|
|
|
# tests no longer available through pypi
|
|
|
|
doCheck = false;
|
2019-01-18 16:50:57 +01:00
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
2020-06-23 03:08:34 +02:00
|
|
|
pythonImportsCheck = [ "jaraco.itertools" ];
|
|
|
|
|
2019-01-18 16:50:57 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Tools for working with iterables";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/jaraco/jaraco.itertools";
|
2019-01-18 16:50:57 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
2018-09-03 02:18:24 +02:00
|
|
|
}
|