2017-09-05 10:16:41 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, termcolor, pytest }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-sugar";
|
2018-02-08 14:03:08 +00:00
|
|
|
version = "0.9.1";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-02-08 14:03:08 +00:00
|
|
|
sha256 = "ab8cc42faf121344a4e9b13f39a51257f26f410e416c52ea11078cdd00d98a2c";
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ termcolor pytest ];
|
|
|
|
|
2018-02-08 14:03:08 +00:00
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2017-09-05 10:16:41 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A plugin that changes the default look and feel of py.test";
|
|
|
|
homepage = https://github.com/Frozenball/pytest-sugar;
|
|
|
|
license = licenses.bsd3;
|
2018-04-20 14:43:10 +01:00
|
|
|
|
|
|
|
# incompatible with pytest 3.5
|
|
|
|
# https://github.com/Frozenball/pytest-sugar/issues/134
|
|
|
|
broken = true; # 2018-04-20
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
}
|