From d3609a0610955b95547aa90ffaa3a9d9e4092c04 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Fri, 2 Nov 2018 15:45:30 -0400 Subject: [PATCH] pythonPackages.google_cloud_language: init at 1.1.0 --- .../google_cloud_language/default.nix | 31 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/python-modules/google_cloud_language/default.nix diff --git a/pkgs/development/python-modules/google_cloud_language/default.nix b/pkgs/development/python-modules/google_cloud_language/default.nix new file mode 100644 index 000000000000..adf354f3bff5 --- /dev/null +++ b/pkgs/development/python-modules/google_cloud_language/default.nix @@ -0,0 +1,31 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, enum34 +, google_api_core +, pytest +}: + +buildPythonPackage rec { + pname = "google-cloud-language"; + version = "1.1.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "2450e3265df129241cb21badb9d4ce2089d2652581df38e03c14a7ec85679ecb"; + }; + + checkInputs = [ pytest ]; + propagatedBuildInputs = [ enum34 google_api_core ]; + + checkPhase = '' + pytest tests/unit + ''; + + meta = with stdenv.lib; { + description = "Google Cloud Natural Language API client library"; + homepage = https://github.com/GoogleCloudPlatform/google-cloud-python; + license = licenses.asl20; + maintainers = [ maintainers.costrouc ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f41bcd8e05fa..be64c2a0a3f1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2472,6 +2472,8 @@ in { google_cloud_kms = callPackage ../development/python-modules/google_cloud_kms { }; + google_cloud_language = callPackage ../development/python-modules/google_cloud_language { }; + google_cloud_logging = callPackage ../development/python-modules/google_cloud_logging { }; google_cloud_storage = callPackage ../development/python-modules/google_cloud_storage { };