GNU bug report logs - #62973
[PATCH] gnu: Add python-gtts.

Previous Next

Package: guix-patches;

Reported by: Dominik Delgado Steuter <d <at> delgado.nrw>

Date: Thu, 20 Apr 2023 18:03:02 UTC

Severity: normal

Tags: patch

Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 62973 in the body.
You can then email your comments to 62973 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#62973; Package guix-patches. (Thu, 20 Apr 2023 18:03:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dominik Delgado Steuter <d <at> delgado.nrw>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 20 Apr 2023 18:03:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dominik Delgado Steuter <d <at> delgado.nrw>
To: guix-patches <at> gnu.org
Cc: Dominik Delgado Steuter <d <at> delgado.nrw>
Subject: [PATCH] gnu: Add python-gtts.
Date: Thu, 20 Apr 2023 20:01:38 +0200
* 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 <at> erlikon.ch>
 ;;; Copyright © 2023 Amade Nemes <nemesamade <at> gmail.com>
 ;;; Copyright © 2023 Bruno Victal <mirai <at> makinata.eu>
+;;; Copyright © 2023 Dominik Delgado Steuter <d <at> 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





Information forwarded to guix-patches <at> gnu.org:
bug#62973; Package guix-patches. (Thu, 20 Apr 2023 22:51:01 GMT) Full text and rfc822 format available.

Message #8 received at 62973 <at> debbugs.gnu.org (full text, mbox):

From: jgart <jgart <at> dismail.de>
To: 62973 <at> debbugs.gnu.org
Cc: Dominik Delgado Steuter <d <at> delgado.nrw>, jgart <jgart <at> dismail.de>
Subject: [PATCH] gnu: Add python-gtts.
Date: Thu, 20 Apr 2023 17:46:39 -0500
From: Dominik Delgado Steuter <d <at> delgado.nrw>

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

Co-authored-by: jgart <jgart <at> 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 <at> erlikon.ch>
 ;;; Copyright © 2023 Amade Nemes <nemesamade <at> gmail.com>
 ;;; Copyright © 2023 Bruno Victal <mirai <at> makinata.eu>
+;;; Copyright © 2023 Dominik Delgado Steuter <d <at> 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





Information forwarded to guix-patches <at> gnu.org:
bug#62973; Package guix-patches. (Mon, 24 Apr 2023 23:25:02 GMT) Full text and rfc822 format available.

Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: jgart via Guix-patches via <guix-patches <at> gnu.org>
Cc: 62973-done <at> debbugs.gnu.org, Dominik Delgado Steuter <d <at> delgado.nrw>,
 jgart <jgart <at> dismail.de>
Subject: Re: [bug#62973] [PATCH] gnu: Add python-gtts.
Date: Tue, 25 Apr 2023 01:24:25 +0200
Hello,

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

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

Applied. Thank you.

Regards,
-- 
Nicolas Goaziou




Reply sent to Nicolas Goaziou <mail <at> nicolasgoaziou.fr>:
You have taken responsibility. (Mon, 24 Apr 2023 23:25:02 GMT) Full text and rfc822 format available.

Notification sent to Dominik Delgado Steuter <d <at> delgado.nrw>:
bug acknowledged by developer. (Mon, 24 Apr 2023 23:25:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 23 May 2023 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 22 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.