mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
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.5";
|
|
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "11d595d98afc3363d79e237141ad862c0574a62f92325d9e541ed1b1a54a72ae";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|