21 buildPythonPackage rec {
26 src = fetchFromGitHub {
27 owner = "moses-palmer";
29 rev = "refs/tags/v${version}";
30 hash = "sha256-gRq4LS9NvPL98N0Jk09Z0GfoHS09o3zM284BEWS+NW4=";
34 substituteInPlace setup.py \
35 --replace "'sphinx >=1.3.1'" ""
44 propagatedBuildInputs = [
46 ] ++ lib.optionals stdenv.isLinux [
49 ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
54 doCheck = false; # requires running X server
61 broken = stdenv.isDarwin;
62 description = "A library to control and monitor input devices";
63 homepage = "https://github.com/moses-palmer/pynput";
64 license = licenses.lgpl3;
65 maintainers = with maintainers; [ nickhu ];