nixpkgs/pkgs/development/python-modules/green/default.nix
2020-11-29 14:05:37 -08:00

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;
};
}