diff options
author | P. R. d. O <d.ol.rod@protonmail.com> | 2021-12-03 08:44:48 -0600 |
---|---|---|
committer | P. R. d. O <d.ol.rod@protonmail.com> | 2021-12-03 08:44:48 -0600 |
commit | 954151ad1133035edbed4fa1a093629948657a00 (patch) | |
tree | 05162e639cd10fd011cf50ff3e58145c3ddaba07 /pkgs/development/python-modules/keyboard | |
parent | f546cfa6c7e55b5327212dfc579f521a0335f367 (diff) |
python38Packages.keyboard: init at 0.13.5
Diffstat (limited to 'pkgs/development/python-modules/keyboard')
-rw-r--r-- | pkgs/development/python-modules/keyboard/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/keyboard/default.nix b/pkgs/development/python-modules/keyboard/default.nix new file mode 100644 index 0000000000000..8c85da5ef4c2b --- /dev/null +++ b/pkgs/development/python-modules/keyboard/default.nix @@ -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; + }; +} |