From patchwork Sat Jun 3 04:02:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 50563 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 59B3A27BBEA; Sat, 3 Jun 2023 05:03:15 +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 ED75027BBE2 for ; Sat, 3 Jun 2023 05:03:13 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q5ITo-0001PS-9A; Sat, 03 Jun 2023 00:03: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 1q5ITm-0001PJ-PV for guix-patches@gnu.org; Sat, 03 Jun 2023 00:03:03 -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 1q5ITm-00081L-Dg for guix-patches@gnu.org; Sat, 03 Jun 2023 00:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q5ITm-000745-8R for guix-patches@gnu.org; Sat, 03 Jun 2023 00:03: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: Sat, 03 Jun 2023 04:03:02 +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 To: jgart , 62078@debbugs.gnu.org Received: via spool by 62078-submit@debbugs.gnu.org id=B62078.168576497527139 (code B ref 62078); Sat, 03 Jun 2023 04:03:02 +0000 Received: (at 62078) by debbugs.gnu.org; 3 Jun 2023 04:02:55 +0000 Received: from localhost ([127.0.0.1]:41285 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5ITf-00073f-5I for submit@debbugs.gnu.org; Sat, 03 Jun 2023 00:02:55 -0400 Received: from knopi.disroot.org ([178.21.23.139]:48650) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5ITb-00073S-Ul for 62078@debbugs.gnu.org; Sat, 03 Jun 2023 00:02:53 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id DBE5040615; Sat, 3 Jun 2023 06:02:46 +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 yUboc2tDzdCc; Sat, 3 Jun 2023 06:02:45 +0200 (CEST) Message-ID: <855dc5d7-657c-f9db-b819-792ee1b0a430@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1685764965; bh=9AqedTSEbp87d7Enc3rLvBfFuPCPPpoW8A9l+SSgit0=; h=Date:Subject:To:References:From:In-Reply-To; b=ha2kmhjDrCz6RLezqJfIc2Y7go6DUAqWUMM4e4yOwVVSfZb/wxF6jh/6Dp1PP6e2F N8Q4RoUvKKMRXIawx+zWUefMxlFBExQvXTgMm2NiDFMCtvd/Ts+g25olXncVWytiWH Z9wsBJWE5K4RkGFheYcZP2579wMfISn4PjEftq8kzP4uBy/3ZWlI3BVKMOM6vUnYy2 9+Zc+SUcc+yJwXkhdCvGmfSb/3eZYmh0g8zVPdTnrGhbHwTPmnVojBcJrWvoTwHdOl bHgFzUI8ZoS9b1v3w/6ejLRN4nCoQSIKoN+c+1FlEVPbD4dbev55zX5mAGLFsonJ5c hjf0Dx+aUsDDA== Date: Sat, 3 Jun 2023 12:02:40 +0800 MIME-Version: 1.0 Content-Language: en-US References: In-Reply-To: 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 From 971c628998b36dc32bafd30364f635bafc8ff7cd Mon Sep 17 00:00:00 2001 Message-Id: <971c628998b36dc32bafd30364f635bafc8ff7cd.1685764335.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(+) base-commit: 12e6a5923812abf180f03bea9e07dd99244a3fcd diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 19f4ec97ff..2e2387a14a 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -29988,6 +29988,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")