From patchwork Fri Jun 23 23:47:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 51242 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 6ED6C27BBEA; Sat, 24 Jun 2023 00:49:32 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,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 2A74927BBE9 for ; Sat, 24 Jun 2023 00:49:31 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCqWW-00066o-0P; Fri, 23 Jun 2023 19:49: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 1qCqWU-00063s-IN for guix-patches@gnu.org; Fri, 23 Jun 2023 19:49: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 1qCqWU-0002lf-9q for guix-patches@gnu.org; Fri, 23 Jun 2023 19:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qCqWU-0007jU-18 for guix-patches@gnu.org; Fri, 23 Jun 2023 19:49:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62078] [PATCH v2] gnu: Add python-redo. Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Jun 2023 23:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62078 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch moreinfo To: jgart , 62078@debbugs.gnu.org Received: via spool by 62078-submit@debbugs.gnu.org id=B62078.168756409229560 (code B ref 62078); Fri, 23 Jun 2023 23:49:01 +0000 Received: (at 62078) by debbugs.gnu.org; 23 Jun 2023 23:48:12 +0000 Received: from localhost ([127.0.0.1]:39694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCqVf-0007gg-Iw for submit@debbugs.gnu.org; Fri, 23 Jun 2023 19:48:11 -0400 Received: from knopi.disroot.org ([178.21.23.139]:52938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCqVZ-0007fJ-Tn for 62078@debbugs.gnu.org; Fri, 23 Jun 2023 19:48:10 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 5E440404A6; Sat, 24 Jun 2023 01:48:01 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1-QQ8zX7ykLy; Sat, 24 Jun 2023 01:47:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1687564076; bh=lMDo5ZkGlNv8pcMLKc1nYN4amxf7BbTb/yTX9T0ShGw=; h=Date:Subject:To:References:From:In-Reply-To; b=lyf2l5MtWmEUGmWE35fAoBNig5pbMhX2OokV+LGxA/DBNoVfz0kTwsrW7xjH9A3it GEd6dOkx8fNpiv1v4vEjuGvy24eCkF75ALwdM1H/KpmAHvOpfhZgavrYSeieWfBawC LwuLIrM95RtXQCKcddICugzeRHA1X5zSKVmr8D4VvpErNhVbAR8XQn9/CehG/nSSzA IObBVaItOdu6WoRGnWBIeVchWbOqx29lmqEa4D3oqwdh2Ss9GwDUAA87e7mhnH5wfa 0fNkTbEll64Ok0PiYolndFWdqJ4uH9UdDo6UZLZv6iTuEYjLVG/8Ji0nSROHnjpQWX mcP3z+XVhqISQ== Message-ID: <6a9e1e37-7a22-c760-dfb8-da59b398ba77@disroot.org> Date: Sat, 24 Jun 2023 07:47:51 +0800 MIME-Version: 1.0 References: <855dc5d7-657c-f9db-b819-792ee1b0a430@disroot.org> <299af6a1f3d1d59bc17b549b8d50b812@dismail.de> Content-Language: en-US In-Reply-To: <299af6a1f3d1d59bc17b549b8d50b812@dismail.de> 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: Adam Faiz X-ACL-Warn: , Adam Faiz via Guix-patches X-Patchwork-Original-From: Adam Faiz via Guix-patches via From: Adam Faiz 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 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 From 280f9812dbd0330e5656b19c3f818a811b1e7637 Mon Sep 17 00:00:00 2001 Message-Id: <280f9812dbd0330e5656b19c3f818a811b1e7637.1687562979.git.adam.faiz@disroot.org> From: AwesomeAdam54321 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