nixpkgs/pkgs/development/python-modules/google_cloud_texttospeech/default.nix

32 lines
680 B
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
, fetchPypi
, google_api_core
, pytest
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-texttospeech";
version = "0.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "ec1d049cb54fc036887d946ce0391bde481a3da7263e55908eaf9694079ec46f";
};
checkInputs = [ pytest mock ];
propagatedBuildInputs = [ google_api_core ];
checkPhase = ''
pytest tests/unit
'';
meta = with stdenv.lib; {
description = "Google Cloud Text-to-Speech API client library";
homepage = https://github.com/GoogleCloudPlatform/google-cloud-python;
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}