9543354213
GitOrigin-RevId: c21ba4f7bb4a3d621eb1d187e6b5e816bb85380c
43 lines
981 B
Nix
43 lines
981 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, google-api-core
|
|
, libcst
|
|
, mock
|
|
, proto-plus
|
|
, pytest-asyncio
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-cloud-texttospeech";
|
|
version = "2.5.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "2672f5caf518105fe9389269efd59a0761ad48b8140e68bac3f6a5062be9d8a4";
|
|
};
|
|
|
|
propagatedBuildInputs = [ libcst google-api-core proto-plus ];
|
|
|
|
checkInputs = [ mock pytest-asyncio pytestCheckHook ];
|
|
|
|
disabledTests = [
|
|
# Disable tests that require credentials
|
|
"test_list_voices"
|
|
"test_synthesize_speech"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"google.cloud.texttospeech"
|
|
"google.cloud.texttospeech_v1"
|
|
"google.cloud.texttospeech_v1beta1"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Google Cloud Text-to-Speech API client library";
|
|
homepage = "https://github.com/googleapis/python-texttospeech";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
};
|
|
}
|