diff options
author | Klaas van Schelven <klaas@vanschelven.com> | 2017-12-20 23:49:56 +0100 |
---|---|---|
committer | Klaas van Schelven <klaas@vanschelven.com> | 2017-12-20 23:49:56 +0100 |
commit | ebec27baa1e9ff998fd9230f3b768542016492d1 (patch) | |
tree | 34071467abb7e15d9e9d905f7a4ef391597cbf40 /pkgs/development/python-modules/google_gax | |
parent | 32e9d32be593ef4cc0a77acb03ee9d230ae19362 (diff) | |
download | nixlib-ebec27baa1e9ff998fd9230f3b768542016492d1.tar nixlib-ebec27baa1e9ff998fd9230f3b768542016492d1.tar.gz nixlib-ebec27baa1e9ff998fd9230f3b768542016492d1.tar.bz2 nixlib-ebec27baa1e9ff998fd9230f3b768542016492d1.tar.lz nixlib-ebec27baa1e9ff998fd9230f3b768542016492d1.tar.xz nixlib-ebec27baa1e9ff998fd9230f3b768542016492d1.tar.zst nixlib-ebec27baa1e9ff998fd9230f3b768542016492d1.zip |
google_gax: init at 0.15.16
Diffstat (limited to 'pkgs/development/python-modules/google_gax')
-rw-r--r-- | pkgs/development/python-modules/google_gax/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/google_gax/default.nix b/pkgs/development/python-modules/google_gax/default.nix new file mode 100644 index 000000000000..24000161338c --- /dev/null +++ b/pkgs/development/python-modules/google_gax/default.nix @@ -0,0 +1,30 @@ +{ stdenv, buildPythonPackage, fetchPypi +, google_auth, ply, protobuf, grpcio, requests, googleapis_common_protos, dill, future, pytest, mock, unittest2 }: + +buildPythonPackage rec { + pname = "google-gax"; + version = "0.15.16"; + + src = fetchPypi { + inherit pname version; + sha256 = "0p1ribd2xy7a04wnjv12agkcdi6f9cpj838884hayx07p5g8v3ji"; + }; + + propagatedBuildInputs = [ google_auth ply protobuf grpcio requests googleapis_common_protos dill future ]; + 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 ]; + }; +} |