1{ lib 2, buildPythonPackage 3, fetchPypi 4, python 5, cffi 6, pkg-config 7, libxkbcommon 8, libinput 9, pixman 10, udev 11, wlroots 12, wayland 13, pywayland 14, xkbcommon 15, pytestCheckHook 16}: 17 18buildPythonPackage rec { 19 pname = "pywlroots"; 20 version = "0.14.11"; 21 22 src = fetchPypi { 23 inherit pname version; 24 sha256 = "Ey1B3tx6UufxZs8I64vaoPSNC+4LGdcPuyKrLBHxZa8="; 25 }; 26 27 nativeBuildInputs = [ pkg-config ]; 28 propagatedNativeBuildInputs = [ cffi ]; 29 buildInputs = [ libinput libxkbcommon pixman udev wayland wlroots ]; 30 propagatedBuildInputs = [ cffi pywayland xkbcommon ]; 31 checkInputs = [ pytestCheckHook ]; 32 33 postBuild = '' 34 ${python.interpreter} wlroots/ffi_build.py 35 ''; 36 37 pythonImportsCheck = [ "wlroots" ]; 38 39 meta = with lib; { 40 homepage = "https://github.com/flacjacket/pywlroots"; 41 description = "Python bindings to wlroots using cffi"; 42 license = licenses.ncsa; 43 maintainers = with maintainers; [ chvp ]; 44 }; 45}