diff options
Diffstat (limited to 'pkgs/development/python-modules/libevdev/default.nix')
-rw-r--r-- | pkgs/development/python-modules/libevdev/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/libevdev/default.nix b/pkgs/development/python-modules/libevdev/default.nix new file mode 100644 index 00000000000..a17612c79cb --- /dev/null +++ b/pkgs/development/python-modules/libevdev/default.nix @@ -0,0 +1,35 @@ +{ stdenv +, buildPythonPackage +, isPy27 +, fetchPypi +, substituteAll +, pkgs +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "libevdev"; + version = "0.9"; + disabled = isPy27; + + src = fetchPypi { + inherit pname version; + sha256 = "17agnigmzscmdjqmrylg1lza03hwjhgxbpf4l705s6i7p7ndaqrs"; + }; + + patches = [ + (substituteAll { + src = ./fix-paths.patch; + libevdev = stdenv.lib.getLib pkgs.libevdev; + }) + ]; + + checkInputs = [ pytestCheckHook ]; + + meta = with stdenv.lib; { + description = "Python wrapper around the libevdev C library"; + homepage = "https://gitlab.freedesktop.org/libevdev/python-libevdev"; + license = licenses.mit; + maintainers = with maintainers; [ nickhu ]; + }; +} |