1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 google-api-core,
6 mock,
7 proto-plus,
8 protobuf,
9 pytest-asyncio,
10 pytestCheckHook,
11 pythonOlder,
12 setuptools,
13}:
14
15buildPythonPackage rec {
16 pname = "google-cloud-speech";
17 version = "2.32.0";
18 pyproject = true;
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchPypi {
23 pname = "google_cloud_speech";
24 inherit version;
25 hash = "sha256-icJhixMdMQxsAOfATSkP+ppdaMIBkQMHZqdzeFDwTnc=";
26 };
27
28 build-system = [ setuptools ];
29
30 dependencies = [
31 google-api-core
32 proto-plus
33 protobuf
34 ] ++ google-api-core.optional-dependencies.grpc;
35
36 nativeCheckInputs = [
37 mock
38 pytest-asyncio
39 pytestCheckHook
40 ];
41
42 disabledTests = [
43 # Test requires project ID
44 "test_list_phrase_set"
45 ];
46
47 pythonImportsCheck = [
48 "google.cloud.speech"
49 "google.cloud.speech_v1"
50 "google.cloud.speech_v1p1beta1"
51 ];
52
53 meta = with lib; {
54 description = "Google Cloud Speech API client library";
55 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-speech";
56 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-speech-v${version}/packages/google-cloud-speech/CHANGELOG.md";
57 license = licenses.asl20;
58 maintainers = [ ];
59 };
60}