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