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