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.31.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-HwwMZEjxdeHi9j2W+xOvXZq+5pcLuyLB5ANvUxNqVYg="; 26 }; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ 31 google-api-core 32 proto-plus 33 protobuf 34 ] 35 ++ google-api-core.optional-dependencies.grpc; 36 37 nativeCheckInputs = [ 38 mock 39 pytest-asyncio 40 pytestCheckHook 41 ]; 42 43 disabledTests = [ 44 # Tests that require credentials 45 "test_list_voices" 46 "test_synthesize_speech" 47 ]; 48 49 pythonImportsCheck = [ 50 "google.cloud.texttospeech" 51 "google.cloud.texttospeech_v1" 52 "google.cloud.texttospeech_v1beta1" 53 ]; 54 55 meta = with lib; { 56 description = "Google Cloud Text-to-Speech API client library"; 57 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-texttospeech"; 58 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-texttospeech-v${version}/packages/google-cloud-texttospeech/CHANGELOG.md"; 59 license = licenses.asl20; 60 maintainers = [ ]; 61 }; 62}