1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, google-api-core
6, libcst
7, mock
8, proto-plus
9, pytest-asyncio
10, pythonOlder
11}:
12
13buildPythonPackage rec {
14 pname = "google-cloud-texttospeech";
15 version = "2.12.3";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-gnSl/W0mTv6It//+xV5ti0Rd6io1Gh4yxd0arrbEPtQ=";
23 };
24
25 propagatedBuildInputs = [
26 libcst
27 google-api-core
28 proto-plus
29 ];
30
31 checkInputs = [
32 mock
33 pytest-asyncio
34 pytestCheckHook
35 ];
36
37 disabledTests = [
38 # Disable tests that require credentials
39 "test_list_voices"
40 "test_synthesize_speech"
41 ];
42
43 pythonImportsCheck = [
44 "google.cloud.texttospeech"
45 "google.cloud.texttospeech_v1"
46 "google.cloud.texttospeech_v1beta1"
47 ];
48
49 meta = with lib; {
50 description = "Google Cloud Text-to-Speech API client library";
51 homepage = "https://github.com/googleapis/python-texttospeech";
52 license = licenses.asl20;
53 maintainers = with maintainers; [ SuperSandro2000 ];
54 };
55}