python3Packages.matrix-nio: fix tests

This commit is contained in:
Martin Weinelt
2026-07-14 00:49:13 +02:00
parent 087259bf03
commit bdf0a1733e

View File

@@ -60,6 +60,13 @@ buildPythonPackage rec {
./allow-tests-without-olm.patch
];
postPatch = ''
# Fix yarl compat about url normalization
substituteInPlace tests/async_client_test.py \
--replace-fail "?&" "?"
'';
build-system = [ setuptools ];
dependencies = [
@@ -115,6 +122,9 @@ buildPythonPackage rec {
"test_connect_wrapper"
# time dependent and flaky
"test_transfer_monitor_callbacks"
# _plain_data_generator yields str but test expectes bytes
"test_upload_retry"
"test_upload_text_file_object"
]
++ lib.optionals (!withOlm) [
"test_client_account_sharing"