1{ lib, buildPythonPackage, isPy34, fetchPypi, linuxHeaders }: 2 3buildPythonPackage rec { 4 pname = "evdev"; 5 version = "0.7.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "188ahmqnh5y1f46m7pyjdmi9zfxswaggn6xga65za554d72azvap"; 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 disabled = isPy34; # see http://bugs.python.org/issue21121 21 22 meta = with lib; { 23 description = "Provides bindings to the generic input event interface in Linux"; 24 homepage = http://pythonhosted.org/evdev; 25 license = licenses.bsd3; 26 maintainers = with maintainers; [ goibhniu ]; 27 platforms = platforms.linux; 28 }; 29}