Merge pull request #120201 from mweinelt/python/httlib2
[staging-next] python3Packages.httplib2: allow local networking on darwin
This commit is contained in:
commit
9896bb04e2
@ -1,5 +1,4 @@
|
|||||||
{ stdenv
|
{ lib
|
||||||
, lib
|
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, isPy27
|
, isPy27
|
||||||
@ -30,6 +29,11 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
propagatedBuildInputs = [ pyparsing ];
|
propagatedBuildInputs = [ pyparsing ];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "httplib2" ];
|
||||||
|
|
||||||
|
# Don't run tests for Python 2.7
|
||||||
|
doCheck = !isPy27;
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
mock
|
mock
|
||||||
pytest-forked
|
pytest-forked
|
||||||
@ -40,12 +44,9 @@ buildPythonPackage rec {
|
|||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
# 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" ];
|
pytestFlagsArray = [ "--ignore python2" ];
|
||||||
pythonImportsCheck = [ "httplib2" ];
|
|
||||||
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A comprehensive HTTP client library";
|
description = "A comprehensive HTTP client library";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user