depot/third_party/nixpkgs/pkgs/development/python-modules/google-cloud-texttospeech/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

60 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
google-api-core,
mock,
proto-plus,
protobuf,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "google-cloud-texttospeech";
version = "2.16.4";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-B7fioSbikhnSAk3WnkDLMf8IBb2uSVfcukUsatSGJAU=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
google-api-core
proto-plus
protobuf
] ++ google-api-core.optional-dependencies.grpc;
nativeCheckInputs = [
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/google-cloud-python/tree/main/packages/google-cloud-texttospeech";
changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-texttospeech-v${version}/packages/google-cloud-texttospeech/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}