From patchwork Thu Apr 20 22:46:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: jgart X-Patchwork-Id: 49330 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6F40927BBEA; Thu, 20 Apr 2023 23:51:16 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 3839427BBE2 for ; Thu, 20 Apr 2023 23:51:15 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ppd7I-0007vD-55; Thu, 20 Apr 2023 18:51:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppd7G-0007v1-GG for guix-patches@gnu.org; Thu, 20 Apr 2023 18:51:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ppd7G-00025l-8f for guix-patches@gnu.org; Thu, 20 Apr 2023 18:51:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ppd7F-0007EP-Tu for guix-patches@gnu.org; Thu, 20 Apr 2023 18:51:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62973] [PATCH] gnu: Add python-gtts. References: <20230420180138.16291-1-d@delgado.nrw> In-Reply-To: <20230420180138.16291-1-d@delgado.nrw> Resent-From: jgart Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 20 Apr 2023 22:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62973 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62973@debbugs.gnu.org Cc: Dominik Delgado Steuter , jgart Received: via spool by 62973-submit@debbugs.gnu.org id=B62973.168203102327706 (code B ref 62973); Thu, 20 Apr 2023 22:51:01 +0000 Received: (at 62973) by debbugs.gnu.org; 20 Apr 2023 22:50:23 +0000 Received: from localhost ([127.0.0.1]:38829 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppd6d-0007Cn-1f for submit@debbugs.gnu.org; Thu, 20 Apr 2023 18:50:23 -0400 Received: from mx2.dismail.de ([159.69.191.136]:36649) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppd6a-0007CV-Vi for 62973@debbugs.gnu.org; Thu, 20 Apr 2023 18:50:21 -0400 Received: from mx2.dismail.de (localhost [127.0.0.1]) by mx2.dismail.de (OpenSMTPD) with ESMTP id 79659dcc; Fri, 21 Apr 2023 00:50:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=20190914; bh=6XuZ6b3kyYppjI5bDm+l2 OCXn/v2YFB9eF44ib0TyIQ=; b=Rb1fu2XPxxzq5bdwIl60yhMmiERR2Oq5uw4Si tfVq5VLVl8j477EAzRJ03mfRaC0TwQq7sjtkjzddIfvxd3WSUPILPkqKNG3ovY8P VWlpc6ULT1IoyKCSXyydNXqSaLwJrJA3sEfJ3Oe5VXQxsC3zuv5DZkKq2IRiseO3 XEviL2N80y6WmnOU5Tq6rm+hfvjgaKth5Oy4UyQAd9PikOAOso5IyVE7dwllQEHn AvA2hsjF4PRjIyhYZxiLLOkcb3vRKCkp/U2v1OFtWX3eVxBBNLfA65HWQZJ0bMq9 Jznchqk7cx1AepyrE42q38Ba10vt1HmkrDC5EaGWKRK+K+82w== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx2.dismail.de (OpenSMTPD) with ESMTP id 02f5ab2d; Fri, 21 Apr 2023 00:50:14 +0200 (CEST) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id 5db37ade; Fri, 21 Apr 2023 00:50:13 +0200 (CEST) Received: by dismail.de (OpenSMTPD) with ESMTPSA id d615a0ac (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 21 Apr 2023 00:50:08 +0200 (CEST) Date: Thu, 20 Apr 2023 17:46:39 -0500 Message-Id: <20230420224638.8092-1-jgart@dismail.de> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: jgart X-ACL-Warn: , jgart via Guix-patches X-Patchwork-Original-From: jgart via Guix-patches via From: jgart Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From: Dominik Delgado Steuter * gnu/packages/python-xyz.scm (python-gtts): New variable. Co-authored-by: jgart --- 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 ;;; Copyright © 2023 Amade Nemes ;;; Copyright © 2023 Bruno Victal +;;; Copyright © 2023 Dominik Delgado Steuter ;;; ;;; 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