guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 9ffcd0760429fa35b09bf27e3cb42615649eb2b1
Author: Nicolas Graves <[email protected]>
AuthorDate: Sun Oct 19 19:31:33 2025 +0200
gnu: python-promise: Update to 2.3.0.
* gnu/packages/python-xyz.scm (python-promise): Update to 2.3.0.
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:test-flags>: Ignore failing tests.
[native-inputs]: Add python-mock, python-pytest,
python-pytest-asyncio, python-setuptools.
[propagated-inputs]: Add python-six.
[description]: Improve style.
Change-Id: Ibdec3dc276f68a8fd68c569d215370fbc7379801
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/python-xyz.scm | 44 ++++++++++++++++++++++++++++++++------------
1 file changed, 32 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 880993cc6f..25e9e22ad9 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20275,22 +20275,42 @@ Python ecosystem.")
(define-public python-promise
(package
(name "python-promise")
- (version "0.4.2")
+ (version "2.3.0")
(source
- (origin
- (method url-fetch)
- (uri (pypi-uri "promise" version))
- (sha256
- (base32
- "1k19ms8l3d5jzjh557rgkxb5sg4mqgfc315rn4hx1z3n8qq6lr3h"))))
- (build-system python-build-system)
- ;; Tests wants python-futures, which is a python2 only program, and
- ;; can't be found by python-promise at test time.
- (arguments `(#:tests? #f))
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/syrusakbary/promise")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "17mq1bm78xfl0x1g50ng502m5ldq6421rzz35hlqafsj0cq8dkp6"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list "--ignore=tests/test_benchmark.py"
+ ;; Issues with pytest-asyncio
+ "--ignore=tests/test_awaitable.py"
+ "-k" (string-join
+ (list "not test_issue_9_safe"
+ ;; Stacktrace issues.
+ "test_thrown_exceptions_have_stacktrace"
+ "test_thrown_exceptions_preserve_stacktrace")
+ " and not "))))
+ (native-inputs
+ (list python-mock
+ python-pytest
+ python-pytest-asyncio
+ python-setuptools))
+ (propagated-inputs (list python-six))
(home-page "https://github.com/syrusakbary/promise")
(synopsis "Promises/A+ implementation for Python")
(description
- "Promises/A+ implementation for Python")
+ "This package provides an implementation of Promises in Python. It is a
+super set of Promises/A+ designed to have readable, performant code and to
+provide just the extensions that are absolutely necessary for using promises
+in Python.")
(license license:expat)))
(define-public python-progress