2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
|
|
|
, colorama
|
|
|
|
, coverage
|
|
|
|
, termstyle
|
|
|
|
, lxml
|
|
|
|
, unidecode
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "green";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "3.2.6";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "e51d4ff6e6885942d944304fedc7440a8f87917aa09526beeecb31a0dae655b8";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
colorama coverage termstyle unidecode lxml
|
2020-09-25 04:45:31 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# let green run it's own test suite
|
|
|
|
checkPhase = ''
|
|
|
|
$out/bin/green green
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python test runner";
|
|
|
|
homepage = "https://github.com/CleanCut/green";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|