summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@friendly-machines.com>2025-02-22 02:13:24 +0100
committerDanny Milosavljevic <dannym@friendly-machines.com>2025-02-22 15:26:10 +0100
commit86e7327de477982d0b7852d579e02c439c393ad8 (patch)
treebeb74220bc35c3cc216e69085de2535f52ceea97 /gnu
parent95c58847de530e5778aaa1030b68198433d929e1 (diff)
gnu: Add python-evemu.
* gnu/packages/linux.scm (python-evemu): New variable. Change-Id: I79e90ff2b151c9b56213f54768c9ad39ac7843fa
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/linux.scm39
1 files changed, 39 insertions, 0 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index c009a03529e..49c03ee510e 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -11384,3 +11384,42 @@ Linux input convention. Specifically, that allows you to use the D-pad
11384as a gamepad.") 11384as a gamepad.")
11385 (home-page "https://github.com/dkosmari/hid-wiimote-plus") 11385 (home-page "https://github.com/dkosmari/hid-wiimote-plus")
11386 (license license:gpl2+))) 11386 (license license:gpl2+)))
11387
11388(define-public python-evemu
11389 (package
11390 (name "python-evemu")
11391 (version "2.7.0")
11392 (source (origin
11393 (method git-fetch)
11394 (uri (git-reference
11395 (url "https://gitlab.freedesktop.org/libevdev/evemu")
11396 (commit (string-append "v" version))))
11397 (file-name (git-file-name name version))
11398 (sha256
11399 (base32
11400 "1sxf6v2wnajj9srlkfjfymjmmp4dlq73gzjcjmaw015a3c0xl029"))))
11401 (build-system gnu-build-system)
11402 (arguments
11403 (list #:tests? #f ; would open device files
11404 #:phases
11405 #~(modify-phases %standard-phases
11406 (add-after 'unpack 'patch
11407 (lambda* (#:key inputs #:allow-other-keys)
11408 (substitute* "python/evemu/base.py"
11409 (("\"libevdev.so\"")
11410 (string-append "\"" (assoc-ref inputs "libevdev")
11411 "/lib/libevdev.so\""))))))))
11412 (native-inputs
11413 (list asciidoc autoconf automake libtool docbook-xsl pkg-config
11414 python-wrapper xmlto))
11415 (inputs
11416 (list libevdev))
11417 (synopsis "Record and replay input device events")
11418 (description "This package provides a way to record and replay device
11419descriptions and events, making it possible to emulate input devices
11420through the Linux kernel's input system. Emulated devices are for most
11421practical purposes indistinguishable from real devices.
11422
11423It provides a command line program and also a Python library.")
11424 (home-page "https://www.freedesktop.org/wiki/Evemu/")
11425 (license license:gpl3)))