nixpkgs/pkgs/development/python-modules/keyboard/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

32 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;
};
}