From f3e1b3194b09e604abba94c811e90321020263d9 Mon Sep 17 00:00:00 2001 From: misuzu Date: Sat, 6 Nov 2021 10:53:20 +0200 Subject: [PATCH] python3Packages.slackclient: disable broken tests on darwin --- .../python-modules/slackclient/default.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/slackclient/default.nix b/pkgs/development/python-modules/slackclient/default.nix index c82eba66acae..1c02d592d679 100644 --- a/pkgs/development/python-modules/slackclient/default.nix +++ b/pkgs/development/python-modules/slackclient/default.nix @@ -1,4 +1,5 @@ { lib +, stdenv , aiohttp , buildPythonPackage , codecov @@ -51,7 +52,18 @@ buildPythonPackage rec { # Exclude tests that requires network features pytestFlagsArray = [ "--ignore=integration_tests" ]; - disabledTests = [ "test_start_raises_an_error_if_rtm_ws_url_is_not_returned" ]; + + disabledTests = [ + "test_start_raises_an_error_if_rtm_ws_url_is_not_returned" + ] ++ lib.optionals stdenv.isDarwin [ + # these fail with `ConnectionResetError: [Errno 54] Connection reset by peer` + "test_issue_690_oauth_access" + "test_issue_690_oauth_v2_access" + "test_send" + "test_send_attachments" + "test_send_blocks" + "test_send_dict" + ]; pythonImportsCheck = [ "slack" ];