guix_mirror_bot pushed a commit to branch gnome-team
in repository guix.

commit 8ab03fd8d81f5c864dcd6922893874a72f5d7210
Author: Liliana Marie Prikler <[email protected]>
AuthorDate: Thu Oct 9 14:38:04 2025 +0200

    gnu: python-pygobject: Update to 3.54.3, disable tests.
    
    * gnu/packages/glib.scm (python-pygobject): Update to 3.54.3.
    [source]: Adjust URL. Delete snippet.
    [arguments]: Remove #:phases. Add #:tests?.
    [native-inputs]: Remove python-pytest and python-wrapper.
    [home-page]: Update URL.
    
    Change-Id: I4a495b33e58afd8db72b9797b16e3330b8d29431
---
 gnu/packages/glib.scm | 41 +++++++++--------------------------------
 1 file changed, 9 insertions(+), 32 deletions(-)

diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm
index 927dd3938d..6c7f0e0242 100644
--- a/gnu/packages/glib.scm
+++ b/gnu/packages/glib.scm
@@ -1074,48 +1074,25 @@ useful for C++.")
 (define-public python-pygobject
   (package
     (name "python-pygobject")
-    (version "3.50.0")
+    (version "3.54.3")
     (source
      (origin
        (method url-fetch)
        (uri (string-append "mirror://gnome/sources/pygobject/"
                            (version-major+minor version)
-                           "/pygobject-" version ".tar.xz"))
+                           "/pygobject-" version ".tar.gz"))
        (sha256
         (base32
-         "04i28xrb9fxkmn9j2mmsl0lbmk9blgjcl8hnxrbx90d8nmsnx0wd"))
-       (modules '((guix build utils)))
-       (snippet
-        ;; We disable these tests in a snippet so that they are inherited
-        ;; by the Python 2 variant which is built differently.
-        #~(with-directory-excursion "tests"
-            ;; FIXME: These tests require Gdk and/or Gtk 4.
-            (for-each delete-file
-                      '("test_atoms.py" "test_overrides_gtk.py"
-                        "test_overrides_gdk.py"))))))
+         "1rxsj85xl73a14vz7s30sy8lx9sswd2j2hgj3i4mcz8g989hknm8"))))
     (build-system meson-build-system)
-    (arguments
-     (list
-      #:phases
-      #~(modify-phases %standard-phases
-          (replace 'check
-            (lambda* (#:key tests? #:allow-other-keys)
-              (when tests?
-                ;; The default 90 seconds can be too low on slower machines.
-                (invoke "meson" "test" "--timeout-multiplier" "5")))))))
-    (native-inputs
-     (list `(,glib "bin")
-           pkg-config
-           python-pytest
-           python-wrapper)) ; For patching shebangs
-    (inputs
-     (list python python-pycairo gobject-introspection))
-    (propagated-inputs
-     ;; pygobject-3.0.pc refers to all these.
-     (list glib libffi))
+    ;; The tests require mutter, which would introduce a circular dependency.
+    (arguments (list #:tests? #f))
+    (native-inputs (list `(,glib "bin") pkg-config))
+    (inputs (list python python-pycairo gobject-introspection))
+    (propagated-inputs (list glib libffi)) ;required in pygobject-3.0.pc
     ;; For finding typelib files, since gobject-introscpetion isn't propagated.
     (native-search-paths (package-native-search-paths gobject-introspection))
-    (home-page "https://live.gnome.org/PyGObject";)
+    (home-page "https://pygobject.gnome.org/";)
     (synopsis "Python bindings for GObject")
     (description
      "Python bindings for GLib, GObject, and GIO.")

Reply via email to