guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/06: gnu: python-ufo2ft: Don't use pytest-runner.


From: guix-commits
Subject: 01/06: gnu: python-ufo2ft: Don't use pytest-runner.
Date: Sun, 18 Sep 2022 10:21:26 -0400 (EDT)

mbakke pushed a commit to branch master
in repository guix.

commit 6c3ccc6b1f60dd55a4c499d895f79612244158c5
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Sun Sep 18 02:22:56 2022 +0200

    gnu: python-ufo2ft: Don't use pytest-runner.
    
    pytest-runner is deprecated and does not work properly with the newer
    setuptools in Python 3.10 for this package.
    
    * gnu/packages/fontutils.scm (python-ufo2ft)[arguments]: Override check
    phase.
    [native-inputs]: Remove PYTHON-PYTEST-RUNNER.
---
 gnu/packages/fontutils.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index 3806d78b1e..9b7f1ac879 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -447,8 +447,15 @@ converts any cubic curves to quadratic.  The most useful 
function is probably
        (sha256
         (base32 "068hm62s1iphyg66w96vgiif6ahpcsaf8fr44rk6jdf71f6fyqd5"))))
     (build-system python-build-system)
+    (arguments
+     (list #:phases
+           #~(modify-phases %standard-phases
+               (replace 'check
+                 (lambda* (#:key tests? #:allow-other-keys)
+                   (when tests?
+                     (invoke "pytest" "-vv")))))))
     (native-inputs
-     (list python-pytest python-pytest-runner python-setuptools-scm))
+     (list python-pytest python-setuptools-scm))
     (propagated-inputs
      (list python-booleanoperations
            python-cffsubr



reply via email to

[Prev in Thread] Current Thread [Next in Thread]