summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2018-01-01 10:56:31 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2018-01-01 10:56:31 +0100
commite92a133238aea65770556631bdff307855ecdc77 (patch)
treec5b3aa9ab3875d1f1c0ba1e5d4f547528ff15f08 /pkgs
parentd5a226f957f331adab38e9be22a41611aa8938a6 (diff)
downloadnixlib-e92a133238aea65770556631bdff307855ecdc77.tar
nixlib-e92a133238aea65770556631bdff307855ecdc77.tar.gz
nixlib-e92a133238aea65770556631bdff307855ecdc77.tar.bz2
nixlib-e92a133238aea65770556631bdff307855ecdc77.tar.lz
nixlib-e92a133238aea65770556631bdff307855ecdc77.tar.xz
nixlib-e92a133238aea65770556631bdff307855ecdc77.tar.zst
nixlib-e92a133238aea65770556631bdff307855ecdc77.zip
python.pkgs.odfpy: fix tests
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/odfpy/default.nix7
1 files changed, 2 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/odfpy/default.nix b/pkgs/development/python-modules/odfpy/default.nix
index 449c5a7a92fe..39ed5edef0b3 100644
--- a/pkgs/development/python-modules/odfpy/default.nix
+++ b/pkgs/development/python-modules/odfpy/default.nix
@@ -1,6 +1,7 @@
 { lib
 , buildPythonPackage
 , fetchPypi
+, python
 }:
 
 buildPythonPackage rec {
@@ -14,11 +15,7 @@ buildPythonPackage rec {
   };
 
   checkPhase = ''
-    pushd tests
-    rm runtests
-    for file in test*.py; do
-        python  $file
-    done
+    ${python.interpreter} -m unittest discover -s tests
   '';
 
   meta = {