Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 27 lines 687 B view raw
1{ lib, buildPythonPackage, fetchPypi, linuxHeaders }: 2 3buildPythonPackage rec { 4 pname = "evdev"; 5 version = "1.3.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "0kb3636yaw9l8xi8s184w0r0n9ic5dw3b8hx048jf9fpzss4kimi"; 10 }; 11 12 buildInputs = [ linuxHeaders ]; 13 14 patchPhase = '' 15 substituteInPlace setup.py --replace /usr/include/linux ${linuxHeaders}/include/linux 16 ''; 17 18 doCheck = false; 19 20 meta = with lib; { 21 description = "Provides bindings to the generic input event interface in Linux"; 22 homepage = "https://pythonhosted.org/evdev"; 23 license = licenses.bsd3; 24 maintainers = with maintainers; [ goibhniu ]; 25 platforms = platforms.linux; 26 }; 27}