* [bug#46015] [PATCH] Add xkeysnail.
@ 2021-01-21 10:40 ` Z572
2021-01-29 11:03 ` Ludovic Courtès
2021-01-29 11:04 ` Ludovic Courtès
0 siblings, 2 replies; 5+ messages in thread
From: Z572 @ 2021-01-21 10:40 UTC (permalink / raw)
To: 46015
[-- Attachment #1: 0001-gnu-Add-python-inotify-simple.patch --]
[-- Type: text/x-patch, Size: 2348 bytes --]
From c8ffb0e96851e5642fa872f5ffc20d9e56d30fb7 Mon Sep 17 00:00:00 2001
From: Zheng Junjie <873216071@qq.com>
Date: Thu, 21 Jan 2021 18:36:16 +0800
Subject: [PATCH 1/2] gnu: Add python-inotify-simple.
---
gnu/packages/python-xyz.scm | 33 ++++++++++++++++++++++++++++++++-
1 file changed, 32 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d08e23936c..81d7eb48c7 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -93,7 +93,7 @@
;;; Copyright © 2020 Diego N. Barbato <dnbarbato@posteo.de>
;;; Copyright © 2020 Leo Prikler <leo.prikler@student.tugraz.at>
;;; Copyright © 2019 Kristian Trandem <kristian@devup.no>
-;;; Copyright © 2020 Zheng Junjie <873216071@qq.com>
+;;; Copyright © 2020, 2021 Zheng Junjie <873216071@qq.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -6726,6 +6726,37 @@ need to use the older and less efficient @code{pkg_resources} package.")
finding unresolved symbols in Python code and their corresponding imports.")
(license license:bsd-3)))
+(define-public python-inotify-simple
+ (package
+ (name "python-inotify-simple")
+ (version "1.3.5")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/chrisjbillington/inotify_simple")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1dv9svrcz31acyq9smjlnw75xv3x5wpn5h6s8j8h0vrqyl3d7l05"))))
+ (build-system python-build-system)
+ (home-page
+ "https://github.com/chrisjbillington/inotify_simple")
+ (synopsis "Simple wrapper around inotify library")
+ (description
+ "@code{inotify-simple} is a simple wrapper around inotify library.")
+ (license license:bsd-3)
+ (properties `((python2-variant . ,(delay python2-inotify-simple))))))
+
+(define-public python2-inotify-simple
+ (let ((base (package-with-python2
+ (strip-python2-variant python-inotify-simple))))
+ (package
+ (inherit base)
+ (propagated-inputs
+ `(("python2-enum34" ,python2-enum34)
+ ,@(package-propagated-inputs base))))))
+
(define-public python-jaraco-packaging
(package
(name "python-jaraco-packaging")
--
2.30.0
[-- Attachment #2: 0002-gnu-Add-xkeysnail.patch --]
[-- Type: text/x-patch, Size: 2076 bytes --]
From ff3e5c516f7cae4cff3037cde5d36d7f415727dd Mon Sep 17 00:00:00 2001
From: Zheng Junjie <873216071@qq.com>
Date: Thu, 21 Jan 2021 18:37:33 +0800
Subject: [PATCH 2/2] gnu: Add xkeysnail.
---
gnu/packages/xdisorg.scm | 31 ++++++++++++++++++++++++++++++-
1 file changed, 30 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 26660b8bfa..9522a2ae23 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -42,7 +42,7 @@
;;; Copyright © 2020 Gabriel Arazas <foo.dogsquared@gmail.com>
;;; Copyright © 2020 James Smith <jsubuntuxp@disroot.org>
;;; Copyright © 2020 B. Wilson <elaexuotee@wilsonb.com>
-;;; Copyright © 2020 Zheng Junjie <873216071@qq.com>
+;;; Copyright © 2020, 2021 Zheng Junjie <873216071@qq.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -326,6 +326,35 @@ application.")
(home-page "https://hluk.github.io/CopyQ/")
(license license:gpl3+)))
+(define-public xkeysnail
+ (package
+ (name "xkeysnail")
+ (version "0.4.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "xkeysnail" version))
+ (sha256
+ (base32
+ "1xyqp6yqxcwmxaqj86qcsiz0ly7bwr0a2w835myz909irhip3ngf"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:tests? #f)) ;test need /dev/uinput
+ (propagated-inputs
+ `(("python-six" ,python-six)
+ ("python-appdirs" ,python-appdirs)
+ ("python-evdev" ,python-evdev)
+ ("python-inotify-simple" ,python-inotify-simple)
+ ("python-xlib" ,python-xlib)))
+ (home-page "https://github.com/mooz/xkeysnail")
+ (synopsis
+ "Keyboard remapping tool for X environment")
+ (description
+ "A X environment keyboard remapping tool. high-level and flexible remapping
+mechanisms. Runs in low-level layer (evdev and uinput), making remapping work
+in almost all the places.")
+ (license license:gpl3)))
+
(define-public xclip
(package
(name "xclip")
--
2.30.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [bug#46015] [PATCH] Add xkeysnail.
2021-01-21 10:40 ` Z572
@ 2021-01-29 11:03 ` Ludovic Courtès
2021-01-29 11:04 ` Ludovic Courtès
1 sibling, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2021-01-29 11:03 UTC (permalink / raw)
To: Z572; +Cc: 46015
Hi,
Z572 <873216071@qq.com> skribis:
>>From c8ffb0e96851e5642fa872f5ffc20d9e56d30fb7 Mon Sep 17 00:00:00 2001
> From: Zheng Junjie <873216071@qq.com>
> Date: Thu, 21 Jan 2021 18:36:16 +0800
> Subject: [PATCH 1/2] gnu: Add python-inotify-simple.
>
> ---
> gnu/packages/python-xyz.scm | 33 ++++++++++++++++++++++++++++++++-
> 1 file changed, 32 insertions(+), 1 deletion(-)
Applied with a commit log and without the Python 2 variant (we no longer
add them).
>>From ff3e5c516f7cae4cff3037cde5d36d7f415727dd Mon Sep 17 00:00:00 2001
> From: Zheng Junjie <873216071@qq.com>
> Date: Thu, 21 Jan 2021 18:37:33 +0800
> Subject: [PATCH 2/2] gnu: Add xkeysnail.
>
> ---
> gnu/packages/xdisorg.scm | 31 ++++++++++++++++++++++++++++++-
> 1 file changed, 30 insertions(+), 1 deletion(-)
[...]
> + (propagated-inputs
> + `(("python-six" ,python-six)
> + ("python-appdirs" ,python-appdirs)
> + ("python-evdev" ,python-evdev)
> + ("python-inotify-simple" ,python-inotify-simple)
> + ("python-xlib" ,python-xlib)))
Please use ‘wrap-script’ around the ‘xkeysnail’ executable instead of
propagating inputs. That way, installing xkeysnail won’t “pollute” the
user profile with all these Python libraries.
> + (license license:gpl3)))
Is it version-3-only or version-3-or-any-later-version?
Could you send an updated patch?
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug#46015] [PATCH] Add xkeysnail.
2021-01-21 10:40 ` Z572
2021-01-29 11:03 ` Ludovic Courtès
@ 2021-01-29 11:04 ` Ludovic Courtès
1 sibling, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2021-01-29 11:04 UTC (permalink / raw)
To: Z572; +Cc: 46015
Also, suggested synopsis/description, with full sentences:
(synopsis "Keyboard remapping tool for the X11 environment")
(description
"Xkeysnail is an X environment keyboard remapping tool, featuring
high-level and flexible remapping mechanisms. It affects the low-level
layers (evdev and uinput), making remapping work in almost all the places.")
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug#46015] [PATCH] Add xkeysnail.
@ 2021-01-29 17:05 ` Z572
2021-02-12 9:50 ` bug#46015: " 宋文武
0 siblings, 1 reply; 5+ messages in thread
From: Z572 @ 2021-01-29 17:05 UTC (permalink / raw)
To: bug#46015
[-- Attachment #1: 0001-gnu-Add-xkeysnail.patch --]
[-- Type: text/x-patch, Size: 2201 bytes --]
From e1e02b411e6314ecb491fd0980fdfbb94b6466ff Mon Sep 17 00:00:00 2001
From: Zheng Junjie <873216071@qq.com>
Date: Fri, 29 Jan 2021 23:06:25 +0800
Subject: [PATCH] gnu: Add xkeysnail.
* gnu/packages/xdisorg.scm (xkeysnail): New variable.
---
gnu/packages/xdisorg.scm | 30 +++++++++++++++++++++++++++++-
1 file changed, 29 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 26660b8bfa..a08eae247a 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -42,7 +42,7 @@
;;; Copyright © 2020 Gabriel Arazas <foo.dogsquared@gmail.com>
;;; Copyright © 2020 James Smith <jsubuntuxp@disroot.org>
;;; Copyright © 2020 B. Wilson <elaexuotee@wilsonb.com>
-;;; Copyright © 2020 Zheng Junjie <873216071@qq.com>
+;;; Copyright © 2020, 2021 Zheng Junjie <873216071@qq.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -326,6 +326,34 @@ application.")
(home-page "https://hluk.github.io/CopyQ/")
(license license:gpl3+)))
+(define-public xkeysnail
+ (package
+ (name "xkeysnail")
+ (version "0.4.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "xkeysnail" version))
+ (sha256
+ (base32
+ "1xyqp6yqxcwmxaqj86qcsiz0ly7bwr0a2w835myz909irhip3ngf"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:tests? #f)) ;tests need /dev/uinput
+ (inputs
+ `(("python-appdirs" ,python-appdirs)
+ ("python-evdev" ,python-evdev)
+ ("python-inotify-simple" ,python-inotify-simple)
+ ("python-xlib" ,python-xlib)
+ ("python-six" ,python-six)))
+ (home-page "https://github.com/mooz/xkeysnail")
+ (synopsis "Keyboard remapping tool for the X11 environment")
+ (description
+ "Xkeysnail is an X environment keyboard remapping tool, featuring
+high-level and flexible remapping mechanisms. It affects the low-level
+layers (evdev and uinput), making remapping work in almost all the places.")
+ (license license:gpl3+))) ; see README.md (no licence headers)
+
(define-public xclip
(package
(name "xclip")
--
2.30.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* bug#46015: [PATCH] Add xkeysnail.
2021-01-29 17:05 ` Z572
@ 2021-02-12 9:50 ` 宋文武
0 siblings, 0 replies; 5+ messages in thread
From: 宋文武 @ 2021-02-12 9:50 UTC (permalink / raw)
To: Z572; +Cc: bug#46015
Z572 <873216071@qq.com> writes:
> Subject: [PATCH] gnu: Add xkeysnail.
Pushed, thank you!
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-02-12 9:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-21 10:40 [bug#46015] [PATCH] Add xkeysnail Z572
2021-01-21 10:40 ` Z572
2021-01-29 11:03 ` Ludovic Courtès
2021-01-29 11:04 ` Ludovic Courtès
2021-01-29 17:05 ` Z572
2021-01-29 17:05 ` Z572
2021-02-12 9:50 ` bug#46015: " 宋文武
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.