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