From af7d01852011c3d9408353e90cdcf3e78ff9f537 Mon Sep 17 00:00:00 2001 From: Aaron Covrig Date: Sun, 21 Dec 2025 23:12:22 -0500 Subject: [PATCH] gnu: python-liblarch: Update to 3.2.0-0.fe06860. * gnu/packages/gnome.scm (python-liblarch): Update to 3.2.0-0.fe06860. [version]: Change to git-version for latest code using pytest. [build-system]: Switch to pyproject-build-system. [arguments]<#:check>: Enable project tests. [native-inputs]: Add python-pytest, and python-setuptools. [home-page]: Update url. Change-Id: Ia9614c6f840cb77ce6100ec3fd95d316bc0eefe7 Signed-off-by: Maxim Cournoyer --- gnu/packages/gnome.scm | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index c4b40d4dae310ed1b53dc2912d2bd4c9ee9d5ac1..914f2089188ecfbeaef57f23ea65b9eae3f10763 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -2733,18 +2733,22 @@ schemas for settings shared by various components of the GNOME desktop.") (license license:lgpl2.1+))) (define-public python-liblarch + ;; The merge request replacing nose with pytest has not been released yet. + ;; Temporarily use a git snapshot. + (let ((commit "fe06860ea6f1cd339b5b38485879ec5d9512698c") + (revision "0")) (package (name "python-liblarch") - (version "3.2.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/getting-things-gnome/liblarch") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "125rmrdbc84lapfh8c77zxnmwas20xdfamqmilhv1smkxn2q4sh3")))) + (version (git-version "3.2.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/getting-things-gnome/liblarch") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1hvwhqhanwkmavnqxbl276nncvnrhgz92pa8z417d8bk3cirmj0b")))) (build-system pyproject-build-system) (arguments (list @@ -2757,12 +2761,15 @@ schemas for settings shared by various components of the GNOME desktop.") (list (search-input-file inputs "/bin/Xvfb") xorg-display "&") " ")) - (setenv "DISPLAY" xorg-display))))))) - (native-inputs - (list xorg-server-for-tests python-pytest python-setuptools)) + (setenv "DISPLAY" xorg-display)))) + (replace 'check + (lambda* (#:key tests? test-flags #:allow-other-keys) + (when tests? + (invoke "./run-tests"))))))) + (native-inputs (list python-pytest python-setuptools xorg-server-for-tests)) (inputs (list gtk+)) (propagated-inputs (list python-pygobject)) - (home-page "https://wiki.gnome.org/Projects/liblarch") + (home-page "https://getting-things-gnome.github.io/liblarch") (synopsis "Library to easily handle complex data structures") (description "Liblarch is a Python library built to easily handle data structures such @@ -2772,7 +2779,7 @@ allow you to use your data structure in a @code{Gtk.Treeview}. Liblarch support multiple views of one data structure and complex filtering. That way, you have a clear separation between your data themselves (Model) and how they are displayed (View).") - (license license:lgpl3+))) + (license license:lgpl3+)))) (define-public gtg (package