2018-11-02 13:28:54 -07:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, google_api_core
|
|
|
|
, pytest
|
2019-02-03 02:56:30 -08:00
|
|
|
, mock
|
2018-11-02 13:28:54 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-texttospeech";
|
2020-08-16 10:31:02 -07:00
|
|
|
version = "2.2.0";
|
2018-11-02 13:28:54 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 10:31:02 -07:00
|
|
|
sha256 = "cbbd397e72b6189668134f3c8e8c303198188334a4e6a5f77cc90c3220772f9e";
|
2018-11-02 13:28:54 -07:00
|
|
|
};
|
|
|
|
|
2019-02-03 02:56:30 -08:00
|
|
|
checkInputs = [ pytest mock ];
|
2018-11-02 13:28:54 -07:00
|
|
|
propagatedBuildInputs = [ google_api_core ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests/unit
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Google Cloud Text-to-Speech API client library";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
2018-11-02 13:28:54 -07:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|