pythonPackages.ufoprocessor: fix test execution

This commit is contained in:
sternenseemann 2021-01-16 17:51:46 +01:00
parent a6d138c7ad
commit ac5271a02f

View File

@ -26,9 +26,14 @@ buildPythonPackage rec {
mutatormath mutatormath
]; ];
# tests require custom commands to run checkPhase = ''
doCheck = false; runHook preCheck
pythonImportsCheck = [ "ufoProcessor" ]; for t in Tests/*.py; do
# https://github.com/LettError/ufoProcessor/issues/32
[[ "$(basename "$t")" = "tests_fp.py" ]] || python "$t"
done
runHook postCheck
'';
meta = with lib; { meta = with lib; {
description = "Read, write and generate UFOs with designspace data"; description = "Read, write and generate UFOs with designspace data";