gnu: python-screenkey: Update to 1.5.

Sadly, it still fails to run, apparently due to
<https://gitlab.com/screenkey/screenkey/-/issues/166>.

* gnu/packages/python-xyz.scm (python-screenkey): Update to 1.5.
[phases] {fix-dlopen-paths}: Use search-input-file.
[inputs]: Sort.  Add python-dbus-python.

Change-Id: I9a41e03db74ba3e0254452f02108bab739d1f93e
This commit is contained in:
Maxim Cournoyer 2025-04-23 16:23:49 +09:00
parent 3d33f6ea88
commit 238ce45f13
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -36213,7 +36213,7 @@ CMake.")
(define-public python-screenkey (define-public python-screenkey
(package (package
(name "python-screenkey") (name "python-screenkey")
(version "1.4") (version "1.5")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -36223,21 +36223,19 @@ CMake.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1rfngmkh01g5192pi04r1fm7vsz6hg9k3qd313sn9rl9xkjgp11l")))) "0j719kld4dr85d9lxn0d0b6156mcy09jm7arssfp2n3j6hmjssci"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'fix-dlopen-paths (add-after 'unpack 'fix-dlopen-paths
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(let* ((x11 (assoc-ref inputs "libx11")) (substitute* "Screenkey/xlib.py"
(xtst (assoc-ref inputs "libxtst"))) (("libX11.so.6")
(substitute* "Screenkey/xlib.py" (search-input-file inputs "lib/libX11.so.6")))
(("libX11.so.6") (substitute* "Screenkey/xlib.py"
(string-append x11 "/lib/libX11.so.6"))) (("libXtst.so.6")
(substitute* "Screenkey/xlib.py" (search-input-file inputs "lib/libXtst.so.6")))))
(("libXtst.so.6")
(string-append xtst "/lib/libXtst.so.6"))))))
(add-after 'install 'wrap-screenkey (add-after 'install 'wrap-screenkey
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(wrap-program (wrap-program
@ -36247,15 +36245,16 @@ CMake.")
":" prefix (,(getenv "GI_TYPELIB_PATH"))))))))) ":" prefix (,(getenv "GI_TYPELIB_PATH")))))))))
(inputs (inputs
(list bash-minimal (list bash-minimal
python-distutils-extra gtk+
python-tokenize-rt
libx11 libx11
libxtst libxtst
gtk+ python-babel
python-pygobject python-dbus-python
python-distutils-extra
python-pycairo python-pycairo
python-pygobject
python-setuptools-git python-setuptools-git
python-babel)) python-tokenize-rt))
(home-page "https://www.thregr.org/~wavexx/software/screenkey/") (home-page "https://www.thregr.org/~wavexx/software/screenkey/")
(synopsis (synopsis
"Screencast tool to display pressed keys") "Screencast tool to display pressed keys")