mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: autokey: Fix paths.
* gnu/packages/python-xyz.scm (autokey): Add comments on the disabled tests and GI_TYPELIB_PATH wrapping. [inputs]: Add ipython. [phases]{fix-paths}: Use paths to ipython3 and python3 in autokey-shell script. {wrap-autokey}: Change name to... {wrap-autokey-gi}: ...this and move to before wrap for clarity. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
parent
1690d2eca9
commit
29fc4a7dae
1 changed files with 18 additions and 8 deletions
|
@ -4212,7 +4212,9 @@ structure for Python.")
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:tests? #f ; Tests are deprecated/broken until next version.
|
;; Tests are deprecated and broken until next version, see
|
||||||
|
;; https://github.com/autokey/autokey/issues/327
|
||||||
|
#:tests? #f
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'fix-paths
|
(add-after 'unpack 'fix-paths
|
||||||
|
@ -4221,8 +4223,16 @@ structure for Python.")
|
||||||
(("\"wmctrl\"")
|
(("\"wmctrl\"")
|
||||||
(string-append "\"" (search-input-file inputs "bin/wmctrl") "\""))
|
(string-append "\"" (search-input-file inputs "bin/wmctrl") "\""))
|
||||||
(("\"zenity\"")
|
(("\"zenity\"")
|
||||||
(string-append "\"" (search-input-file inputs "bin/zenity") "\"")))))
|
(string-append "\"" (search-input-file inputs "bin/zenity") "\"")))
|
||||||
(add-after 'install 'wrap-autokey
|
(substitute* "autokey-shell"
|
||||||
|
(("'ipython3'")
|
||||||
|
(string-append "'" (search-input-file inputs "bin/ipython3") "'"))
|
||||||
|
(("'python3'")
|
||||||
|
(string-append "'" (search-input-file inputs "bin/python3") "'")))))
|
||||||
|
;; Use 'prefix' instead of '=' to allow the user to use additional
|
||||||
|
;; GI paths from their autokey scripts. GUIX_PYTHONPATH is already
|
||||||
|
;; wrapped with prefix in python-build-system's wrap.
|
||||||
|
(add-before 'wrap 'wrap-autokey-gi
|
||||||
(lambda _
|
(lambda _
|
||||||
(let ((gi-typelib-path (getenv "GI_TYPELIB_PATH")))
|
(let ((gi-typelib-path (getenv "GI_TYPELIB_PATH")))
|
||||||
(for-each
|
(for-each
|
||||||
|
@ -4238,14 +4248,14 @@ structure for Python.")
|
||||||
gtksourceview-3
|
gtksourceview-3
|
||||||
libappindicator
|
libappindicator
|
||||||
libnotify
|
libnotify
|
||||||
wmctrl
|
python-dbus
|
||||||
zenity))
|
python-ipython
|
||||||
(propagated-inputs
|
|
||||||
(list python-dbus
|
|
||||||
python-pygobject
|
python-pygobject
|
||||||
python-pyinotify
|
python-pyinotify
|
||||||
python-pyqt+qscintilla
|
python-pyqt+qscintilla
|
||||||
python-xlib))
|
python-xlib
|
||||||
|
wmctrl
|
||||||
|
zenity))
|
||||||
(home-page "https://github.com/autokey/autokey")
|
(home-page "https://github.com/autokey/autokey")
|
||||||
(synopsis
|
(synopsis
|
||||||
"Keyboard and GUI automation utility")
|
"Keyboard and GUI automation utility")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue