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-texttospeech";
17 version = "2.16.3";
18 pyproject = true;
19
20 disabled = pythonOlder "3.8";
21
22 src = fetchPypi {
23 inherit pname version;
24 hash = "sha256-+rwxUDLRN9oHELtMJoc00zYhLY+oMWsjsnfdOoTOchw=";
25 };
26
27 nativeBuildInputs = [ setuptools ];
28
29 propagatedBuildInputs = [
30 google-api-core
31 proto-plus
32 protobuf
33 ] ++ google-api-core.optional-dependencies.grpc;
34
35 nativeCheckInputs = [
36 mock
37 pytest-asyncio
38 pytestCheckHook
39 ];
40
41 disabledTests = [
42 # Disable tests that require credentials
43 "test_list_voices"
44 "test_synthesize_speech"
45 ];
46
47 pythonImportsCheck = [
48 "google.cloud.texttospeech"
49 "google.cloud.texttospeech_v1"
50 "google.cloud.texttospeech_v1beta1"
51 ];
52
53 meta = with lib; {
54 description = "Google Cloud Text-to-Speech API client library";
55 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-texttospeech";
56 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-texttospeech-v${version}/packages/google-cloud-texttospeech/CHANGELOG.md";
57 license = licenses.asl20;
58 maintainers = with maintainers; [ ];
59 };
60}