Subject: [PATCH] gnu: mcomix: Update to 3.1.0, fix build.

From: KURASHIKI Satoru <[email-masked]>
Date: Tue, 28 Jan 2025 18:19:42 +0900

* gnu/packages/image-viewers.scm (mcomix): Update to 3.1.0.
[build-system]: Switch to pyproject-build-system.
[native-inputs]: Add python-wheel.

Change-Id: I9f43c7e1c8d95d75d3ce6e7242cd63541c895b33
---
 gnu/packages/image-viewers.scm | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/image-viewers.scm b/gnu/packages/image-viewers.scm
index 477caafd4e..898d33e0e2 100644
--- a/gnu/packages/image-viewers.scm
+++ b/gnu/packages/image-viewers.scm
@@ -57,6 +57,7 @@ (define-module (gnu packages image-viewers)
   #:use-module (guix build-system go)
   #:use-module (guix build-system meson)
   #:use-module (guix build-system python)
+  #:use-module (guix build-system pyproject)
   #:use-module (guix build-system qt)
   #:use-module (gnu packages autotools)
   #:use-module (gnu packages algebra)
@@ -98,6 +99,7 @@ (define-module (gnu packages image-viewers)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages profiling)
   #:use-module (gnu packages python)
+  #:use-module (gnu packages python-build)
   #:use-module (gnu packages python-check)
   #:use-module (gnu packages python-compression)
   #:use-module (gnu packages python-crypto)
@@ -673,7 +675,7 @@ (define-public luminance-hdr
 (define-public mcomix
   (package
     (name "mcomix")
-    (version "2.0.2")
+    (version "3.1.0")
     (source
      (origin
        (method url-fetch)
@@ -681,17 +683,19 @@ (define-public mcomix
                            "mcomix-" version ".tar.gz"))
        (sha256
         (base32
-         "0n0akk3njsm0paqxfbxqycwhwy6smjg0rhlcz5r7r82n7rqx0f7g"))))
-    (build-system python-build-system)
+         "09y4nhlcqvvhz0wscx4zpqxmyhiwh8wrjnhk52awxhzvgyx6wa7r"))))
+    (build-system pyproject-build-system)
+    (native-inputs (list python-wheel))
     (inputs
      (list p7zip python python-pillow python-pygobject python-pycairo gtk+))
     (arguments
      (list
-      #:imported-modules `(,@%python-build-system-modules
+      #:imported-modules `(,@%pyproject-build-system-modules
                            (guix build glib-or-gtk-build-system))
-      #:modules '((guix build python-build-system)
+      #:modules '((guix build pyproject-build-system)
                   ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
                   (guix build utils))
+      #:tests? #f
       #:phases
       #~(modify-phases %standard-phases
           (add-after 'unpack 'patch-source
-- 
2.47.1