From 25348dbbf8d2f3ef70a61dab4c5d0304301d5db4 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 20 Mar 2026 13:00:03 -0500 Subject: python-backoff: Add new package definition. --- gn/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gn/packages/python-xyz.scm b/gn/packages/python-xyz.scm index 619f185..eafb37b 100644 --- a/gn/packages/python-xyz.scm +++ b/gn/packages/python-xyz.scm @@ -8,6 +8,7 @@ #:use-module (gnu packages check) #:use-module (gnu packages sphinx) + #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages python-check) #:use-module (gnu packages python-build)) @@ -86,3 +87,28 @@ "Document parameters, class attributes, return types, and variables inline, with Annotated.") (license license:expat))) + + +(define-public python-backoff + (package + (name "python-backoff") + (version "2.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/litl/backoff") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0cpfd8fdznwlxrjpwy10pl4bj9q393ys1vj90nvsrhwakqcdiil3")))) + (build-system pyproject-build-system) + (native-inputs (list python-pytest + python-requests + python-responses + python-poetry-core + python-pytest-asyncio-0.21)) + (home-page "https://github.com/litl/backoff") + (synopsis "Function decoration for backoff and retry") + (description "Function decoration for backoff and retry.") + (license license:expat))) -- cgit 1.4.1