~ruther/guix-local

df0983ff058fe1790140aa6fbbc8b2dd8ca88ad5 — Sharlatan Hellseher 6 months ago 6131b39
gnu: python-afdko-3.6.1: Fix tests.

* gnu/packages/fontutils.scm (python-afdko-3.6.1)[arguments] <phases>:
Use custom 'check.
[native-inputs]: Add python-pytest-xdist.

Change-Id: I6a8f012e1dc72f13aa0033145c030f1011e37f6d
1 files changed, 18 insertions(+), 1 deletions(-)

M gnu/packages/fontutils.scm
M gnu/packages/fontutils.scm => gnu/packages/fontutils.scm +18 -1
@@ 399,10 399,27 @@ but also provides many useful font conversion and analysis facilities.
                 "CFLAGS = -Wno-error=incompatible-pointer-types"))))
          (add-before 'build 'set-CC
            (lambda _
              (setenv "CC" "gcc"))))))
              (setenv "CC" "gcc")))
          (replace 'check
            ;; tests: 646 passed, 4 skipped, 40 warnings
            ;; TODO: Try to fix more tests if this package is still required.
            (lambda* (#:key tests? #:allow-other-keys)
              (when tests?
                (setenv "HOME" "/tmp")
                (invoke "pytest" "-vv"
                        "-n" (number->string (min 8 (parallel-job-count)))
                        "--ignore=tests/buildcff2vf_test.py"
                        "--ignore=tests/comparefamily_test.py"
                        "--ignore=tests/makeinstancesufo_test.py"
                        "--ignore=tests/makeotf_test.py"
                        "--ignore=tests/makeotfexe_test.py"
                        "--ignore=tests/otc2otf_test.py"
                        "--ignore=tests/otf2ttf_test.py"
                        "--ignore=tests/ttxn_test.py")))))))
    (native-inputs
     (list pkg-config
           python-pytest
           python-pytest-xdist
           python-setuptools-scm
           python-wheel))
    (inputs