about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2020-11-29 13:56:41 -0800
committerFrederik Rietdijk <fridh@fridh.nl>2020-12-01 14:44:24 +0100
commit0b58b6ed8e4873e64d578f63255de61c519eeb3a (patch)
treef3d46e7684a22a8cf3cb8855c8eff73154c6fec9
parentfbec07799883e0daed6367cdbf1cd35ada88712a (diff)
python3Packages.inform: fix tests
-rw-r--r--pkgs/development/python-modules/inform/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/inform/default.nix b/pkgs/development/python-modules/inform/default.nix
index 158f1161cb4d3..7646d25ee4259 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";