2017-12-20 22:49:56 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2018-03-24 18:36:06 +00:00
|
|
|
, google_auth, ply, protobuf3_5, grpcio, requests
|
|
|
|
, googleapis_common_protos, dill, future, pytest, mock, unittest2 }:
|
2017-12-20 22:49:56 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-gax";
|
|
|
|
version = "0.15.16";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0p1ribd2xy7a04wnjv12agkcdi6f9cpj838884hayx07p5g8v3ji";
|
|
|
|
};
|
|
|
|
|
2018-03-24 18:36:06 +00:00
|
|
|
propagatedBuildInputs = [ google_auth ply protobuf3_5 grpcio requests googleapis_common_protos dill future ];
|
2017-12-20 22:49:56 +00:00
|
|
|
checkInputs = [ pytest mock unittest2 ];
|
|
|
|
|
|
|
|
# Importing test__grpc_google_auth fails with "ModuleNotFoundError: No module named 'google_auth_httplib2'", where
|
|
|
|
# that file would be is unclear to me so I just remove the test.
|
|
|
|
postPatch = ''rm tests/test__grpc_google_auth.py'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Google API Extensions for Python (gax-python) tools based on gRPC and Google API conventions.";
|
|
|
|
homepage = "http://gax-python.readthedocs.io/en/latest/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ vanschelven ];
|
|
|
|
};
|
|
|
|
}
|