2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2021-01-05 13:40:07 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
2021-01-06 09:46:48 +00:00
|
|
|
, google-api-core
|
2021-01-05 13:40:07 +00:00
|
|
|
, libcst
|
|
|
|
, mock
|
|
|
|
, proto-plus
|
|
|
|
, pytest-asyncio
|
|
|
|
}:
|
2018-11-02 20:28:54 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-texttospeech";
|
2020-08-16 18:31:02 +01:00
|
|
|
version = "2.2.0";
|
2018-11-02 20:28:54 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-05 13:40:07 +00:00
|
|
|
sha256 = "17igfwh34369gkvsbrm46j1ii61i6268wg2g2dl9c65nf9z3kgfb";
|
2018-11-02 20:28:54 +00:00
|
|
|
};
|
|
|
|
|
2021-01-06 09:46:48 +00:00
|
|
|
propagatedBuildInputs = [ libcst google-api-core proto-plus ];
|
2018-11-02 20:28:54 +00:00
|
|
|
|
2020-11-03 01:19:22 +00:00
|
|
|
checkInputs = [ mock pytest-asyncio pytestCheckHook ];
|
|
|
|
|
2021-01-05 13:40:07 +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"
|
|
|
|
];
|
2018-11-02 20:28:54 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-11-02 20:28:54 +00:00
|
|
|
description = "Google Cloud Text-to-Speech API client library";
|
2020-11-03 01:19:22 +00:00
|
|
|
homepage = "https://github.com/googleapis/python-texttospeech";
|
2018-11-02 20:28:54 +00:00
|
|
|
license = licenses.asl20;
|
2021-01-05 13:40:07 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-11-02 20:28:54 +00:00
|
|
|
};
|
|
|
|
}
|