2017-12-20 23:49:56 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2018-04-08 00:04:44 +02:00
|
|
|
, google_auth, ply, protobuf, grpcio, requests
|
2018-03-24 19:36:06 +01:00
|
|
|
, googleapis_common_protos, dill, future, pytest, mock, unittest2 }:
|
2017-12-20 23:49:56 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-gax";
|
2018-04-04 20:08:56 +02:00
|
|
|
version = "0.16.0";
|
2017-12-20 23:49:56 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-04-04 20:08:56 +02:00
|
|
|
sha256 = "1d844c56f942d98f12a1b0ecabe8a17d69bef41ff513edd97253bcde02ffd929";
|
2017-12-20 23:49:56 +01:00
|
|
|
};
|
|
|
|
|
2018-04-08 00:04:44 +02:00
|
|
|
propagatedBuildInputs = [ google_auth ply protobuf grpcio requests googleapis_common_protos dill future ];
|
2017-12-20 23:49:56 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|