From ae5e779a11b7869b77226954e2fe197ff9814ff8 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Fri, 21 Nov 2025 21:16:09 +0100 Subject: [PATCH] gnu: python-redo: Update to 3.0.0. * gnu/packages/python-xyz.scm (python-redo): Update to 3.0.0. [build-system]: Switch to pyproject-build-system. [arguments]: Drop them. [native-inputs]: Add python-setuptools, python-pytest, python-pytest-asyncio. [synopsis, description]: Improve style. Change-Id: Ic71dfeb146330c769127f8bbd71cf2bd12655ea6 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 51 ++++++++++++++----------------------- 1 file changed, 19 insertions(+), 32 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index bbefc03dea66e2b6462659bb4d0120d1017870eb..50ed8300491c318862e8089053cc4ce0069084a0 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -32425,39 +32425,26 @@ lets you write CommonMark inside of Docutils & Sphinx projects.") (license license:expat))) (define-public python-redo - ;; The latest release isn't tagged: - ;; https://github.com/mozilla-releng/redo/issues/76 - (let ((commit "50cfe8e3656f253f9e51df3a998530351d2d9a8c") - (revision "0")) - (package - (name "python-redo") - (version (git-version "2.0.4" revision commit)) - (source - (origin - (method git-fetch) ; There are no tests in the PyPI release. - (uri (git-reference - (url "https://github.com/mozilla-releng/redo") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0xpylx97qr4ikdhsr208ri41007mpp57a4n8mmlmlqmdljmsdpdb")))) - (build-system python-build-system) - (native-inputs - (list python-mock - python-pytest)) - (arguments - (list #:phases - #~(modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - ;; The project uses tox to run the tests via pytest. - (invoke "pytest"))))))) - (home-page "https://github.com/mozilla-releng/redo") - (synopsis "Utilities to retry Python callables") - (description "Redo provides various means to add seamless ability to + (package + (name "python-redo") + (version "3.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mozilla-releng/redo") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1sh12f1zbdcafmnqlw25pyirhg78linbb7sxd3vnbdlm92dry0b0")))) + (build-system pyproject-build-system) + (native-inputs + (list python-mock python-pytest python-pytest-asyncio python-setuptools)) + (home-page "https://github.com/mozilla-releng/redo") + (synopsis "Utilities to retry Python callables") + (description "Redo provides various means to add seamless ability to retry to any Python callable.") - (license license:mpl2.0)))) + (license license:mpl2.0))) (define-public python-opcodes ;; There are no tags in this repo, but 'opcodes/__init__.py' specifies a