1{ stdenv, buildPythonPackage, fetchPypi, termcolor, pytest }:
2
3buildPythonPackage rec {
4 pname = "pytest-sugar";
5 version = "0.9.2";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "fcd87a74b2bce5386d244b49ad60549bfbc4602527797fac167da147983f58ab";
10 };
11
12 propagatedBuildInputs = [ termcolor pytest ];
13
14 checkPhase = ''
15 py.test
16 '';
17
18 meta = with stdenv.lib; {
19 description = "A plugin that changes the default look and feel of py.test";
20 homepage = https://github.com/Frozenball/pytest-sugar;
21 license = licenses.bsd3;
22
23 # incompatible with pytest 3.5
24 # https://github.com/Frozenball/pytest-sugar/issues/134
25 broken = true; # 2018-04-20
26 };
27}