From 21294b470cc44a8634915f4564190e72ad8aa9ad Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 23 Apr 2021 15:50:34 +0200 Subject: [PATCH] python3Packages.httplib2: disable test_timeout_subsequent on darwin --- pkgs/development/python-modules/httplib2/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/httplib2/default.nix b/pkgs/development/python-modules/httplib2/default.nix index 40cd705f090..40bfe4d3e88 100644 --- a/pkgs/development/python-modules/httplib2/default.nix +++ b/pkgs/development/python-modules/httplib2/default.nix @@ -1,4 +1,5 @@ { lib +, stdenv , buildPythonPackage , fetchFromGitHub , isPy27 @@ -44,9 +45,12 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ "--ignore python2" ]; + disabledTests = lib.optionals (stdenv.isDarwin) [ + # fails with HTTP 408 Request Timeout, instead of expected 200 OK + "test_timeout_subsequent" + ]; - __darwinAllowLocalNetworking = true; + pytestFlagsArray = [ "--ignore python2" ]; meta = with lib; { description = "A comprehensive HTTP client library";