summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-10-04 01:16:49 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-04 01:39:30 +0100
commit8f79dfd7d6fa3a986f3c4bb771855d1e8cc0056d (patch)
tree4a2bd3b012b97b12bc5ed1c5c6a159e9d2bcd378 /gnu/packages/python-xyz.scm
parent221abb5ef7b037a9725df56615d923d729931cf1 (diff)
gnu: python-xdo: Update to 0.5.
* gnu/packages/python-xyz.scm (python-xdo): Update to 0.5. Use G-Expression, remove traling #t from lambda. [build-system]: Switch to pyproject-build-system. [arguments] <phases>: Place 'patch-libxdo-path after 'unpack. [native-inputs]: Add python-setuptools. [inputs]: Remove labels. [propagated-inputs]: Remove python-six. Change-Id: Iba0bd85da34fd3eb47a3d8d4539f3fa6dff008c3
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm50
1 files changed, 25 insertions, 25 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b04c280043..58b16b2eb7 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -21528,7 +21528,7 @@ files.")
(define-public python-xdo
(package
(name "python-xdo")
- (version "0.3")
+ (version "0.5")
(source (origin
(method url-fetch)
(uri (string-append
@@ -21536,32 +21536,32 @@ files.")
"python-xdo_" version ".orig.tar.gz"))
(sha256
(base32
- "1vqh1n5yy5dhnq312kwrl90fnck4v26is3lq3lxdvcn60vv19da0"))))
- (build-system python-build-system)
+ "109fm7crafkjwbnx6k01vy8xiyisgadi6fln4w0yc9s8b4ifb3qc"))))
+ (build-system pyproject-build-system)
(arguments
- '(#:phases
- (modify-phases %standard-phases
- (add-before 'install 'patch-libxdo-path
- ;; Hardcode the path of dynamically loaded libxdo library.
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((libxdo (string-append
- (assoc-ref inputs "xdotool")
- "/lib/libxdo.so"))
- (libc (string-append
- (assoc-ref inputs "libc")
- "/lib/libc.so.6")))
- (substitute* "xdo/_xdo.py"
- (("find_library\\(\"xdo\"\\)")
- (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))
+ (list
+ #:tests? #f ; no tests provided
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-libxdo-path
+ ;; Hardcode the path of dynamically loaded libxdo library.
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((libxdo (string-append
+ (assoc-ref inputs "xdotool")
+ "/lib/libxdo.so"))
+ (libc (string-append
+ (assoc-ref inputs "libc")
+ "/lib/libc.so.6")))
+ (substitute* "xdo/_xdo.py"
+ (("find_library\\(\"xdo\"\\)")
+ (simple-format #f "\"~a\"" libxdo))
+ (("ctypes\\.util\\.find_library\\('libc'\\)")
+ (simple-format #f "\"~a\"" libc)))))))))
+ (native-inputs
+ (list python-setuptools))
(inputs
- `(("xdotool" ,xdotool)
- ("libX11" ,libx11)))
+ (list xdotool
+ libx11))
(home-page "https://tracker.debian.org/pkg/python-xdo")
(synopsis "Python library for simulating X11 keyboard/mouse input")
(description "Provides bindings to libxdo for manipulating X11 via simulated