nixpkgs/pkgs/development/python-modules/green/default.nix
2020-11-05 15:47:07 -08:00

35 lines
642 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPy3k
, colorama
, coverage
, termstyle
, lxml
, unidecode
}:
buildPythonPackage rec {
pname = "green";
version = "3.2.4";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "3473abb4629c8c1af9f6b59a4f9c757315736580053a64bbfd91ff21ccad57a8";
};
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;
};
}