2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "keyboard";
|
|
|
|
version = "0.13.5";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "boppreh";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-U4GWhPp28azBE3Jn9xpLxudOKx0PjnYO77EM2HsJ9lM=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "keyboard" ];
|
|
|
|
|
|
|
|
# Specific OS tests are being run for other OS, like
|
|
|
|
# winmouse on Linux, which provides the following error:
|
|
|
|
# AttributeError: module 'ctypes' has no attribute 'WinDLL'
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Hook and simulate keyboard events on Windows and Linux";
|
|
|
|
homepage = "https://github.com/boppreh/keyboard";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ wolfangaukang ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|