1{ lib, buildPythonPackage, fetchPypi, pythonOlder
2, google_auth, protobuf, googleapis_common_protos, requests, grpcio, futures, mock, pytest }:
3
4buildPythonPackage rec {
5 pname = "google-api-core";
6 version = "1.3.0";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "ac85fc7f6687bb0271f2f70ca298da90f35789f9de1fe3a11e8caeb571332b77";
11 };
12
13 propagatedBuildInputs = [
14 googleapis_common_protos protobuf
15 google_auth requests grpcio
16 ] ++ lib.optional (pythonOlder "3.2") futures;
17 checkInputs = [ mock pytest ];
18
19 checkPhase = ''
20 py.test
21 '';
22
23 meta = with lib; {
24 description = "This library is not meant to stand-alone. Instead it defines common helpers used by all Google API clients.";
25 homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
26 license = licenses.asl20;
27 maintainers = with maintainers; [ vanschelven ];
28 };
29}