1{ lib, stdenv, buildPythonPackage, fetchPypi, sphinx, setuptools-lint, xlib, evdev }: 2 3buildPythonPackage rec { 4 pname = "pynput"; 5 version = "1.7.4"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "16fecc4d1e53a28fb7c669c79e189c3f2cde14a08d6b457c3da07075c82f3b4c"; 10 }; 11 12 nativeBuildInputs = [ sphinx ]; 13 14 propagatedBuildInputs = [ setuptools-lint xlib ] 15 ++ lib.optionals stdenv.isLinux [ 16 evdev 17 ]; 18 19 doCheck = false; 20 21 meta = with lib; { 22 description = "A library to control and monitor input devices"; 23 homepage = "https://github.com/moses-palmer/pynput"; 24 license = licenses.lgpl3; 25 maintainers = with maintainers; [ nickhu ]; 26 }; 27} 28