diff options
author | Dominik Delgado Steuter <d@delgado.nrw> | 2023-04-20 17:46:39 -0500 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2023-04-25 01:13:35 +0200 |
commit | 14970395cc737231c1c4b91a904ffe3ec98a2c75 (patch) | |
tree | c641ac8cebd57b220aee459263535d9abfdc4fbd /gnu/packages/python-xyz.scm | |
parent | 69e9349adc79b1d24ac7a3efb7664628c7ecd7da (diff) | |
download | guix-14970395cc737231c1c4b91a904ffe3ec98a2c75.tar guix-14970395cc737231c1c4b91a904ffe3ec98a2c75.tar.gz |
gnu: Add python-gtts.
* gnu/packages/python-xyz.scm (python-gtts): New variable.
Co-authored-by: jgart <jgart@dismail.de>
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r-- | gnu/packages/python-xyz.scm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 6ea91a2719..dd1b4a64f2 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -135,6 +135,7 @@ ;;; Copyright © 2023 Gabriel Wicki <gabriel@erlikon.ch> ;;; Copyright © 2023 Amade Nemes <nemesamade@gmail.com> ;;; Copyright © 2023 Bruno Victal <mirai@makinata.eu> +;;; Copyright © 2023 Dominik Delgado Steuter <d@delgado.nrw> ;;; ;;; This file is part of GNU Guix. ;;; @@ -20840,6 +20841,30 @@ while only declaring the test-specific fields.") several utilities, as well as an API for building localization tools.") (license license:gpl2+))) +(define-public python-gtts + (package + (name "python-gtts") + (version "2.3.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "gTTS" version)) + (sha256 + (base32 + "1jsg1prpzr7gj5sn385mkv2v1i8xfc83ycm87hvsi2j0y366plps")))) + (build-system pyproject-build-system) + (arguments + ;; Disable tests that require internet. + (list #:test-flags '(list "-k" "not net"))) + (native-inputs + (list python-pytest python-testfixtures python-click python-requests)) + (home-page "https://github.com/pndurette/gTTS") + (synopsis "Google Translate text-to-speech interface") + (description + "Google Text-to-Speech (gTTS) is a Python library and CLI tool to +interface with the Google Translate text-to-speech API. It lets you write +spoken MP3 data to a file, a file-like object (bytestring) for further audio +manipulation, or @code{stdout}.") + (license license:expat))) (define-public python-packaging (package/inherit python-packaging-bootstrap |