2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
|
|
|
, colorama
|
|
|
|
, coverage
|
|
|
|
, termstyle
|
|
|
|
, lxml
|
|
|
|
, unidecode
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "green";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "3.2.1";
|
|
|
|
|
|
|
|
disabled = !isPy3k;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "c5a90e247237ac7e320120961608cf65191134fa400d327cbd4d09864c880935";
|
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;
|
|
|
|
};
|
|
|
|
}
|