rekado pushed a commit to branch master
in repository guix.

commit db9b46ad53a5c3bfa2e4ba59af24611fddb853da
Author: Ricardo Wurmus <[email protected]>
AuthorDate: Thu Jan 2 20:13:16 2025 +0100

    gnu: python-jose: Fix build.
    
    * gnu/packages/python-web.scm (python-jose)[build-system]: Use
    pyproject-build-system.
    [arguments]: Disable some failing tests; remove custom 'check phase.
    [native-inputs]: Add python-setuptools and python-wheel.
    
    Change-Id: I39831da68beb6e7e80cd97df04310676e2cdf92a
---
 gnu/packages/python-web.scm | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index c956f1f949..4e7545b86e 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1778,20 +1778,22 @@ Swartz.")
               (sha256
                (base32
                 "18whsdpllg8574ma4r0qawkgw4nam6lsf63pi6761j38rvl84lg9"))))
-    (build-system python-build-system)
+    (build-system pyproject-build-system)
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (replace 'check
-           (lambda* (#:key tests? #:allow-other-keys)
-             (if tests?
-                 (invoke "pytest" "-vv")
-                 (format #t "test suite not run~%"))
-             #t)))))
+     (list
+      #:test-flags
+      '(list "-k"
+             ;; These fail because of unexpected locations of line breaks.
+             (string-append "not test_public_key_to_pem "
+                            "and not test_private_key_to_pem "
+                            "and not test_public_key_load_cycle "
+                            "and not test_private_key_load_cycle"))))
     (native-inputs
      (list ;; All native inputs are for tests.
            python-pyasn1 python-pytest python-pytest-cov
-           python-pytest-runner))
+           python-pytest-runner
+           python-setuptools
+           python-wheel))
     (propagated-inputs
      (list python-cryptography python-ecdsa python-rsa python-six))
     (synopsis "JOSE implementation in Python")

Reply via email to