pythonPackages.pytest-sugar: refactor fix broken build

This commit is contained in:
Chris Ostrouchov 2019-05-07 08:54:31 -04:00
parent 5d930e2dfa
commit bea2b415ec
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573

View File

@ -1,4 +1,10 @@
{ stdenv, buildPythonPackage, fetchPypi, termcolor, pytest }:
{ lib
, buildPythonPackage
, fetchPypi
, termcolor
, pytest
, packaging
}:
buildPythonPackage rec {
pname = "pytest-sugar";
@ -9,19 +15,16 @@ buildPythonPackage rec {
sha256 = "fcd87a74b2bce5386d244b49ad60549bfbc4602527797fac167da147983f58ab";
};
propagatedBuildInputs = [ termcolor pytest ];
propagatedBuildInputs = [
termcolor
pytest
packaging
];
checkPhase = ''
py.test
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "A plugin that changes the default look and feel of py.test";
homepage = https://github.com/Frozenball/pytest-sugar;
license = licenses.bsd3;
# incompatible with pytest 3.5
# https://github.com/Frozenball/pytest-sugar/issues/134
broken = true; # 2018-04-20
maintainers = [ maintainers.costrouc ];
};
}