3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/green/default.nix

35 lines
642 B
Nix
Raw Normal View History

2019-10-17 17:17:05 +01:00
{ lib, buildPythonPackage, fetchPypi, isPy3k
, colorama
, coverage
, termstyle
, lxml
, unidecode
}:
2018-02-20 00:16:31 +00:00
buildPythonPackage rec {
pname = "green";
2021-06-18 22:47:21 +01:00
version = "3.2.6";
2018-02-20 00:16:31 +00:00
2020-09-11 14:06:04 +01:00
disabled = !isPy3k;
2018-02-20 00:16:31 +00:00
src = fetchPypi {
inherit pname version;
2021-06-18 22:47:21 +01:00
sha256 = "e51d4ff6e6885942d944304fedc7440a8f87917aa09526beeecb31a0dae655b8";
2018-02-20 00:16:31 +00:00
};
propagatedBuildInputs = [
2019-10-17 17:17:05 +01:00
colorama coverage termstyle unidecode lxml
2020-09-11 14:06:04 +01:00
];
2018-02-20 00:16:31 +00:00
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";
homepage = "https://github.com/CleanCut/green";
2018-02-20 00:16:31 +00:00
license = licenses.mit;
};
}