gnu: python-pygobject: Update style.

* gnu/packages/glib.scm (python-pygobject) [source]<sha256>: Reindent.
<snippet>: Convert to G-Expression.  Remove trailing #f.
[arguments]: Convert to list of G-Expressions.
[native-inputs]: Drop labels.

Change-Id: I325de196b79cbdd0acaed3c40be42aa7335abcae
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
This commit is contained in:
Vivien Kraus 2023-10-27 19:44:52 +02:00 committed by Liliana Marie Prikler
parent 54eb6d6e8a
commit b125b9deee
No known key found for this signature in database
GPG key ID: 442A84B8C70E2F87

View file

@ -1015,33 +1015,31 @@ (define-public python-pygobject
(version-major+minor version) (version-major+minor version)
"/pygobject-" version ".tar.xz")) "/pygobject-" version ".tar.xz"))
(sha256 (sha256
(base32 (base32 "1z6aagb46fhhdd0bb3zk6dfdw3s4y2fva0vv3jpwjj6mvar0hq22"))
"1z6aagb46fhhdd0bb3zk6dfdw3s4y2fva0vv3jpwjj6mvar0hq22"))
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet (snippet
'(begin ;; We disable these tests in a snippet so that they are inherited
;; We disable these tests in a snippet so that they are inherited ;; by the Python 2 variant which is built differently.
;; by the Python 2 variant which is built differently. #~(with-directory-excursion "tests"
(with-directory-excursion "tests" ;; FIXME: These tests require Gdk and/or Gtk 4.
;; FIXME: These tests require Gdk and/or Gtk 4. (for-each delete-file
(for-each delete-file '("test_atoms.py" "test_overrides_gtk.py"
'("test_atoms.py" "test_overrides_gtk.py" "test_overrides_gdk.py"))))))
"test_overrides_gdk.py"))
#t)))))
(build-system meson-build-system) (build-system meson-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:phases
(replace 'check #~(modify-phases %standard-phases
(lambda* (#:key tests? #:allow-other-keys) (replace 'check
(when tests? (lambda* (#:key tests? #:allow-other-keys)
;; The default 90 seconds can be too low on slower machines. (when tests?
(invoke "meson" "test" "--timeout-multiplier" "5"))))))) ;; The default 90 seconds can be too low on slower machines.
(invoke "meson" "test" "--timeout-multiplier" "5")))))))
(native-inputs (native-inputs
`(("glib-bin" ,glib "bin") (list `(,glib "bin")
("pkg-config" ,pkg-config) pkg-config
("python-pytest" ,python-pytest) python-pytest
("python-wrapper" ,python-wrapper))) ; For patching shebangs python-wrapper)) ; For patching shebangs
(inputs (inputs
(list python python-pycairo gobject-introspection)) (list python python-pycairo gobject-introspection))
(propagated-inputs (propagated-inputs