me
/
guix
Archived
1
0
Fork 0

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.
Lars-Dominik Braun 2022-01-19 14:39:59 +01:00
parent 873b2eca94
commit 71421529d8
No known key found for this signature in database
GPG Key ID: F663943E08D8092A
1 changed files with 8 additions and 2 deletions

View File

@ -14313,16 +14313,22 @@ in pure Python.")
(lambda* (#:key inputs #:allow-other-keys)
(let ((libxdo (string-append
(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"
(("find_library\\(\"xdo\"\\)")
(simple-format #f "\"~a\"" libxdo)))
(simple-format #f "\"~a\"" libxdo))
(("ctypes\\.util\\.find_library\\('libc'\\)")
(simple-format #f "\"~a\"" libc)))
#t))))
#:tests? #f)) ; no tests provided
(propagated-inputs
(list python-six))
(inputs
`(("xdotool" ,xdotool)
("glibc" ,glibc)
("libX11" ,libx11)))
(home-page "https://tracker.debian.org/pkg/python-xdo")
(synopsis "Python library for simulating X11 keyboard/mouse input")