python3Packages.google_cloud_texttospeech: fix build
This commit is contained in:
parent
51f1715997
commit
9a902f2a71
@ -1,10 +1,5 @@
|
|||||||
{ stdenv
|
{ stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder
|
||||||
, buildPythonPackage
|
, google_api_core, libcst, mock, proto-plus, pytest-asyncio, }:
|
||||||
, fetchPypi
|
|
||||||
, google_api_core
|
|
||||||
, pytest
|
|
||||||
, mock
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "google-cloud-texttospeech";
|
pname = "google-cloud-texttospeech";
|
||||||
@ -15,16 +10,17 @@ buildPythonPackage rec {
|
|||||||
sha256 = "cbbd397e72b6189668134f3c8e8c303198188334a4e6a5f77cc90c3220772f9e";
|
sha256 = "cbbd397e72b6189668134f3c8e8c303198188334a4e6a5f77cc90c3220772f9e";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest mock ];
|
disabled = pythonOlder "3.5";
|
||||||
propagatedBuildInputs = [ google_api_core ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
checkInputs = [ mock pytest-asyncio pytestCheckHook ];
|
||||||
pytest tests/unit
|
propagatedBuildInputs = [ google_api_core libcst proto-plus ];
|
||||||
'';
|
|
||||||
|
# Disable tests that require credentials
|
||||||
|
disabledTests = ["test_synthesize_speech" "test_list_voices"];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Google Cloud Text-to-Speech API client library";
|
description = "Google Cloud Text-to-Speech API client library";
|
||||||
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
homepage = "https://github.com/googleapis/python-texttospeech";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = [ maintainers.costrouc ];
|
maintainers = [ maintainers.costrouc ];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user