guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit 4e13e346d9420fcfb512040f25b13e9d875952eb
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Mon Jan 19 22:52:47 2026 +0000
gnu: Add python-wait-for2.
* gnu/packages/python-xyz.scm (python-wait-for2): New variable.
Change-Id: I11e048274e08e479afce345fa1d75794f4f5672c
---
gnu/packages/python-xyz.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 07b343df9d..53ae1148a7 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -40148,6 +40148,33 @@ built-in pprint.pprint, it produces compact,
well-formatted representations
even for complex custom types.")
(license license:asl2.0)))
+(define-public python-wait-for2
+ (package
+ (name "python-wait-for2")
+ (version "0.4.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Traktormaster/wait-for2")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "08911yby18sw2y6njn1fqlwvf9j2aay0p5d3wykdlcj36nyxfv1w"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-pytest-asyncio
+ python-setuptools))
+ (home-page "https://github.com/Traktormaster/wait-for2")
+ (synopsis "Asyncio wait_for handling simultaneous cancellation and future
completion")
+ (description
+ "This package provide an alternate implementation of
@code{asyncio.wait_for()}
+introduced in Python 3.12. It handles several edge cases like simultaneous
+cancellation of wait and completion of future differently and consistently
+across Python versions 3.7+.")
+ (license license:asl2.0)))
+
(define-public python-wand
(package
(name "python-wand")