From 88c1ecfd014bcbfce4c81d5e82ceeaf1d656c3f9 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sat, 29 Nov 2025 22:09:41 +0100 Subject: [PATCH] gnu: python-dogtail: Switch to pyproject. * gnu/packages/python-xyz.scm (python-dogtail): [source, arguments]: Run guix style. [build-system]: Switch to pyproject-build-system. [native-inputs]: Add python-setuptools. Replace python-nose by python-pynose. Change-Id: I7376f34c8e80465373be8ecd1b55af0c494491af Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 49 ++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 25 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index c3f5012d254..07a5686bd08 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -6950,37 +6950,36 @@ Prefix) - Encode and decode data structures.") (package (name "python-dogtail") (version "0.9.11") - (source (origin - (method url-fetch) - (uri - (string-append - "https://gitlab.com/dogtail/dogtail/-/raw/released/" - "dogtail-" version ".tar.gz")) - (sha256 - (base32 - "0sr38z7b2n12bvfd4xw4b5dnnhkn5zl3h0ymmnnzavcihfqia6l0")))) - (build-system python-build-system) + (source + (origin + (method url-fetch) + (uri (string-append + "https://gitlab.com/dogtail/dogtail/-/raw/released/" "dogtail-" + version ".tar.gz")) + (sha256 + (base32 "0sr38z7b2n12bvfd4xw4b5dnnhkn5zl3h0ymmnnzavcihfqia6l0")))) + (build-system pyproject-build-system) (arguments - `(#:tests? #f ; TODO Launching dbus for the tests - ; fails - #:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (system "Xvfb :1 &") - (setenv "DISPLAY" ":1") - (invoke "dbus-run-session" "--" "nosetests" "-v" "tests/")) - #t))))) - (propagated-inputs - (list python-pygobject python-pycairo python-pyatspi)) + (list + #:tests? #f ;TODO Launching dbus for the tests fails + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (system "Xvfb :1 &") + (setenv "DISPLAY" ":1") + (invoke "dbus-run-session" "--" + "nosetests" "-v" "tests/"))))))) + (propagated-inputs (list python-pygobject python-pycairo python-pyatspi)) (native-inputs - (list python-nose + (list python-pynose gtk+ xorg-server-for-tests dbus gsettings-desktop-schemas - gobject-introspection)) + gobject-introspection + python-setuptools)) (home-page "https://gitlab.com/dogtail/dogtail/") (synopsis "GUI test tool and automation framework written in Python") (description