guix_mirror_bot pushed a commit to branch gnome-team
in repository guix.
commit 3035089d6d21d2a42ea51bd2f6a5f918d15c7f82
Author: Maxim Cournoyer <[email protected]>
AuthorDate: Sat Jul 26 23:27:14 2025 +0900
gnu: python-pygobject: Update to 3.52.3, disable tests.
* gnu/packages/glib.scm (python-pygobject): Update to 3.52.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 f933d53c57..d54fd5501d 100644
--- a/gnu/packages/glib.scm
+++ b/gnu/packages/glib.scm
@@ -1049,48 +1049,25 @@ useful for C++.")
(define-public python-pygobject
(package
(name "python-pygobject")
- (version "3.50.0")
+ (version "3.52.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"))))))
+ "10kd13naw7ig83gnpdx8hbzpdrwbkjgrlrddiwm4cmz9j792gr00"))))
(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.")