gnu: python-u2flib-host: Fix build.

* gnu/packages/finance.scm (python-u2flib-host): Fix build.
[build-system]: Switch to pyproject.
[native-inputs]: Add python-setuptools, python-pytest, python-wheel.
[arguments]{test-flags}: filter out broken tests.

Change-Id: I05d70f064f6968c1e0990dc4e0c106452feefbec
This commit is contained in:
Steve George 2025-04-08 10:39:56 +01:00 committed by Andreas Enge
parent a133331ee8
commit 7de2ae6945
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -1039,15 +1039,23 @@ of Bitcoin BIP-0039.")
(package (package
(name "python-u2flib-host") (name "python-u2flib-host")
(version "3.0.3") (version "3.0.3")
(source (origin (source
(method url-fetch) (origin
(uri (pypi-uri "python-u2flib-host" version)) (method url-fetch)
(sha256 (uri (pypi-uri "python-u2flib-host" version))
(base32 (sha256
"02pwafd5kyjpc310ys0pgnd0adff1laz18naxxwsfrllqafqnrxb")))) (base32 "02pwafd5kyjpc310ys0pgnd0adff1laz18naxxwsfrllqafqnrxb"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments
(list
#:test-flags
#~(list
"--deselect=test/test_soft.py::TestSoftU2FDevice::test_registeration"
"--deselect=test/test_reg_auth.py::TestRegister::test_register" "-k"
"not test_forget")))
(propagated-inputs (list python-hidapi python-requests)) (propagated-inputs (list python-hidapi python-requests))
(native-inputs (list python-cryptography)) (native-inputs (list python-cryptography python-pytest python-setuptools
python-wheel))
(home-page "https://github.com/Yubico/python-u2flib-host") (home-page "https://github.com/Yubico/python-u2flib-host")
(synopsis "Python based U2F host library") (synopsis "Python based U2F host library")
(description (description