2019-10-17 17:17:05 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
|
|
|
, colorama
|
|
|
|
, coverage
|
|
|
|
, termstyle
|
|
|
|
, lxml
|
|
|
|
, unidecode
|
|
|
|
, mock
|
|
|
|
, backports_shutil_get_terminal_size
|
|
|
|
}:
|
2018-02-20 00:16:31 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "green";
|
2020-06-06 07:47:11 +01:00
|
|
|
version = "3.1.4";
|
2018-02-20 00:16:31 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:11 +01:00
|
|
|
sha256 = "65f87e4c0d2aca63eb32b01c78233e6f920a58ebabc4f85dd9d8f1c6a92a5184";
|
2018-02-20 00:16:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2019-10-17 17:17:05 +01:00
|
|
|
colorama coverage termstyle unidecode lxml
|
2018-02-20 00:16:31 +00:00
|
|
|
] ++ lib.optionals (!isPy3k) [ mock backports_shutil_get_terminal_size ];
|
|
|
|
|
2019-10-17 17:17:05 +01:00
|
|
|
# let green run it's own test suite
|
|
|
|
checkPhase = ''
|
|
|
|
$out/bin/green green
|
|
|
|
'';
|
|
|
|
|
2018-02-20 00:16:31 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python test runner";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/CleanCut/green";
|
2018-02-20 00:16:31 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|