summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/development/python-modules/google_cloud_speech/default.nix26
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/google_cloud_speech/default.nix b/pkgs/development/python-modules/google_cloud_speech/default.nix
new file mode 100644
index 00000000000..796bd26febd
--- /dev/null
+++ b/pkgs/development/python-modules/google_cloud_speech/default.nix
@@ -0,0 +1,26 @@
+{ stdenv, buildPythonPackage, fetchPypi
+, setuptools, google_api_core, google_gax, google_cloud_core, pytest, mock }:
+
+buildPythonPackage rec {
+  pname = "google-cloud-speech";
+  version = "0.30.0";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0ckigh6bfzhflhllqdnfygm8w0r6ncp0myf1midifx7sn880g4pa";
+  };
+
+  propagatedBuildInputs = [ setuptools google_api_core google_gax google_cloud_core ];
+  checkInputs = [ pytest mock ];
+
+  checkPhase = ''
+    py.test
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Cloud Speech API enables integration of Google speech recognition into applications.";
+    homepage = "https://googlecloudplatform.github.io/google-cloud-python/latest/speech/";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ vanschelven ];
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index cf1d159a1f4..af9afecfba0 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -9101,6 +9101,8 @@ in {
 
   google_cloud_core = callPackage ../development/python-modules/google_cloud_core { };
 
+  google_cloud_speech = callPackage ../development/python-modules/google_cloud_speech { };
+
   google_gax = callPackage ../development/python-modules/google_gax { };
 
   grammalecte = callPackage ../development/python-modules/grammalecte { };