python.pkgs.jaraco_itertools: add meta and run tests

This commit is contained in:
Robert Schütz 2019-01-18 16:50:57 +01:00
parent 59f4d5d8a2
commit c48b43cacc

View File

@ -1,14 +1,26 @@
{ buildPythonPackage, fetchPypi, setuptools_scm
, inflect, more-itertools, six }:
{ lib, buildPythonPackage, fetchPypi, setuptools_scm
, inflect, more-itertools, six, pytest, pytest-flake8 }:
buildPythonPackage rec {
pname = "jaraco.itertools";
version = "4.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "1d09zpi593bhr56rwm41kzffr18wif98plgy6xdy0zrbdwfarrxl";
};
doCheck = false;
buildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ inflect more-itertools six ];
checkInputs = [ pytest pytest-flake8 ];
checkPhase = ''
pytest
'';
meta = with lib; {
description = "Tools for working with iterables";
homepage = https://github.com/jaraco/jaraco.itertools;
license = licenses.mit;
};
}