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.27.0";
18 pyproject = true;
19
20 disabled = pythonOlder "3.8";
21
22 src = fetchPypi {
23 pname = "google_cloud_texttospeech";
24 inherit version;
25 hash = "sha256-lKOCyVt8xY79JQWiTClo4mFPxr3512+5qBnU7SmuGI4=";
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 # Tests that require credentials
44 "test_list_voices"
45 "test_synthesize_speech"
46 ];
47
48 pythonImportsCheck = [
49 "google.cloud.texttospeech"
50 "google.cloud.texttospeech_v1"
51 "google.cloud.texttospeech_v1beta1"
52 ];
53
54 meta = with lib; {
55 description = "Google Cloud Text-to-Speech API client library";
56 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-texttospeech";
57 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-texttospeech-v${version}/packages/google-cloud-texttospeech/CHANGELOG.md";
58 license = licenses.asl20;
59 maintainers = [ ];
60 };
61}