depot/third_party/nixpkgs/pkgs/development/python-modules/keyboard/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

31 lines
818 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub }:
buildPythonPackage rec {
pname = "keyboard";
version = "0.13.5";
format = "setuptools";
src = fetchFromGitHub {
owner = "boppreh";
repo = pname;
rev = "v${version}";
hash = "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;
};
}