From 0b58b6ed8e4873e64d578f63255de61c519eeb3a Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Sun, 29 Nov 2020 13:56:41 -0800 Subject: [PATCH] python3Packages.inform: fix tests --- pkgs/development/python-modules/inform/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/inform/default.nix b/pkgs/development/python-modules/inform/default.nix index 158f1161cb4..7646d25ee42 100644 --- a/pkgs/development/python-modules/inform/default.nix +++ b/pkgs/development/python-modules/inform/default.nix @@ -3,6 +3,7 @@ , six , hypothesis , pytest +, pytestrunner , pytestCheckHook }: @@ -17,10 +18,14 @@ buildPythonPackage rec { sha256 = "02zlprvidkz51aypss4knhv7dbr0sbpz3caqjzf9am2n1jx2viyy"; }; + nativeBuildInputs = [ pytestrunner ]; propagatedBuildInputs = [ arrow six ]; 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; { description = "Print and logging utilities";