mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-xdo: Hard-code path to libc.
Fixes: <https://issues.guix.gnu.org/53183> * gnu/packages/python-xyz.scm (python-xdo)[arguments]: Also substitute* reference of libc. [inputs]: Add glibc.
This commit is contained in:
parent
873b2eca94
commit
71421529d8
1 changed files with 8 additions and 2 deletions
|
@ -14313,16 +14313,22 @@ in pure Python.")
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(let ((libxdo (string-append
|
(let ((libxdo (string-append
|
||||||
(assoc-ref inputs "xdotool")
|
(assoc-ref inputs "xdotool")
|
||||||
"/lib/libxdo.so")))
|
"/lib/libxdo.so"))
|
||||||
|
(libc (string-append
|
||||||
|
(assoc-ref inputs "glibc")
|
||||||
|
"/lib/libc.so.6")))
|
||||||
(substitute* "xdo/_xdo.py"
|
(substitute* "xdo/_xdo.py"
|
||||||
(("find_library\\(\"xdo\"\\)")
|
(("find_library\\(\"xdo\"\\)")
|
||||||
(simple-format #f "\"~a\"" libxdo)))
|
(simple-format #f "\"~a\"" libxdo))
|
||||||
|
(("ctypes\\.util\\.find_library\\('libc'\\)")
|
||||||
|
(simple-format #f "\"~a\"" libc)))
|
||||||
#t))))
|
#t))))
|
||||||
#:tests? #f)) ; no tests provided
|
#:tests? #f)) ; no tests provided
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-six))
|
(list python-six))
|
||||||
(inputs
|
(inputs
|
||||||
`(("xdotool" ,xdotool)
|
`(("xdotool" ,xdotool)
|
||||||
|
("glibc" ,glibc)
|
||||||
("libX11" ,libx11)))
|
("libX11" ,libx11)))
|
||||||
(home-page "https://tracker.debian.org/pkg/python-xdo")
|
(home-page "https://tracker.debian.org/pkg/python-xdo")
|
||||||
(synopsis "Python library for simulating X11 keyboard/mouse input")
|
(synopsis "Python library for simulating X11 keyboard/mouse input")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue