1{ lib, buildPythonPackage, fetchPypi, isPy3k, colorama, coverage, termstyle, unidecode, mock, backports_shutil_get_terminal_size }:
2
3buildPythonPackage rec {
4 pname = "green";
5 version = "2.12.0";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "8cdd2934eff754c9664f373ee0d77cb1cb35dbbf3b719b8ae3b059718db875df";
10 };
11
12 prePatch = ''
13 # See https://github.com/CleanCut/green/pull/182
14 substituteInPlace setup.py --replace python-termstyle termstyle
15 '';
16
17 propagatedBuildInputs = [
18 colorama coverage termstyle unidecode
19 ] ++ lib.optionals (!isPy3k) [ mock backports_shutil_get_terminal_size ];
20
21 meta = with lib; {
22 description = "Python test runner";
23 homepage = https://github.com/CleanCut/green;
24 license = licenses.mit;
25 };
26}