summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-10-23 23:47:12 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-24 11:05:28 +0100
commit04f6c88c808ca3f3d1e8a37243974e4db98eeff1 (patch)
tree56718ef2b4e231cbd8eb37b9bc33ac2a72041ce7 /gnu
parentd4bdc59693b9047eb163a66ed71c9991305372cb (diff)
gnu: python-pika: Update to 1.3.2.
* gnu/packages/python-xyz.scm (python-pika): Update to 1.3.2. [build-system]: Switch to pyproject-build-system. [arguments]<#:test-flags>: Ignore failing tests. <#:phases>: Replace 'check phase by 'configure-tests. [native-inputs]: Add python-pytest, python-setuptools. Remove python-mock, python-nose2. Change-Id: I06bf9f879a71b2718c2743cf305be2f06cb6c9ff Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-xyz.scm60
1 files changed, 25 insertions, 35 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e181a4cb44a..341ed10b599 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -22540,43 +22540,33 @@ focus on event-based network programming and multiprotocol integration.")
(define-public python-pika
(package
(name "python-pika")
- (version "1.2.1")
+ (version "1.3.2")
(source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/pika/pika")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0sqj3bg6jwign8vwvn337fbwy69sm684ns1vh5kbfnskq4him9i2"))))
- (build-system python-build-system)
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pika/pika")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0bmp79lds26y2976xrpf53r3acqzpf3wpkprhlh3asqpfv5pwipb"))))
+ (build-system pyproject-build-system)
(arguments
- '(#:phases (modify-phases %standard-phases
- (add-after 'unpack 'disable-live-tests
- (lambda _
- ;; Disable tests that require RabbitMQ, which is not
- ;; yet available in Guix.
- (substitute* "nose2.cfg"
- (("tests=tests/unit,tests/acceptance")
- "start-dir=tests/unit"))
- (with-directory-excursion "tests"
- (for-each delete-file
- '("unit/base_connection_tests.py"
- "unit/threaded_test_wrapper_test.py")))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (setenv "PYTHONPATH" (getcwd))
- (invoke "nose2" "-v")))))))
- (native-inputs
- (list python-mock
- python-nose2
- ;; These are optional at runtime, and provided here for tests.
- python-gevent
- python-tornado
- python-twisted))
+ (list
+ #:test-flags
+ ;; XXX: These test most likely require a running RabbitMQ server.
+ #~(list "--ignore=tests/acceptance/blocking_adapter_test.py")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'configure-tests
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (setenv "PYTHONPATH" (getcwd))))))))
+ (native-inputs (list python-pytest
+ python-gevent
+ python-tornado
+ python-twisted
+ python-setuptools))
(home-page "https://pika.readthedocs.org")
(synopsis "Pure Python AMQP Client Library")
(description