2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2021-01-09 10:05:03 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
|
|
|
, google-api-core
|
|
|
|
, libcst
|
|
|
|
, mock
|
|
|
|
, proto-plus
|
|
|
|
, pytest-asyncio
|
2022-10-06 18:32:54 +00:00
|
|
|
, pythonOlder
|
2021-01-09 10:05:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-texttospeech";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "2.12.3";
|
2022-10-06 18:32:54 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-10-21 18:38:19 +00:00
|
|
|
hash = "sha256-gnSl/W0mTv6It//+xV5ti0Rd6io1Gh4yxd0arrbEPtQ=";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
libcst
|
|
|
|
google-api-core
|
|
|
|
proto-plus
|
|
|
|
];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Disable tests that require credentials
|
|
|
|
"test_list_voices"
|
|
|
|
"test_synthesize_speech"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"google.cloud.texttospeech"
|
|
|
|
"google.cloud.texttospeech_v1"
|
|
|
|
"google.cloud.texttospeech_v1beta1"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-01-09 10:05:03 +00:00
|
|
|
description = "Google Cloud Text-to-Speech API client library";
|
|
|
|
homepage = "https://github.com/googleapis/python-texttospeech";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|