python3Packages.inform: fix tests

This commit is contained in:
Jonathan Ringer 2020-11-29 13:56:41 -08:00 committed by Frederik Rietdijk
parent fbec077998
commit 0b58b6ed8e

View File

@ -3,6 +3,7 @@
, six , six
, hypothesis , hypothesis
, pytest , pytest
, pytestrunner
, pytestCheckHook , pytestCheckHook
}: }:
@ -17,10 +18,14 @@ buildPythonPackage rec {
sha256 = "02zlprvidkz51aypss4knhv7dbr0sbpz3caqjzf9am2n1jx2viyy"; sha256 = "02zlprvidkz51aypss4knhv7dbr0sbpz3caqjzf9am2n1jx2viyy";
}; };
nativeBuildInputs = [ pytestrunner ];
propagatedBuildInputs = [ arrow six ]; propagatedBuildInputs = [ arrow six ];
checkInputs = [ pytest hypothesis ]; checkInputs = [ pytest hypothesis ];
checkPhase = "./test.doctests.py && ./test.inform.py && pytest"; checkPhase = ''
patchShebangs test.doctests.py test.inform.py
./test.doctests.py && ./test.inform.py && pytest
'';
meta = with lib; { meta = with lib; {
description = "Print and logging utilities"; description = "Print and logging utilities";