python3Packages.google-api-core: disable failing grpc tests

This commit is contained in:
Fabian Affolter
2021-11-29 11:58:42 +01:00
committed by Jonathan Ringer
parent 0cc6103d5b
commit 66591e17b0

View File

@@ -10,11 +10,15 @@
, mock
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "google-api-core";
version = "2.2.2";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
@@ -30,14 +34,35 @@ buildPythonPackage rec {
requests
];
checkInputs = [ mock pytest-asyncio pytestCheckHook ];
checkInputs = [
mock
pytest-asyncio
pytestCheckHook
];
# prevent google directory from shadowing google imports
preCheck = ''
rm -r google
'';
pythonImportsCheck = [ "google.api_core" ];
disabledTests = [
# Those grpc_helpers tests are failing
"test_wrap_unary_errors"
"test_wrap_stream_errors_raised"
"test_wrap_stream_errors_read"
"test_wrap_stream_errors_aiter"
"test_wrap_stream_errors_write"
"test_wrap_unary_errors"
"test___next___w_rpc_error"
"test_wrap_stream_errors_invocation"
"test_wrap_stream_errors_iterator_initialization"
"test_wrap_stream_errors_during_iteration"
"test_exception_with_error_code"
];
pythonImportsCheck = [
"google.api_core"
];
meta = with lib; {
description = "Core Library for Google Client Libraries";