1 { lib, buildPythonPackage, fetchFromGitHub, python3Packages }:
3 buildPythonPackage rec {
4 pname = "persistent-evdev";
5 version = "unstable-2022-05-07";
8 src = fetchFromGitHub {
11 rev = "52bf246464e09ef4e6f2e1877feccc7b9feba164";
12 sha256 = "d0i6DL/qgDELet4ew2lyVqzd9TApivRxL3zA3dcsQXY=";
15 propagatedBuildInputs = with python3Packages; [
20 patchShebangs bin/persistent-evdev.py
27 cp bin/persistent-evdev.py $out/bin
29 mkdir -p $out/etc/udev/rules.d
30 cp udev/60-persistent-input-uinput.rules $out/etc/udev/rules.d
37 homepage = "https://github.com/aiberia/persistent-evdev";
38 description = "Persistent virtual input devices for qemu/libvirt/evdev hotplug support";
39 license = licenses.mit;
40 maintainers = [ maintainers.lodi ];
41 platforms = platforms.linux;
42 mainProgram = "persistent-evdev.py";