depot/third_party/nixpkgs/pkgs/development/python-modules/google-cloud-texttospeech/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

56 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, google-api-core
, mock
, proto-plus
, protobuf
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "google-cloud-texttospeech";
version = "2.14.1";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-3XFvKnaK1nUCz9mbmSXFH/1uFr6TtBCr7v/arBkL/oE=";
};
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/python-texttospeech";
changelog = "https://github.com/googleapis/python-texttospeech/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}