From ac5271a02f66c013d4955d4e84c6f39f4a6173d4 Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Sat, 16 Jan 2021 17:51:46 +0100 Subject: [PATCH] pythonPackages.ufoprocessor: fix test execution --- .../python-modules/ufoprocessor/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/ufoprocessor/default.nix b/pkgs/development/python-modules/ufoprocessor/default.nix index 85b70833bd68..b0f5b11ad3a4 100644 --- a/pkgs/development/python-modules/ufoprocessor/default.nix +++ b/pkgs/development/python-modules/ufoprocessor/default.nix @@ -26,9 +26,14 @@ buildPythonPackage rec { mutatormath ]; - # tests require custom commands to run - doCheck = false; - pythonImportsCheck = [ "ufoProcessor" ]; + checkPhase = '' + runHook preCheck + 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; { description = "Read, write and generate UFOs with designspace data";