Subject: [PATCH v2 1/6] gnu: python-nbxmpp: Update to 4.2.2.

From: Parnikkapore <[email-masked]>
Date: Tue, 4 Jul 2023 23:31:08 +0700

* gnu/packages/messaging.scm (python-nbxmpp): Update to 4.2.2.
  [arguments]: Specify "python -m unittest" as test method.
  Gajim will not build at this commit.
---
 gnu/packages/messaging.scm | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index 3629d9a6d5..1b721e8f8e 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -148,6 +148,7 @@ (define-module (gnu packages messaging)
   #:use-module (guix build-system meson)
   #:use-module (guix build-system perl)
   #:use-module (guix build-system python)
+  #:use-module (guix build-system pyproject)
   #:use-module (guix build-system qt)
   #:use-module (guix build-system trivial)
   #:use-module (guix download)
@@ -1089,21 +1090,28 @@ (define-public znc
 (define-public python-nbxmpp
   (package
     (name "python-nbxmpp")
-    (version "3.1.0")
+    (version "4.2.2")
     (source
      (origin
        (method url-fetch)
        (uri
         (pypi-uri "nbxmpp" version))
        (sha256
-        (base32 "0c32090gr1fiy7hkn73dcj4ad9gfdpks8hivl1dl8bql01jsfdnj"))))
-    (build-system python-build-system)
+        (base32 "095nyy6vjildhrqigxk6vsh49in6mx17bvb3z5zpjmzhv9b8ix46"))))
+    (build-system pyproject-build-system)
+    (arguments
+     '(#: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
      (list `(,glib "bin")))
     (inputs
      (list glib
            glib-networking
-           libsoup-minimal-2
+           libsoup-minimal
            python-gssapi
            python-idna
            python-precis-i18n

base-commit: 1011100868ec6d712145c75c016b18ba5913c7c7
-- 
2.40.1