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
(name "python-u2flib-host")
(version "3.0.3")
(source (origin
(method url-fetch)
(uri (pypi-uri "python-u2flib-host" version))
(sha256
(base32
"02pwafd5kyjpc310ys0pgnd0adff1laz18naxxwsfrllqafqnrxb"))))
(build-system python-build-system)
(source
(origin
(method url-fetch)
(uri (pypi-uri "python-u2flib-host" version))
(sha256
(base32 "02pwafd5kyjpc310ys0pgnd0adff1laz18naxxwsfrllqafqnrxb"))))
(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))
(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")
(synopsis "Python based U2F host library")
(description