depot/third_party/nixpkgs/pkgs/development/python-modules/green/default.nix
Default email cf3f6e7a7d Project import generated by Copybara.
GitOrigin-RevId: 24eb3f87fc610f18de7076aee7c5a84ac5591e3e
2020-11-30 09:33:03 +01:00

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