gnu: python-pygobject: Update to 3.34.0.
* gnu/packages/glib.scm (python-pygobject): Update to 3.34.0.
[source](modules, snippet): New fields. Delete failing tests identified by
commit 622d702f7e
.
[build-system]: Change to MESON-BUILD-SYSTEM.
[arguments]: Remove.
[native-inputs]: Remove WHICH and DBUS.
(python2-pygobject)[build-system]: Change to PYTHON-BUILD-SYSTEM.
[arguments]: New field. Copy old phase from python-pygobject.
[native-inputs]: Remove WHICH and DBUS.
(python-pygobject-3.34.0): Remove variable.
master
parent
9ba3cf5782
commit
cc9c83c55d
|
@ -11,7 +11,7 @@
|
||||||
;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
|
;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
|
||||||
;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||||
;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org>
|
;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org>
|
||||||
;;; Copyright © 2019 Marius Bakke <mbakke@fastmail.com>
|
;;; Copyright © 2019, 2020 Marius Bakke <mbakke@fastmail.com>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -692,7 +692,7 @@ useful for C++.")
|
||||||
(define-public python-pygobject
|
(define-public python-pygobject
|
||||||
(package
|
(package
|
||||||
(name "python-pygobject")
|
(name "python-pygobject")
|
||||||
(version "3.28.3")
|
(version "3.34.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
|
@ -701,24 +701,20 @@ useful for C++.")
|
||||||
"/pygobject-" version ".tar.xz"))
|
"/pygobject-" version ".tar.xz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1c6h3brzlyvzbpdsammnd957azmp6cbzqrd65r400vnh2l8f5lrx"))))
|
"06i7ynnbvgpz0gw09zsjbvhgcp5qz4yzdifw27qjwdazg2mckql7"))
|
||||||
(build-system gnu-build-system)
|
(modules '((guix build utils)))
|
||||||
(arguments
|
(snippet
|
||||||
`(#:phases
|
'(begin
|
||||||
(modify-phases %standard-phases
|
;; We disable these tests in a snippet so that they are inherited
|
||||||
(add-after 'unpack 'delete-broken-tests
|
;; by the Python 2 variant which is built differently.
|
||||||
(lambda _
|
(with-directory-excursion "tests"
|
||||||
;; FIXME: this test freezes and times out.
|
;; FIXME: These tests require Gdk and/or Gtk 4.
|
||||||
(delete-file "tests/test_mainloop.py")
|
(for-each delete-file
|
||||||
;; FIXME: this test fails with this kind of error:
|
'("test_atoms.py" "test_overrides_gtk.py"))
|
||||||
;; AssertionError: <Handlers.SIG_IGN: 1> != <built-in function default_int_handler
|
|
||||||
(delete-file "tests/test_ossig.py")
|
|
||||||
#t)))))
|
#t)))))
|
||||||
|
(build-system meson-build-system)
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("which" ,which)
|
`(("glib-bin" ,glib "bin")
|
||||||
;for tests: dbus-run-session and glib-compile-schemas
|
|
||||||
("dbus" ,dbus)
|
|
||||||
("glib-bin" ,glib "bin")
|
|
||||||
("pkg-config" ,pkg-config)
|
("pkg-config" ,pkg-config)
|
||||||
("python-pytest" ,python-pytest)))
|
("python-pytest" ,python-pytest)))
|
||||||
(inputs
|
(inputs
|
||||||
|
@ -741,44 +737,30 @@ useful for C++.")
|
||||||
(define-public python2-pygobject
|
(define-public python2-pygobject
|
||||||
(package (inherit (strip-python2-variant python-pygobject))
|
(package (inherit (strip-python2-variant python-pygobject))
|
||||||
(name "python2-pygobject")
|
(name "python2-pygobject")
|
||||||
(inputs
|
|
||||||
`(("python" ,python-2)
|
|
||||||
("python-pycairo" ,python2-pycairo)
|
|
||||||
("gobject-introspection" ,gobject-introspection)))
|
|
||||||
(native-inputs
|
|
||||||
`(("which" ,which)
|
|
||||||
;for tests: dbus-run-session and glib-compile-schemas
|
|
||||||
("dbus" ,dbus)
|
|
||||||
("glib-bin" ,glib "bin")
|
|
||||||
("pkg-config" ,pkg-config)
|
|
||||||
("python-pytest" ,python2-pytest)))))
|
|
||||||
|
|
||||||
;; Newer version of this core-updates package, for Lollypop.
|
;; Note: We use python-build-system here, because Meson only supports
|
||||||
(define-public python-pygobject-3.34
|
;; Python 3, and needs PYTHONPATH etc set up correctly, which makes it
|
||||||
(package/inherit
|
;; difficult to use for Python 2 projects.
|
||||||
python-pygobject
|
(build-system python-build-system)
|
||||||
(version "3.34.0")
|
|
||||||
(source
|
|
||||||
(origin
|
|
||||||
(method url-fetch)
|
|
||||||
(uri (string-append "mirror://gnome/sources/pygobject/"
|
|
||||||
(version-major+minor version)
|
|
||||||
"/pygobject-" version ".tar.xz"))
|
|
||||||
(sha256
|
|
||||||
(base32 "06i7ynnbvgpz0gw09zsjbvhgcp5qz4yzdifw27qjwdazg2mckql7"))))
|
|
||||||
(build-system meson-build-system)
|
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:python ,python-2
|
||||||
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'delete-broken-tests
|
(add-after 'unpack 'delete-broken-tests
|
||||||
(lambda _
|
(lambda _
|
||||||
(with-directory-excursion "tests"
|
;; FIXME: this test freezes and times out.
|
||||||
(for-each
|
(delete-file "tests/test_mainloop.py")
|
||||||
delete-file
|
;; FIXME: this test fails with this kind of error:
|
||||||
;; FIXME: these tests require Gdk and/or Gtk 4.
|
;; AssertionError: <Handlers.SIG_IGN: 1> != <built-in function default_int_handler
|
||||||
'("test_atoms.py"
|
(delete-file "tests/test_ossig.py")
|
||||||
"test_overrides_gtk.py")))
|
#t)))))
|
||||||
#t)))))))
|
(inputs
|
||||||
|
`(("python-pycairo" ,python2-pycairo)
|
||||||
|
("gobject-introspection" ,gobject-introspection)))
|
||||||
|
(native-inputs
|
||||||
|
`(("glib-bin" ,glib "bin")
|
||||||
|
("pkg-config" ,pkg-config)
|
||||||
|
("python-pytest" ,python2-pytest)))))
|
||||||
|
|
||||||
(define-public perl-glib
|
(define-public perl-glib
|
||||||
(package
|
(package
|
||||||
|
|
|
@ -9003,7 +9003,7 @@ views can be printed as PDF or PostScript files, or exported to HTML.")
|
||||||
("python-gst" ,python-gst)
|
("python-gst" ,python-gst)
|
||||||
("python-pil" ,python-pillow)
|
("python-pil" ,python-pillow)
|
||||||
("python-pycairo" ,python-pycairo)
|
("python-pycairo" ,python-pycairo)
|
||||||
("python-pygobject" ,python-pygobject-3.34)
|
("python-pygobject" ,python-pygobject)
|
||||||
("python-pylast" ,python-pylast)
|
("python-pylast" ,python-pylast)
|
||||||
("totem-pl-parser" ,totem-pl-parser)
|
("totem-pl-parser" ,totem-pl-parser)
|
||||||
("webkitgtk" ,webkitgtk)))
|
("webkitgtk" ,webkitgtk)))
|
||||||
|
|
Reference in New Issue