1{ lib 2, buildPythonPackage 3, fetchPypi 4, google-api-core 5, mock 6, proto-plus 7, protobuf 8, pytest-asyncio 9, pytestCheckHook 10, pythonOlder 11}: 12 13buildPythonPackage rec { 14 pname = "google-cloud-texttospeech"; 15 version = "2.14.2"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-ojc4NmmI+vTSZSAPV8XeQxLvo9FLtDS5Km5UFxP12QY="; 23 }; 24 25 propagatedBuildInputs = [ 26 google-api-core 27 proto-plus 28 protobuf 29 ] ++ google-api-core.optional-dependencies.grpc; 30 31 nativeCheckInputs = [ 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 changelog = "https://github.com/googleapis/python-texttospeech/blob/v${version}/CHANGELOG.md"; 53 license = licenses.asl20; 54 maintainers = with maintainers; [ ]; 55 }; 56}