1{ lib
2, buildPythonPackage
3, fetchPypi
4, google-api-core
5, libcst
6, mock
7, proto-plus
8, pytestCheckHook
9, pytest-asyncio
10}:
11
12buildPythonPackage rec {
13 pname = "google-cloud-speech";
14 version = "2.11.1";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "3a15400d2fab2ec161c9b647730e8ba92feb9cbe6a1c0c7734ec8e8941290dbd";
19 };
20
21 propagatedBuildInputs = [ libcst google-api-core proto-plus ];
22
23 checkInputs = [ mock pytestCheckHook pytest-asyncio ];
24
25 pytestFlagsArray = [
26 # requrire credentials
27 "--ignore=tests/system/gapic/v1/test_system_speech_v1.py"
28 "--ignore=tests/system/gapic/v1p1beta1/test_system_speech_v1p1beta1.py"
29 ];
30
31 pythonImportsCheck = [
32 "google.cloud.speech"
33 "google.cloud.speech_v1"
34 "google.cloud.speech_v1p1beta1"
35 ];
36
37 meta = with lib; {
38 description = "Google Cloud Speech API client library";
39 homepage = "https://github.com/googleapis/python-speech";
40 license = licenses.asl20;
41 maintainers = with maintainers; [ SuperSandro2000 ];
42 };
43}