[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14/181: gnu: Add python-libevdev.
From: |
guix-commits |
Subject: |
14/181: gnu: Add python-libevdev. |
Date: |
Tue, 13 Sep 2022 02:25:05 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit a412817d84b78461a23855bb65d5b73bc712c3f5
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Aug 29 13:58:16 2022 -0400
gnu: Add python-libevdev.
* gnu/packages/freedesktop.scm (python-libevdev): New variable.
---
gnu/packages/freedesktop.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index e2a176c2c2..c62efbff00 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -939,6 +939,48 @@ backends, PackageKit can perform these tasks using the
appropriate package
manager for the current system.")
(license license:gpl2+)))
+(define-public python-libevdev
+ (package
+ (name "python-libevdev")
+ (version "0.11")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "libevdev" version))
+ (sha256
+ (base32
+ "03snix86j0angq0lydp29f8833clxq8h0x4spmh8lj7j9mm01jp9"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-dlopen-calls
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "libevdev/_clib.py"
+ (("libevdev.so.2")
+ (search-input-file inputs "lib/libevdev.so.2")))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv" "test")))))))
+ (native-inputs (list python-pytest))
+ (inputs (list libevdev))
+ (home-page "https://gitlab.freedesktop.org/libevdev/python-libevdev")
+ (synopsis "Python wrapper for libevdev")
+ (description "This package provides a Python wrapper around
+@code{libevdev}, taking advantage of @code{libevdev}'s advanced event
+handling. Documentation is available at
+@url{https://python-libevdev.readthedocs.io/en/latest/}.
+@code{libevdev} makes it easy to:
+@itemize
+@item read and parse events from an input device;
+@item create a virtual input device and make it send events;
+@item duplicate an existing device and modify the event stream.
+@end itemize
+For information about libevdev, see:
+@url{https://freedesktop.org/wiki/Software/libevdev/}.")
+ (license license:expat)))
+
(define-public python-pyxdg
(package
(name "python-pyxdg")
- 11/181: gnu: Add gi-docgen., (continued)
- 11/181: gnu: Add gi-docgen., guix-commits, 2022/09/13
- 18/181: gnu: libqmi: Update to 1.30.8., guix-commits, 2022/09/13
- 16/181: gnu: libhandy: Update to 1.7.90., guix-commits, 2022/09/13
- 19/181: gnu: modem-manager: Update to 1.18.10 and remove input labels., guix-commits, 2022/09/13
- 20/181: gnu: geoclue: Update to 2.6.0 and remove input labels., guix-commits, 2022/09/13
- 24/181: gnu: Add gsettings-desktop-schemas-next., guix-commits, 2022/09/13
- 25/181: gnu: gnome-settings-daemon: Update to 42.2., guix-commits, 2022/09/13
- 21/181: gnu: geocode-glib: Update to 3.26.4 and build with libsoup 3., guix-commits, 2022/09/13
- 23/181: gnu: network-manager: Update to 1.40.0, use gexps and remove input labels., guix-commits, 2022/09/13
- 26/181: gnu: umockdev: Update to 0.17.13., guix-commits, 2022/09/13
- 14/181: gnu: Add python-libevdev.,
guix-commits <=
- 38/181: gnu: accountsservice: Propagate glib., guix-commits, 2022/09/13
- 32/181: gnu: ibus: Update to 1.5.27, use gexps and remove input labels., guix-commits, 2022/09/13
- 37/181: gnu: mutter: Update to 42.4, use gexps and remove input labels., guix-commits, 2022/09/13
- 33/181: gnu: evolution-data-server: Update to 3.44.4 and remove input labels., guix-commits, 2022/09/13
- 40/181: gnu: gdm: Use gexps and new style inputs., guix-commits, 2022/09/13
- 46/181: gnu: gjs: Update to 1.72.2., guix-commits, 2022/09/13
- 17/181: gnu: baobab: Update to 42.0 and delete input labels., guix-commits, 2022/09/13
- 36/181: gnu: Add wayland-protocols-next., guix-commits, 2022/09/13
- 35/181: gnu: pipewire-0.3: Update to 0.3.56 and use gexps., guix-commits, 2022/09/13
- 42/181: gnu: lxsession: Use polkit-duktape., guix-commits, 2022/09/13