Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 28 lines 678 B view raw
1{ lib, stdenv, buildPythonPackage, fetchPypi, sphinx, setuptools-lint, xlib, evdev }: 2 3buildPythonPackage rec { 4 pname = "pynput"; 5 version = "1.7.3"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "4e50b1a0ab86847e87e58f6d1993688b9a44f9f4c88d4712315ea8eb552ef828"; 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