Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.0 kB · 92 lines
Nix
at gcc-offload
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293{ lib, buildPythonPackage, fetchFromGitHub, google-auth, googleapis-common-protos, grpcio, grpcio-gcp, grpcio-status, mock, proto-plus, protobuf, pytest-asyncio, pytestCheckHook, pythonOlder, requests, setuptools,}:
buildPythonPackage rec { pname = "google-api-core"; version = "2.20.0"; pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub { owner = "googleapis"; repo = "python-api-core"; rev = "v${version}"; hash = "sha256-ccjkGQNaPRefI6+j/O+NwdBGEVNuZ5q5m1d8EAJGcbs="; };
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ googleapis-common-protos google-auth protobuf proto-plus requests ];
optional-dependencies = { grpc = [ grpcio grpcio-status ]; grpcgcp = [ grpcio-gcp ]; grpcio-gcp = [ grpcio-gcp ]; };
nativeCheckInputs = [ mock pytest-asyncio pytestCheckHook ];
# prevent google directory from shadowing google imports preCheck = '' rm -r google '';
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"; longDescription = '' This library is not meant to stand-alone. Instead it defines common helpers used by all Google API clients. ''; homepage = "https://github.com/googleapis/python-api-core"; changelog = "https://github.com/googleapis/python-api-core/blob/v${version}/CHANGELOG.md"; license = licenses.asl20; maintainers = [ ]; };}