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
This commit is contained in:
Ricardo Wurmus 2025-01-02 20:13:16 +01:00
parent e268c084d7
commit db9b46ad53
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

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