python3Packages.ansiwrap: switch to pytestCheckHook
This commit is contained in:
parent
dd65c8b2a7
commit
827bad2edc
@ -1,11 +1,10 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
|
||||||
, fetchPypi
|
|
||||||
, tox
|
|
||||||
, pytest
|
|
||||||
, ansicolors
|
, ansicolors
|
||||||
|
, buildPythonPackage
|
||||||
, coverage
|
, coverage
|
||||||
, pytestcov
|
, fetchPypi
|
||||||
|
, pytest-cov
|
||||||
|
, pytestCheckHook
|
||||||
, textwrap3
|
, textwrap3
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -20,20 +19,15 @@ buildPythonPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
tox
|
|
||||||
pytest
|
|
||||||
ansicolors
|
ansicolors
|
||||||
coverage
|
coverage
|
||||||
pytestcov
|
pytest-cov
|
||||||
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [ textwrap3 ];
|
||||||
textwrap3
|
|
||||||
];
|
|
||||||
|
|
||||||
checkPhase = ''
|
pythonImportsCheck = [ "ansiwrap" ];
|
||||||
pytest
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Textwrap, but savvy to ANSI colors and styles";
|
description = "Textwrap, but savvy to ANSI colors and styles";
|
||||||
|
Loading…
Reference in New Issue
Block a user