Skip to content

Commit

Permalink
pythonPackages.ufoprocessor: fix test execution
Browse files Browse the repository at this point in the history
  • Loading branch information
sternenseemann committed Jan 16, 2021
1 parent a6d138c commit ac5271a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions pkgs/development/python-modules/ufoprocessor/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit ac5271a

Please sign in to comment.