diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-04 01:25:47 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-04 01:39:30 +0100 |
| commit | 7d714e693c0c1eb17bf28485843b9bc0fc9765ef (patch) | |
| tree | bdc61dda38078f41198a091b6d7c59e2e0454e80 | |
| parent | 8f79dfd7d6fa3a986f3c4bb771855d1e8cc0056d (diff) | |
gnu: python-xdo: Move to xdisorg.
* gnu/packages/python-xyz.scm (python-xdo): Move from here ...
* gnu/packages/xdisorg.scm: ... to here.
Change-Id: I46ef1efb1cb52ee9a1724dfe37167e7e7cdbf837
| -rw-r--r-- | gnu/packages/python-xyz.scm | 44 | ||||
| -rw-r--r-- | gnu/packages/xdisorg.scm | 49 |
2 files changed, 47 insertions, 46 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 58b16b2eb7..7323c656ed 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -21525,50 +21525,6 @@ Python utility you write that deals with user cache, configuration, or data files.") (license license:isc))) -(define-public python-xdo - (package - (name "python-xdo") - (version "0.5") - (source (origin - (method url-fetch) - (uri (string-append - "http://http.debian.net/debian/pool/main/p/python-xdo/" - "python-xdo_" version ".orig.tar.gz")) - (sha256 - (base32 - "109fm7crafkjwbnx6k01vy8xiyisgadi6fln4w0yc9s8b4ifb3qc")))) - (build-system pyproject-build-system) - (arguments - (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 - (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 -input. (Note that this is mostly a legacy library; you may wish to look at -python-xdo for newer bindings.)") - (license license:bsd-3))) - (define-public python-mako (package (name "python-mako") diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm index 82ed070d40..f31317ef8b 100644 --- a/gnu/packages/xdisorg.scm +++ b/gnu/packages/xdisorg.scm @@ -11,10 +11,11 @@ ;;; Copyright © 2015 Florian Paul Schmidt <mista.tapas@gmx.net> ;;; Copyright © 2016 Christine Lemmer-Webber <cwebber@dustycloud.org> ;;; Copyright © 2016, 2018 Ricardo Wurmus <rekado@elephly.net> -;;; Copyright © 2016-2021, 2023, 2025 Efraim Flashner <efraim@flashner.co.il> -;;; Copyright © 2016 Leo Famulari <leo@famulari.name> +;;; Copyright © 2016-2025 Efraim Flashner <efraim@flashner.co.il> +;;; Copyright © 2016, 2017 Leo Famulari <leo@famulari.name> ;;; Copyright © 2016, 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com> ;;; Copyright © 2016 Petter <petter@mykolab.ch> +;;; Copyright © 2017 宋文武 <iyzsong@envs.net> ;;; Copyright © 2017 Mekeor Melire <mekeor.melire@gmail.com> ;;; Copyright © 2017 Nikita <nikita@n0.is> ;;; Copyright © 2017–2021, 2024 Tobias Geerinckx-Rice <me@tobias.gr> @@ -2833,6 +2834,50 @@ both binary and text data.") the X11 clipboard") (license license:bsd-3))) +(define-public python-xdo + (package + (name "python-xdo") + (version "0.5") + (source (origin + (method url-fetch) + (uri (string-append + "http://http.debian.net/debian/pool/main/p/python-xdo/" + "python-xdo_" version ".orig.tar.gz")) + (sha256 + (base32 + "109fm7crafkjwbnx6k01vy8xiyisgadi6fln4w0yc9s8b4ifb3qc")))) + (build-system pyproject-build-system) + (arguments + (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 + (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 +input. (Note that this is mostly a legacy library; you may wish to look at +python-xdo for newer bindings.)") + (license license:bsd-3))) + (define-public numlockx (package (name "numlockx") |
