From: Pierre Langlois <pierre.langlois@gmx.com>
To: 41968@debbugs.gnu.org
Cc: Pierre Langlois <pierre.langlois@gmx.com>
Subject: [bug#41968] [PATCH 3/5] gnu: Add python-retrying.
Date: Sat, 20 Jun 2020 20:30:00 +0200 [thread overview]
Message-ID: <87blldh9p3.fsf@gmx.com> (raw)
In-Reply-To: <87r1u9ha11.fsf@gmx.com>
[-- Attachment #1: 0003-gnu-Add-python-retrying.patch --]
[-- Type: text/x-patch, Size: 2562 bytes --]
From f5ab03bda4a872db340349ef837776314501513e Mon Sep 17 00:00:00 2001
From: Pierre Langlois <pierre.langlois@gmx.com>
Date: Thu, 18 Jun 2020 00:57:49 +0200
Subject: [PATCH 3/5] gnu: Add python-retrying.
* gnu/packages/python-xyz.scm (python-retrying): New variable.
---
gnu/packages/python-xyz.scm | 35 ++++++++++++++++++++++++++++++++++-
1 file changed, 34 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e95dec21c2..4a22b42ac2 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -61,7 +61,7 @@
;;; Copyright © 2019 Jack Hill <jackhill@jackhill.us>
;;; Copyright © 2019, 2020 Guillaume Le Vaillant <glv@posteo.net>
;;; Copyright © 2019, 2020 Alex Griffin <a@ajgrf.com>
-;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
+;;; Copyright © 2019, 2020 Pierre Langlois <pierre.langlois@gmx.com>
;;; Copyright © 2019 Jacob MacDonald <jaccarmac@gmail.com>
;;; Copyright © 2019, 2020 Giacomo Leidi <goodoldpaul@autistici.org>
;;; Copyright © 2019 Wiktor Żelazny <wzelazny@vurv.cz>
@@ -17701,6 +17701,39 @@ on regular expressions.")
`(("python2-enum34" ,python2-enum34)
,@(package-propagated-inputs reparser))))))
+(define-public python-retrying
+ (package
+ (name "python-retrying")
+ (version "1.3.3")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rholder/retrying.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1kqipkbdaw5s1xg0gi29awm03vp1x8dz24pjidgxagvkvrjpzhi7"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-six" ,python-six)))
+ (home-page "https://github.com/rholder/retrying")
+ (synopsis "Library for adding retry behavior")
+ (description "Retrying is a general-purpose retrying library to simplify
+the task of adding retry behavior to just about anything.
+
+Features:
+
+@itemize
+@item Generic Decorator API.
+@item Specify stop condition (i.e. limit by number of attempts).
+@item Specify wait condition (i.e. exponential backoff sleeping between attempts).
+@item Customize retrying on Exceptions.
+@item Customize retrying on expected returned result.
+@end itemize")
+ (license license:asl2.0)))
+
(define-public python-precis-i18n
(package
(name "python-precis-i18n")
--
2.26.2
next prev parent reply other threads:[~2020-06-20 18:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-20 18:22 [bug#41968] [PATCH 0/5] Update python-plotly and python-pandas Pierre Langlois
2020-06-20 18:28 ` [bug#41968] [PATCH 1/5] gnu: deeptools: Deprecate in favor of python-deeptools Pierre Langlois
2020-06-20 18:29 ` [bug#41968] [PATCH 2/5] gnu: python-pandas: Update to 1.0.5 Pierre Langlois
2020-06-20 18:30 ` Pierre Langlois [this message]
2020-06-20 18:30 ` [bug#41968] [PATCH 4/5] gnu: Add python-xarray Pierre Langlois
2020-06-20 18:31 ` [bug#41968] [PATCH 5/5] gnu: python-plotly: Update to 4.8.1 Pierre Langlois
[not found] ` <handler.41968.B.15926773811621.ack@debbugs.gnu.org>
2020-06-22 16:44 ` bug#41968: Acknowledgement ([PATCH 0/5] Update python-plotly and python-pandas) Pierre Langlois
2020-06-24 19:08 ` [bug#41968] " Marius Bakke
2020-06-26 3:20 ` Leo Famulari
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=87blldh9p3.fsf@gmx.com \
--to=pierre.langlois@gmx.com \
--cc=41968@debbugs.gnu.org \
/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).