48 lines
988 B
Nix
48 lines
988 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, python
|
|
, cffi
|
|
, pkg-config
|
|
, libxkbcommon
|
|
, libinput
|
|
, pixman
|
|
, udev
|
|
, wlroots
|
|
, wayland
|
|
, pywayland
|
|
, xkbcommon
|
|
, xorg
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pywlroots";
|
|
version = "0.15.9";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "V6P5zAvr0L7p+yEjr6To2rKoMPqxIvSPrlLzf6yj3WA=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
propagatedNativeBuildInputs = [ cffi ];
|
|
buildInputs = [ libinput libxkbcommon pixman xorg.libxcb udev wayland wlroots ];
|
|
propagatedBuildInputs = [ cffi pywayland xkbcommon ];
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
postBuild = ''
|
|
${python.interpreter} wlroots/ffi_build.py
|
|
'';
|
|
|
|
pythonImportsCheck = [ "wlroots" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/flacjacket/pywlroots";
|
|
description = "Python bindings to wlroots using cffi";
|
|
license = licenses.ncsa;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ chvp ];
|
|
};
|
|
}
|