all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#62973] [PATCH] gnu: Add python-gtts.
@ 2023-04-20 18:01 Dominik Delgado Steuter via Guix-patches via
  2023-04-20 22:46 ` jgart via Guix-patches via
  0 siblings, 1 reply; 3+ messages in thread
From: Dominik Delgado Steuter via Guix-patches via @ 2023-04-20 18:01 UTC (permalink / raw)
  To: 62973; +Cc: Dominik Delgado Steuter

* gnu/packages/python-xyz.scm (python-gtts): New variable.
---
 gnu/packages/python-xyz.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6ea91a2..921eebc 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,27 @@ (define-public python-translate-toolkit
      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
+     `(#:tests? #f)) ;tests require networking
+    (native-inputs (list python-click python-requests))
+    (home-page "https://github.com/pndurette/gTTS")
+    (synopsis "Google Translate text-to-speech interface")
+    (description
+     "Google Text-to-Speech (gTTS), a Python library and CLI tool to interface with
+the Google Translate text-to-speech API.  Write spoken mp3 data to a file, a
+file-like object (bytestring) for further audio manipulation, or stdout.")
+    (license license:expat)))
 
 (define-public python-packaging
   (package/inherit python-packaging-bootstrap

base-commit: 61d15695752997427ed9c3491470dd76b11bd00a
-- 
2.39.2





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#62973] [PATCH] gnu: Add python-gtts.
  2023-04-20 18:01 [bug#62973] [PATCH] gnu: Add python-gtts Dominik Delgado Steuter via Guix-patches via
@ 2023-04-20 22:46 ` jgart via Guix-patches via
  2023-04-24 23:24   ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: jgart via Guix-patches via @ 2023-04-20 22:46 UTC (permalink / raw)
  To: 62973; +Cc: Dominik Delgado Steuter, jgart

From: Dominik Delgado Steuter <d@delgado.nrw>

* gnu/packages/python-xyz.scm (python-gtts): New variable.

Co-authored-by: jgart <jgart@dismail.de>
---

Hi Dominik,

Thanks for the contribution!

I disabled the tests marked with the `@pytest.mark.net` which allowed
the other tests to run and added myself as co-author.

The patch LGTM now,

jgart

 gnu/packages/python-xyz.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index cb00c2bb32..05171de7ed 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.
 ;;;
@@ -20870,6 +20871,29 @@ (define-public python-translate-toolkit
      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), a Python library and CLI tool to interface with
+the Google Translate text-to-speech API.  Write spoken mp3 data to a file, a
+file-like object (bytestring) for further audio manipulation, or stdout.")
+    (license license:expat)))
 
 (define-public python-packaging
   (package/inherit python-packaging-bootstrap
-- 
2.39.2





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#62973] [PATCH] gnu: Add python-gtts.
  2023-04-20 22:46 ` jgart via Guix-patches via
@ 2023-04-24 23:24   ` Nicolas Goaziou
  0 siblings, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2023-04-24 23:24 UTC (permalink / raw)
  To: 62973; +Cc: 62973-done, Dominik Delgado Steuter, jgart

Hello,

jgart via Guix-patches via <guix-patches@gnu.org> writes:

> From: Dominik Delgado Steuter <d@delgado.nrw>
>
> * gnu/packages/python-xyz.scm (python-gtts): New variable.
>
> Co-authored-by: jgart <jgart@dismail.de>

Applied. Thank you.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-04-25  4:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-20 18:01 [bug#62973] [PATCH] gnu: Add python-gtts Dominik Delgado Steuter via Guix-patches via
2023-04-20 22:46 ` jgart via Guix-patches via
2023-04-24 23:24   ` Nicolas Goaziou

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.