1{ lib
2, buildPythonPackage
3, fetchFromGitHub }:
4
5buildPythonPackage rec {
6 pname = "keyboard";
7 version = "0.13.5";
8
9 src = fetchFromGitHub {
10 owner = "boppreh";
11 repo = pname;
12 rev = "v${version}";
13 hash = "sha256-U4GWhPp28azBE3Jn9xpLxudOKx0PjnYO77EM2HsJ9lM=";
14 };
15
16 pythonImportsCheck = [ "keyboard" ];
17
18 # Specific OS tests are being run for other OS, like
19 # winmouse on Linux, which provides the following error:
20 # AttributeError: module 'ctypes' has no attribute 'WinDLL'
21 doCheck = false;
22
23 meta = with lib; {
24 description = "Hook and simulate keyboard events on Windows and Linux";
25 homepage = "https://github.com/boppreh/keyboard";
26 license = licenses.mit;
27 maintainers = with maintainers; [ wolfangaukang ];
28 platforms = platforms.linux;
29 };
30}