This is an automated email from the git hooks/post-receive script.

guix_mirror_bot pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 6767c5885d gnu: python-xcffib: Update to 1.12.0.
6767c5885d is described below

commit 6767c5885d5f72a44505a3f2c4dbac9b8559ae59
Author: Nicolas Graves <[email protected]>
AuthorDate: Sun Jun 21 03:31:08 2026 +0200

    gnu: python-xcffib: Update to 1.12.0.
    
    * gnu/packages/xorg.scm (xcffibgen): Update to 1.12.0.
    [arguments]<#:phases>: Add phase 'relax-requirements to avoid checking
    dependencies given through GHC.
    (python-xcffib): Update to 1.12.0.
    [version]: Inherit from xcffibgen.
    [native-inputs]: Remove python-wheel.  Add python-pytest, xeyes,
    xorg-server-for-tests.
    [arguments]<#:tests?>: Enable them.
    <#:phases>: Patch phase 'generate-bindings.
    
    Fixes: #9418
    Signed-off-by: Andreas Enge <[email protected]>
---
 gnu/packages/xorg.scm | 27 +++++++++++++++++++--------
 1 file changed, 19 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/xorg.scm b/gnu/packages/xorg.scm
index f0e2c7b701..e17bc111cc 100644
--- a/gnu/packages/xorg.scm
+++ b/gnu/packages/xorg.scm
@@ -1705,7 +1705,7 @@ network-transparent printing system.")
 (define-public xcffibgen
   (package
     (name "xcffibgen")
-    (version "1.4.0")
+    (version "1.12.0")
     (source
      (origin
        (method git-fetch)
@@ -1714,8 +1714,17 @@ network-transparent printing system.")
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "0wz6zlaqsmpw7ahaadpd7m5n5c5b2ya30xwsana4j5ljygdvzqp9"))))
+        (base32 "0x92lfrk7qgfkysy00af2b3lbdqnjkg6rshfxpjbyr33yll0nnbn"))))
     (build-system haskell-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'relax-requirements
+            (lambda _
+              (substitute* "xcffib.cabal"
+                (("(filepath|containers|bytestring).*$" all lib)
+                 (string-append lib ",\n"))))))))
     (native-inputs
      (list ghc-hunit ghc-test-framework ghc-test-framework-hunit))
     (inputs
@@ -1739,16 +1748,18 @@ generate code for the @code{python-xcbffib} package.")
 (define-public python-xcffib
   (package
     (name "python-xcffib")
-    (version "1.5.0")
+    (version (package-version xcffibgen))
     (source (package-source xcffibgen))
     (build-system pyproject-build-system)
     (native-inputs
      (list pkg-config
+           python-pytest
            python-setuptools
-           python-wheel
            which
            xcb-proto
-           xcffibgen))
+           xcffibgen
+           xeyes
+           xorg-server-for-tests))
     (inputs
      (list libxcb))
     (propagated-inputs
@@ -1756,8 +1767,6 @@ generate code for the @code{python-xcbffib} package.")
            python-six))
     (arguments
      (list
-      ;; Tests seem to require version 3.12 of Python.
-      #:tests? #f
       #:phases
       #~(modify-phases %standard-phases
           (add-before 'build 'generate-bindings
@@ -1765,7 +1774,9 @@ generate code for the @code{python-xcbffib} package.")
               (substitute* "Makefile"
                 (("^GEN=.*")
                  (format #f "GEN=~a~%"
-                         (search-input-file inputs "/bin/xcffibgen"))))
+                         (search-input-file inputs "/bin/xcffibgen")))
+                ((".*ruff.*")
+                 ""))
               (invoke "make" "xcffib")))
           (add-before 'build 'fix-libxcb-path
             (lambda* (#:key inputs #:allow-other-keys)

Reply via email to