Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 linuxHeaders, 6 pythonOlder, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "evdev"; 12 version = "1.7.1"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-DHLDcL2inYV+GI2TEBnDJlGpweqXfAjI2TmxztFjf94="; 20 }; 21 22 patchPhase = '' 23 substituteInPlace setup.py \ 24 --replace-fail /usr/include ${linuxHeaders}/include 25 ''; 26 27 build-system = [ setuptools ]; 28 29 buildInputs = [ linuxHeaders ]; 30 31 doCheck = false; 32 33 pythonImportsCheck = [ "evdev" ]; 34 35 meta = with lib; { 36 description = "Provides bindings to the generic input event interface in Linux"; 37 homepage = "https://python-evdev.readthedocs.io/"; 38 changelog = "https://github.com/gvalkov/python-evdev/blob/v${version}/docs/changelog.rst"; 39 license = licenses.bsd3; 40 maintainers = [ ]; 41 platforms = platforms.linux; 42 }; 43}