depot/third_party/nixpkgs/pkgs/development/python-modules/google-cloud-texttospeech/default.nix

56 lines
1 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, google-api-core
, libcst
, mock
, proto-plus
, pytest-asyncio
, pythonOlder
}:
buildPythonPackage rec {
pname = "google-cloud-texttospeech";
version = "2.12.2";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-z/rOMqQ+UkJl8zw55JP54+s+Qk+gHxmuBDjZaz3Qacs=";
};
propagatedBuildInputs = [
libcst
google-api-core
proto-plus
];
checkInputs = [
mock
pytest-asyncio
pytestCheckHook
];
disabledTests = [
# Disable tests that require credentials
"test_list_voices"
"test_synthesize_speech"
];
pythonImportsCheck = [
"google.cloud.texttospeech"
"google.cloud.texttospeech_v1"
"google.cloud.texttospeech_v1beta1"
];
meta = with lib; {
description = "Google Cloud Text-to-Speech API client library";
homepage = "https://github.com/googleapis/python-texttospeech";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}