guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 04f6c88c808ca3f3d1e8a37243974e4db98eeff1
Author: Nicolas Graves <[email protected]>
AuthorDate: Thu Oct 23 23:47:12 2025 +0200

    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 <[email protected]>
---
 gnu/packages/python-xyz.scm | 60 +++++++++++++++++++--------------------------
 1 file changed, 25 insertions(+), 35 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e181a4cb44..341ed10b59 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

Reply via email to