[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
30/51: gnu: python-pygobject: Update to 3.34.0.
From: |
guix-commits |
Subject: |
30/51: gnu: python-pygobject: Update to 3.34.0. |
Date: |
Fri, 24 Jan 2020 14:48:19 -0500 (EST) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit cc9c83c55d23cc5fca1f4642258bcf78d4b1f943
Author: Marius Bakke <address@hidden>
AuthorDate: Thu Jan 16 09:26:09 2020 +0100
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 622d702f7eba3.
[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.
---
gnu/packages/glib.scm | 84 ++++++++++++++++++++------------------------------
gnu/packages/gnome.scm | 2 +-
2 files changed, 34 insertions(+), 52 deletions(-)
diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm
index 08c7811..e6f1cf8 100644
--- a/gnu/packages/glib.scm
+++ b/gnu/packages/glib.scm
@@ -11,7 +11,7 @@
;;; Copyright © 2018 Alex Vong <address@hidden>
;;; Copyright © 2019 Maxim Cournoyer <address@hidden>
;;; Copyright © 2019 Giacomo Leidi <address@hidden>
-;;; Copyright © 2019 Marius Bakke <address@hidden>
+;;; Copyright © 2019, 2020 Marius Bakke <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -692,7 +692,7 @@ useful for C++.")
(define-public python-pygobject
(package
(name "python-pygobject")
- (version "3.28.3")
+ (version "3.34.0")
(source
(origin
(method url-fetch)
@@ -701,24 +701,20 @@ useful for C++.")
"/pygobject-" version ".tar.xz"))
(sha256
(base32
- "1c6h3brzlyvzbpdsammnd957azmp6cbzqrd65r400vnh2l8f5lrx"))))
- (build-system gnu-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'delete-broken-tests
- (lambda _
- ;; FIXME: this test freezes and times out.
- (delete-file "tests/test_mainloop.py")
- ;; FIXME: this test fails with this kind of error:
- ;; AssertionError: <Handlers.SIG_IGN: 1> != <built-in function
default_int_handler
- (delete-file "tests/test_ossig.py")
+ "06i7ynnbvgpz0gw09zsjbvhgcp5qz4yzdifw27qjwdazg2mckql7"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ ;; 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"))
#t)))))
+ (build-system meson-build-system)
(native-inputs
- `(("which" ,which)
- ;for tests: dbus-run-session and glib-compile-schemas
- ("dbus" ,dbus)
- ("glib-bin" ,glib "bin")
+ `(("glib-bin" ,glib "bin")
("pkg-config" ,pkg-config)
("python-pytest" ,python-pytest)))
(inputs
@@ -741,45 +737,31 @@ useful for C++.")
(define-public python2-pygobject
(package (inherit (strip-python2-variant python-pygobject))
(name "python2-pygobject")
+
+ ;; Note: We use python-build-system here, because Meson only supports
+ ;; Python 3, and needs PYTHONPATH etc set up correctly, which makes it
+ ;; difficult to use for Python 2 projects.
+ (build-system python-build-system)
+ (arguments
+ `(#:python ,python-2
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'delete-broken-tests
+ (lambda _
+ ;; FIXME: this test freezes and times out.
+ (delete-file "tests/test_mainloop.py")
+ ;; FIXME: this test fails with this kind of error:
+ ;; AssertionError: <Handlers.SIG_IGN: 1> != <built-in function
default_int_handler
+ (delete-file "tests/test_ossig.py")
+ #t)))))
(inputs
- `(("python" ,python-2)
- ("python-pycairo" ,python2-pycairo)
+ `(("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")
+ `(("glib-bin" ,glib "bin")
("pkg-config" ,pkg-config)
("python-pytest" ,python2-pytest)))))
-;; Newer version of this core-updates package, for Lollypop.
-(define-public python-pygobject-3.34
- (package/inherit
- python-pygobject
- (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
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'delete-broken-tests
- (lambda _
- (with-directory-excursion "tests"
- (for-each
- delete-file
- ;; FIXME: these tests require Gdk and/or Gtk 4.
- '("test_atoms.py"
- "test_overrides_gtk.py")))
- #t)))))))
-
(define-public perl-glib
(package
(name "perl-glib")
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 631f048..459d64b 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -9003,7 +9003,7 @@ views can be printed as PDF or PostScript files, or
exported to HTML.")
("python-gst" ,python-gst)
("python-pil" ,python-pillow)
("python-pycairo" ,python-pycairo)
- ("python-pygobject" ,python-pygobject-3.34)
+ ("python-pygobject" ,python-pygobject)
("python-pylast" ,python-pylast)
("totem-pl-parser" ,totem-pl-parser)
("webkitgtk" ,webkitgtk)))
- 22/51: gnu: python-pytest: Update to 5.3.2., (continued)
- 22/51: gnu: python-pytest: Update to 5.3.2., guix-commits, 2020/01/24
- 32/51: gnu: python-dateutil: Update to 2.8.1., guix-commits, 2020/01/24
- 34/51: gnu: network-manager: Fix build with Python 3.8., guix-commits, 2020/01/24
- 35/51: gnu: python-freezegun: Update to 0.3.13., guix-commits, 2020/01/24
- 41/51: gnu: python-freezegun: Update to 0.3.14., guix-commits, 2020/01/24
- 37/51: gnu: python-six: Update to 1.14.0., guix-commits, 2020/01/24
- 38/51: gnu: python-hypothesis: Update to 5.3.0., guix-commits, 2020/01/24
- 36/51: gnu: python-cffi: Update to 1.13.2., guix-commits, 2020/01/24
- 40/51: gnu: python-pycairo: Update to 1.19.0., guix-commits, 2020/01/24
- 27/51: gnu: python-mako: Do not use pytest nose compatibility layer., guix-commits, 2020/01/24
- 30/51: gnu: python-pygobject: Update to 3.34.0.,
guix-commits <=
- 42/51: gnu: python-pytest-runner: Update to 5.2., guix-commits, 2020/01/24
- 48/51: gnu: meson: Update to 0.53.1., guix-commits, 2020/01/24
- 08/51: gnu: python-py: Update to 1.8.1., guix-commits, 2020/01/24
- 26/51: gnu: python2-pytest: Update to 4.6.9., guix-commits, 2020/01/24
- 33/51: gnu: libimobiledevice: Fix build with Python 3.8., guix-commits, 2020/01/24
- 45/51: gnu: util-linux: Update to 2.35., guix-commits, 2020/01/24
- 23/51: gnu: python2-flake8: Add missing input., guix-commits, 2020/01/24
- 25/51: gnu: python2-pluggy: Update to 0.13.1., guix-commits, 2020/01/24
- 24/51: gnu: python2-importlib-resources: Drop 'wheel' dependency., guix-commits, 2020/01/24
- 29/51: gnu: python-pycairo: Update to 1.18.2., guix-commits, 2020/01/24