forked from mirrors/nixpkgs
35 lines
642 B
Nix
35 lines
642 B
Nix
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
|
, colorama
|
|
, coverage
|
|
, termstyle
|
|
, lxml
|
|
, unidecode
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "green";
|
|
version = "3.2.6";
|
|
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "e51d4ff6e6885942d944304fedc7440a8f87917aa09526beeecb31a0dae655b8";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
colorama coverage termstyle unidecode lxml
|
|
];
|
|
|
|
# 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;
|
|
};
|
|
}
|