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-18 00:06:36 -07:00
parent c1b57d6873
commit c2cb457ebf

View file

@ -1,4 +1,5 @@
{ lib
{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
@ -39,8 +40,10 @@ buildPythonPackage rec {
pytestCheckHook
];
# Don't run tests for Python 2.7
doCheck = !isPy27;
# Don't run tests for Python 2.7 or Darwin
# 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" ];
pythonImportsCheck = [ "httplib2" ];