[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/12: gnu: python-pika: Update to 1.2.1.
From: |
guix-commits |
Subject: |
03/12: gnu: python-pika: Update to 1.2.1. |
Date: |
Tue, 21 Jun 2022 11:43:11 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 779853e926bdb075dfadbf7dbc1a0e6bdcb93d66
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Tue Jun 21 03:32:10 2022 +0200
gnu: python-pika: Update to 1.2.1.
* gnu/packages/python-xyz.scm (python-pika): Update to 1.2.1.
[arguments]: Adjust tests for nose2. Respect #:tests? keyword.
[native-inputs]: Remove PYTHON-NOSE; add PYTHON-NOSE2.
---
gnu/packages/python-xyz.scm | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7e6fe74323..11c50a762b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -16120,7 +16120,7 @@ focus on event-based network programming and
multiprotocol integration.")
(define-public python-pika
(package
(name "python-pika")
- (version "1.2.0")
+ (version "1.2.1")
(source
(origin
(method git-fetch)
@@ -16130,27 +16130,29 @@ focus on event-based network programming and
multiprotocol integration.")
(file-name (git-file-name name version))
(sha256
(base32
- "0cm45xydk2jigydwszwik89qlbk6l3l18sxhzppzqmxw2rdkm22s"))))
+ "0sqj3bg6jwign8vwvn337fbwy69sm684ns1vh5kbfnskq4him9i2"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
- (add-before 'check 'disable-live-tests
+ (add-after 'unpack 'disable-live-tests
(lambda _
;; Disable tests that require RabbitMQ, which is not
;; yet available in Guix.
- (substitute* "setup.cfg"
- (("tests/unit,tests/acceptance")
- "tests/unit"))
+ (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 _
- (invoke "nosetests"))))))
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (setenv "PYTHONPATH" (getcwd))
+ (invoke "nose2" "-v")))))))
(native-inputs
(list python-mock
- python-nose
+ python-nose2
;; These are optional at runtime, and provided here for tests.
python-gevent
python-tornado
- branch master updated (d13ffd1580 -> d485faf633), guix-commits, 2022/06/21
- 02/12: gnu: python-nose2: Update to 0.11.0., guix-commits, 2022/06/21
- 03/12: gnu: python-pika: Update to 1.2.1.,
guix-commits <=
- 01/12: gnu: python-faiss: Fix build on Python 3.9., guix-commits, 2022/06/21
- 05/12: gnu: python-django-netfields: Update to 1.3.0., guix-commits, 2022/06/21
- 06/12: gnu: python-breathe: Update to 4.34.0., guix-commits, 2022/06/21
- 07/12: gnu: python-ipython-sql: Update to 0.4.1., guix-commits, 2022/06/21
- 11/12: gnu: python-prettytable: Update to 3.3.0., guix-commits, 2022/06/21
- 09/12: gnu: Add python-autopage., guix-commits, 2022/06/21
- 08/12: gnu: python-ipython-sql: Remove prettytable version constraint., guix-commits, 2022/06/21
- 04/12: gnu: python-django-auth-ldap: Update to 4.1.0., guix-commits, 2022/06/21
- 10/12: gnu: python-cliff: Update to 3.10.1., guix-commits, 2022/06/21
- 12/12: gnu: zabbix-cli: Use new style., guix-commits, 2022/06/21