1{ lib
2, buildPythonPackage
3, fetchPypi
4, google-api-core
5, libcst
6, mock
7, proto-plus
8, pytestCheckHook
9, pytest-asyncio
10, pythonOlder
11, setuptools
12}:
13
14buildPythonPackage rec {
15 pname = "google-cloud-speech";
16 version = "2.16.2";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-aegM+pgdKsM7qC8sfPMxV74gwPYasArFWzkJ/p9ESzU=";
24 };
25
26 propagatedBuildInputs = [
27 libcst
28 google-api-core
29 proto-plus
30 setuptools
31 ];
32
33 checkInputs = [
34 mock
35 pytestCheckHook
36 pytest-asyncio
37 ];
38
39 disabledTestPaths = [
40 # Requrire credentials
41 "tests/system/gapic/v1/test_system_speech_v1.py"
42 "tests/system/gapic/v1p1beta1/test_system_speech_v1p1beta1.py"
43 ];
44
45 pythonImportsCheck = [
46 "google.cloud.speech"
47 "google.cloud.speech_v1"
48 "google.cloud.speech_v1p1beta1"
49 ];
50
51 meta = with lib; {
52 description = "Google Cloud Speech API client library";
53 homepage = "https://github.com/googleapis/python-speech";
54 license = licenses.asl20;
55 maintainers = with maintainers; [ SuperSandro2000 ];
56 };
57}