From b2112ac230a17d6ae1a350145d50a31a715167b9 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sun, 3 Jan 2021 15:09:30 +0100 Subject: [PATCH 1/3] gnu: Add python-gtts. * gnu/packages/python-web.scm (python-gtts): New public variable. --- gnu/packages/python-web.scm | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index b0268e5a31..75f07b92d6 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -558,6 +558,45 @@ over a different origin than that of the web application.") (define-public python2-furl (package-with-python2 python-furl)) +(define-public python-gtts + (package + (name "python-gtts") + (version "2.2.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "gTTS" version)) + (sha256 + (base32 "03qah9gxhx8m6apviqyffay2dpijm2k5h88ikzgndyvs6zc18dxm")))) + (build-system python-build-system) + (arguments + ;; XXX: The test suite requires unpackaged python-testfixtures, at least. + `(#:tests? #f)) + (propagated-inputs + `(("python-click" ,python-click) + ("python-requests" ,python-requests) + ("python-six" ,python-six))) + ;;(native-inputs + ;; `(("python-flake8" ,python-flake8) + ;; ("python-mock" ,python-mock) + ;; ("python-pytest" ,python-pytest) + ;; ("python-pytest-cov" ,python-pytest-cov) + ;; ("python-six" ,python-six) + ;; ("python-testfixtures" ,python-testfixtures))) + (home-page "https://github.com/pndurette/gTTS") + (synopsis "Google Translate text-to-speech SaaSS client and library") + (description + "This package provides a Python API to interact with the @acronym{gTTS, +Google Translate text-to-speech} @acronym{SaaSS, Service as a Software +Substitute}. + +You should not use this library in your software: it does nothing but send all +submitted text on to Google and give them complete control over the result. +It is useless without an Internet connection, or if the API is changed. When +the service is discontinued, all copies of your software will become useless as +well.") + (license license:expat))) + (define-public python-httplib2 (package (name "python-httplib2") -- 2.30.1