From bdf0a1733efec52c63fbe6cbf460c2810d0533d3 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 14 Jul 2026 00:49:13 +0200 Subject: [PATCH] python3Packages.matrix-nio: fix tests --- pkgs/development/python-modules/matrix-nio/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/matrix-nio/default.nix b/pkgs/development/python-modules/matrix-nio/default.nix index 75385ef5f24f..7ca6a5b9fe3a 100644 --- a/pkgs/development/python-modules/matrix-nio/default.nix +++ b/pkgs/development/python-modules/matrix-nio/default.nix @@ -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"