mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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.
This commit is contained in:
parent
c3f6049a41
commit
779853e926
1 changed files with 11 additions and 9 deletions
|
@ -16120,7 +16120,7 @@ focus on event-based network programming and multiprotocol integration.")
|
||||||
(define-public python-pika
|
(define-public python-pika
|
||||||
(package
|
(package
|
||||||
(name "python-pika")
|
(name "python-pika")
|
||||||
(version "1.2.0")
|
(version "1.2.1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
|
@ -16130,27 +16130,29 @@ focus on event-based network programming and multiprotocol integration.")
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0cm45xydk2jigydwszwik89qlbk6l3l18sxhzppzqmxw2rdkm22s"))))
|
"0sqj3bg6jwign8vwvn337fbwy69sm684ns1vh5kbfnskq4him9i2"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases (modify-phases %standard-phases
|
'(#:phases (modify-phases %standard-phases
|
||||||
(add-before 'check 'disable-live-tests
|
(add-after 'unpack 'disable-live-tests
|
||||||
(lambda _
|
(lambda _
|
||||||
;; Disable tests that require RabbitMQ, which is not
|
;; Disable tests that require RabbitMQ, which is not
|
||||||
;; yet available in Guix.
|
;; yet available in Guix.
|
||||||
(substitute* "setup.cfg"
|
(substitute* "nose2.cfg"
|
||||||
(("tests/unit,tests/acceptance")
|
(("tests=tests/unit,tests/acceptance")
|
||||||
"tests/unit"))
|
"start-dir=tests/unit"))
|
||||||
(with-directory-excursion "tests"
|
(with-directory-excursion "tests"
|
||||||
(for-each delete-file
|
(for-each delete-file
|
||||||
'("unit/base_connection_tests.py"
|
'("unit/base_connection_tests.py"
|
||||||
"unit/threaded_test_wrapper_test.py")))))
|
"unit/threaded_test_wrapper_test.py")))))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(invoke "nosetests"))))))
|
(when tests?
|
||||||
|
(setenv "PYTHONPATH" (getcwd))
|
||||||
|
(invoke "nose2" "-v")))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-mock
|
(list python-mock
|
||||||
python-nose
|
python-nose2
|
||||||
;; These are optional at runtime, and provided here for tests.
|
;; These are optional at runtime, and provided here for tests.
|
||||||
python-gevent
|
python-gevent
|
||||||
python-tornado
|
python-tornado
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue