python312Packages.pyu2f: patch test compatibility
This commit is contained in:
@@ -24,6 +24,24 @@ buildPythonPackage rec {
|
||||
six
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
for path in \
|
||||
customauthenticator_test.py \
|
||||
hardware_test.py \
|
||||
hidtransport_test.py \
|
||||
localauthenticator_test.py \
|
||||
model_test.py \
|
||||
u2f_test.py \
|
||||
util_test.py \
|
||||
hid/macos_test.py; \
|
||||
do
|
||||
# https://docs.python.org/3/whatsnew/3.12.html#id3
|
||||
substituteInPlace pyu2f/tests/$path \
|
||||
--replace "assertEquals" "assertEqual" \
|
||||
--replace "assertRaisesRegexp" "assertRaisesRegex"
|
||||
done
|
||||
'';
|
||||
|
||||
nativeCheckInputs = [
|
||||
mock
|
||||
pyfakefs
|
||||
|
||||
Reference in New Issue
Block a user