gnu: python-nbxmpp: Update to 4.2.2.

Gajim will not build at this commit.

* gnu/packages/messaging.scm (python-nbxmpp): Update to 4.2.2.
[arguments]: Specify "python -m unittest" as test method.

Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
Parnikkapore 2023-07-04 23:31:08 +07:00 committed by Christopher Baines
parent 2c9009f9fe
commit 9d7daaf10f
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -148,6 +148,7 @@ (define-module (gnu packages messaging)
#:use-module (guix build-system meson) #:use-module (guix build-system meson)
#:use-module (guix build-system perl) #:use-module (guix build-system perl)
#:use-module (guix build-system python) #:use-module (guix build-system python)
#:use-module (guix build-system pyproject)
#:use-module (guix build-system qt) #:use-module (guix build-system qt)
#:use-module (guix build-system trivial) #:use-module (guix build-system trivial)
#:use-module (guix download) #:use-module (guix download)
@ -1089,21 +1090,29 @@ (define-public znc
(define-public python-nbxmpp (define-public python-nbxmpp
(package (package
(name "python-nbxmpp") (name "python-nbxmpp")
(version "3.1.0") (version "4.2.2")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (uri
(pypi-uri "nbxmpp" version)) (pypi-uri "nbxmpp" version))
(sha256 (sha256
(base32 "0c32090gr1fiy7hkn73dcj4ad9gfdpks8hivl1dl8bql01jsfdnj")))) (base32 "095nyy6vjildhrqigxk6vsh49in6mx17bvb3z5zpjmzhv9b8ix46"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
;; XXX: This probably should be an option for pyproject-build-system
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests? (invoke "python" "-m" "unittest" "-v")))))))
(native-inputs (native-inputs
(list `(,glib "bin"))) (list `(,glib "bin")))
(inputs (inputs
(list glib (list glib
glib-networking glib-networking
libsoup-minimal-2 libsoup-minimal
python-gssapi python-gssapi
python-idna python-idna
python-precis-i18n python-precis-i18n