1{ stdenv, buildPythonPackage, fetchPypi
2, google_auth, ply, protobuf, grpcio, requests, googleapis_common_protos, dill, future, pytest, mock, unittest2 }:
3
4buildPythonPackage rec {
5 pname = "google-gax";
6 version = "0.15.16";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "0p1ribd2xy7a04wnjv12agkcdi6f9cpj838884hayx07p5g8v3ji";
11 };
12
13 propagatedBuildInputs = [ google_auth ply protobuf grpcio requests googleapis_common_protos dill future ];
14 checkInputs = [ pytest mock unittest2 ];
15
16 # Importing test__grpc_google_auth fails with "ModuleNotFoundError: No module named 'google_auth_httplib2'", where
17 # that file would be is unclear to me so I just remove the test.
18 postPatch = ''rm tests/test__grpc_google_auth.py'';
19
20 checkPhase = ''
21 py.test
22 '';
23
24 meta = with stdenv.lib; {
25 description = "Google API Extensions for Python (gax-python) tools based on gRPC and Google API conventions.";
26 homepage = "http://gax-python.readthedocs.io/en/latest/";
27 license = licenses.bsd3;
28 maintainers = with maintainers; [ vanschelven ];
29 };
30}