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"