python37Packages.httplib: disable tests on darwin

Most of the tests were failing on Mac OS, and tests were only recently
enabled for this package.
This commit is contained in:
Noah D. Brenowitz
2021-03-19 07:59:12 -07:00
parent c1b57d6873
commit c2cb457ebf
@@ -1,4 +1,5 @@
{ lib { stdenv
, lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, isPy27 , isPy27
@@ -39,8 +40,10 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
# Don't run tests for Python 2.7 # Don't run tests for Python 2.7 or Darwin
doCheck = !isPy27; # Nearly 50% of the test suite requires local network access
# which isn't allowed on sandboxed Darwin builds
doCheck = !(isPy27 || stdenv.isDarwin);
pytestFlagsArray = [ "--ignore python2" ]; pytestFlagsArray = [ "--ignore python2" ];
pythonImportsCheck = [ "httplib2" ]; pythonImportsCheck = [ "httplib2" ];