depot/third_party/nixpkgs/pkgs/development/python-modules/green/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

34 lines
722 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPy3k
, colorama
, coverage
, termstyle
, lxml
, unidecode
, mock
, backports_shutil_get_terminal_size
}:
buildPythonPackage rec {
pname = "green";
version = "3.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "17cfgq0s02p5cjrsvcicqxiq6kflahjsd9pm03f054x7lpvqi5cv";
};
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;
};
}