python38Packages.keyboard: init at 0.13.5

This commit is contained in:
P. R. d. O 2021-12-03 08:44:48 -06:00
parent f546cfa6c7
commit 954151ad11
No known key found for this signature in database
GPG Key ID: 7B0FF33FF90110C7
2 changed files with 32 additions and 0 deletions

@ -0,0 +1,30 @@
{ lib
, buildPythonPackage
, fetchFromGitHub }:
buildPythonPackage rec {
pname = "keyboard";
version = "0.13.5";
src = fetchFromGitHub {
owner = "boppreh";
repo = pname;
rev = "v${version}";
sha256 = "sha256-U4GWhPp28azBE3Jn9xpLxudOKx0PjnYO77EM2HsJ9lM=";
};
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;
};
}

@ -4199,6 +4199,8 @@ in {
kerberos = callPackage ../development/python-modules/kerberos { };
keyboard = callPackage ../development/python-modules/keyboard { };
keyring = callPackage ../development/python-modules/keyring { };
keyrings-cryptfile = callPackage ../development/python-modules/keyrings-cryptfile { };