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 <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-11-29 22:09:41 +01:00 committed by Sharlatan Hellseher
parent 94bbd3b9bc
commit 88c1ecfd01
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -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