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";
|
2021-04-05 04:00:24 +01:00
|
|
|
version = "2.3.0";
|
2018-11-02 20:28:54 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-05 04:00:24 +01:00
|
|
|
sha256 = "sha256-zzssVnXA1xe3270yEOREJ9GdmyRPjV1F4EBelf9AQ/c=";
|
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
|
|
|
};
|
|
|
|
}
|