mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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
This commit is contained in:
parent
efb2f7aa07
commit
dbe75809f0
1 changed files with 9 additions and 32 deletions
|
@ -1049,48 +1049,25 @@ useful for C++.")
|
||||||
(define-public python-pygobject
|
(define-public python-pygobject
|
||||||
(package
|
(package
|
||||||
(name "python-pygobject")
|
(name "python-pygobject")
|
||||||
(version "3.50.0")
|
(version "3.52.3")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "mirror://gnome/sources/pygobject/"
|
(uri (string-append "mirror://gnome/sources/pygobject/"
|
||||||
(version-major+minor version)
|
(version-major+minor version)
|
||||||
"/pygobject-" version ".tar.xz"))
|
"/pygobject-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"04i28xrb9fxkmn9j2mmsl0lbmk9blgjcl8hnxrbx90d8nmsnx0wd"))
|
"10kd13naw7ig83gnpdx8hbzpdrwbkjgrlrddiwm4cmz9j792gr00"))))
|
||||||
(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"))))))
|
|
||||||
(build-system meson-build-system)
|
(build-system meson-build-system)
|
||||||
(arguments
|
;; The tests require mutter, which would introduce a circular dependency.
|
||||||
(list
|
(arguments (list #:tests? #f))
|
||||||
#:phases
|
(native-inputs (list `(,glib "bin") pkg-config))
|
||||||
#~(modify-phases %standard-phases
|
(inputs (list python python-pycairo gobject-introspection))
|
||||||
(replace 'check
|
(propagated-inputs (list glib libffi)) ;required in pygobject-3.0.pc
|
||||||
(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))
|
|
||||||
;; For finding typelib files, since gobject-introscpetion isn't propagated.
|
;; For finding typelib files, since gobject-introscpetion isn't propagated.
|
||||||
(native-search-paths (package-native-search-paths gobject-introspection))
|
(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")
|
(synopsis "Python bindings for GObject")
|
||||||
(description
|
(description
|
||||||
"Python bindings for GLib, GObject, and GIO.")
|
"Python bindings for GLib, GObject, and GIO.")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue