blob: a1167f24035db99ac0856ec3eddc115b030534e9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{ 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;
};
}
|