depot/third_party/nixpkgs/pkgs/development/python-modules/green/default.nix
Default email 2ce89355c3 Project import generated by Copybara.
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
2020-06-15 17:56:04 +02:00

34 lines
734 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPy3k
, colorama
, coverage
, termstyle
, lxml
, unidecode
, mock
, backports_shutil_get_terminal_size
}:
buildPythonPackage rec {
pname = "green";
version = "3.1.4";
src = fetchPypi {
inherit pname version;
sha256 = "65f87e4c0d2aca63eb32b01c78233e6f920a58ebabc4f85dd9d8f1c6a92a5184";
};
propagatedBuildInputs = [
colorama coverage termstyle unidecode lxml
] ++ lib.optionals (!isPy3k) [ mock backports_shutil_get_terminal_size ];
# 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;
};
}