unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Adam Faiz via Guix-patches via <guix-patches@gnu.org>
To: jgart <jgart@dismail.de>, 62078@debbugs.gnu.org
Subject: [bug#62078] [PATCH v2] gnu: Add python-redo.
Date: Sat, 24 Jun 2023 07:47:51 +0800	[thread overview]
Message-ID: <6a9e1e37-7a22-c760-dfb8-da59b398ba77@disroot.org> (raw)
In-Reply-To: <299af6a1f3d1d59bc17b549b8d50b812@dismail.de>

[-- Attachment #1: Type: text/plain, Size: 599 bytes --]

On 6/4/23 21:14, jgart wrote:
> Hi Adam,
> 
> Thanks for sending an update.
> 
> How did you take this patch? I'm trying to debug why this patch is not applying cleanly on my end.
> 
> I get the following error:
> 
> warning: Patch sent with format=flowed; space at the end of lines might be lost.
> Applying: gnu: Add python-redo.
> error: corrupt patch at line 51
> Patch failed at 0001 gnu: Add python-redo.Sorry for the late reply, the patch doesn't apply cleanly because my email client sent the email with format=flowed.
Attached is a rebased patch on top of master.
  
> all best,
> 
> jgart

[-- Attachment #2: gnu-Add-python-redo.patch --]
[-- Type: text/x-patch, Size: 2336 bytes --]

From 280f9812dbd0330e5656b19c3f818a811b1e7637 Mon Sep 17 00:00:00 2001
Message-Id: <280f9812dbd0330e5656b19c3f818a811b1e7637.1687562979.git.adam.faiz@disroot.org>
From: AwesomeAdam54321 <adam.faiz@disroot.org>
Date: Thu, 9 Mar 2023 21:59:48 +0800
Subject: [PATCH v2] gnu: Add python-redo.

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

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 799c5652b0..0b0403c0ce 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -30280,6 +30280,41 @@ (define-public python-recommonmark
 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)               ; no tests in 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
+retry to any Python callable.")
+      (license license:mpl2.0))))
+
 (define-public python-pyhull
   (package
     (name "python-pyhull")

base-commit: f25529b08e356f89ca7cecc44295085531a8faba
-- 
2.40.1


  reply	other threads:[~2023-06-23 23:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-09 16:47 [bug#62078] [PATCH] gnu: Add python-redo Adam Faiz via Guix-patches via
2023-06-02 12:48 ` jgart via Guix-patches via
2023-06-03  4:02   ` [bug#62078] [PATCH v2] " Adam Faiz via Guix-patches via
2023-06-04 13:14   ` jgart via Guix-patches via
2023-06-23 23:47     ` Adam Faiz via Guix-patches via [this message]
2023-06-22  5:19   ` jgart via Guix-patches via
2023-07-12  6:24 ` bug#62078: [PATCH] " jgart via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6a9e1e37-7a22-c760-dfb8-da59b398ba77@disroot.org \
    --to=guix-patches@gnu.org \
    --cc=62078@debbugs.gnu.org \
    --cc=adam.faiz@disroot.org \
    --cc=jgart@dismail.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).