From 658c04960286b5afcb268a2f402d6ab0ce737d07 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 28 May 2023 19:57:45 +0200 Subject: [PATCH] python310Packages.trio-websocket: fix/disable tests on darwin --- .../python-modules/trio-websocket/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/development/python-modules/trio-websocket/default.nix b/pkgs/development/python-modules/trio-websocket/default.nix index 362cefdde16e..45f4b195a80b 100644 --- a/pkgs/development/python-modules/trio-websocket/default.nix +++ b/pkgs/development/python-modules/trio-websocket/default.nix @@ -1,4 +1,5 @@ { lib +, stdenv , buildPythonPackage , fetchFromGitHub , exceptiongroup @@ -33,6 +34,19 @@ buildPythonPackage rec { trustme ]; + disabledTests = lib.optionals stdenv.isDarwin [ + # Failed: DID NOT RAISE + "test_finalization_dropped_exception" + # Timing related + "test_client_close_timeout" + "test_cm_exit_with_pending_messages" + "test_server_close_timeout" + "test_server_handler_exit" + "test_server_open_timeout" + ]; + + __darwinAllowLocalNetworking = true; + pythonImportsCheck = [ "trio_websocket" ]; meta = with lib; {