From 14970395cc737231c1c4b91a904ffe3ec98a2c75 Mon Sep 17 00:00:00 2001 From: Dominik Delgado Steuter Date: Thu, 20 Apr 2023 17:46:39 -0500 Subject: gnu: Add python-gtts. * gnu/packages/python-xyz.scm (python-gtts): New variable. Co-authored-by: jgart Signed-off-by: Nicolas Goaziou --- gnu/packages/python-xyz.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'gnu/packages/python-xyz.scm') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 6ea91a27195..dd1b4a64f27 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. ;;; @@ -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 -- cgit v1.3 From 27e1451891db22067f569c60065a7ee1091a6993 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 24 Apr 2023 12:53:34 +0200 Subject: gnu: python-trio: Downgrade to 0.21. Version 0.22 deprecates MultiError, which trips up testsuites of dependents. python-anyio for instance is explicitly not compatible with >= 0.22, so stick to an older release. * gnu/packages/python-xyz.scm (python-trio): Downgrade to 0.21. [arguments]: Disable failing test. --- gnu/packages/python-xyz.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python-xyz.scm') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index dd1b4a64f27..95898c31da7 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -24837,13 +24837,13 @@ project.") (define-public python-trio (package (name "python-trio") - (version "0.22.0") + (version "0.21.0") (source (origin (method url-fetch) (uri (pypi-uri "trio" version)) (sha256 - (base32 "1kxa9v0cds0xnklvzppv4ix4xg81r73p5pm4qlvv2iqa832z2s6f")))) + (base32 "04qwzy4295ajxpns0hrmn3asma80sjpimzpb3i877vwynsvkjgsj")))) (build-system python-build-system) (arguments `(#:phases @@ -24876,6 +24876,8 @@ _cyclic_garbage" " and not test_locals_destroyed_promptly_on_cancel" " and not test_ipython_exc_handler" " and not test_for_leaking_fds" + ;; Signals don’t work in the build sandbox. + " and not test_open_signal_receiver" ;; These try to raise KeyboardInterrupt which does not work ;; in the build environment. " and not test_ki_self" -- cgit v1.3 From 54771a5b6a4ca8cad4e66e90756c82ac7f9e3c9b Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Tue, 25 Apr 2023 08:34:44 +0200 Subject: gnu: python-anyio: Upgrade to 3.6.2. * gnu/packages/python-xyz.scm (python-anyio): Upgrade to 3.6.2. --- gnu/packages/python-xyz.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python-xyz.scm') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 95898c31da7..38c182ca960 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -25738,14 +25738,14 @@ standard error channel (stderr) in your program.") (define-public python-anyio (package (name "python-anyio") - (version "3.5.0") + (version "3.6.2") (source (origin (method url-fetch) (uri (pypi-uri "anyio" version)) (sha256 (base32 - "19m58805wir4i2s45dd5ynwlzb7ky1218isbir53gpqzzgigzbm0")))) + "08bljjq5xq0l9id36q3vvjgygirq7g7q2bs41hdg82p379khvsi5")))) (build-system python-build-system) (arguments `(#:phases -- cgit v1.3