22 buildPythonPackage rec {
27 src = fetchFromGitHub {
28 owner = "moses-palmer";
30 rev = "refs/tags/v${version}";
31 hash = "sha256-gRq4LS9NvPL98N0Jk09Z0GfoHS09o3zM284BEWS+NW4=";
35 substituteInPlace setup.py \
36 --replace "'sphinx >=1.3.1'" ""
45 propagatedBuildInputs =
47 ++ lib.optionals stdenv.hostPlatform.isLinux [
51 ++ lib.optionals stdenv.hostPlatform.isDarwin (
52 with darwin.apple_sdk.frameworks;
59 doCheck = false; # requires running X server
61 nativeCheckInputs = [ unittestCheckHook ];
64 broken = stdenv.hostPlatform.isDarwin;
65 description = "Library to control and monitor input devices";
66 homepage = "https://github.com/moses-palmer/pynput";
67 license = licenses.lgpl3;
68 maintainers = with maintainers; [ nickhu ];