8a45d4525b
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
43 lines
969 B
Nix
43 lines
969 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, google-api-core
|
|
, libcst
|
|
, mock
|
|
, proto-plus
|
|
, pytest-asyncio
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-cloud-texttospeech";
|
|
version = "2.11.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-UJSP3a9G6k1arMpoh4/rWrnR4gYtPW6d6LGwWuk5WGg=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|