at master 728 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 isPy27, 5 fetchPypi, 6 replaceVars, 7 pkgs, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "libevdev"; 13 version = "0.12"; 14 format = "setuptools"; 15 disabled = isPy27; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-AulSYy7GwknLucZvb6AAEupEiwZgbHfNE5EzvC/kawg="; 20 }; 21 22 patches = [ 23 (replaceVars ./fix-paths.patch { 24 libevdev = lib.getLib pkgs.libevdev; 25 }) 26 ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 meta = with lib; { 31 description = "Python wrapper around the libevdev C library"; 32 homepage = "https://gitlab.freedesktop.org/libevdev/python-libevdev"; 33 license = licenses.mit; 34 maintainers = with maintainers; [ nickhu ]; 35 }; 36}