python.pkgs.odfpy: fix tests

This commit is contained in:
Frederik Rietdijk 2018-01-01 10:56:31 +01:00
parent d5a226f957
commit e92a133238

View File

@ -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 = {