nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 43 lines 969 B view raw
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.11.0"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "sha256-UJSP3a9G6k1arMpoh4/rWrnR4gYtPW6d6LGwWuk5WGg="; 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}