2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python
|
|
|
|
, cffi
|
|
|
|
, pkg-config
|
|
|
|
, libxkbcommon
|
|
|
|
, libinput
|
|
|
|
, pixman
|
2022-04-27 09:35:20 +00:00
|
|
|
, pythonOlder
|
2021-12-06 16:07:01 +00:00
|
|
|
, udev
|
|
|
|
, wlroots
|
|
|
|
, wayland
|
|
|
|
, pywayland
|
|
|
|
, xkbcommon
|
2022-01-26 04:04:25 +00:00
|
|
|
, xorg
|
2021-12-06 16:07:01 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pywlroots";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "0.15.22";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-10-21 18:38:19 +00:00
|
|
|
sha256 = "sha256-KzpQk7ANinEVvOBeZ+8vPmuuu4LbatjHBKUL44bcAAI=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
propagatedNativeBuildInputs = [ cffi ];
|
2022-01-26 04:04:25 +00:00
|
|
|
buildInputs = [ libinput libxkbcommon pixman xorg.libxcb udev wayland wlroots ];
|
2021-12-06 16:07:01 +00:00
|
|
|
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;
|
2022-01-26 04:04:25 +00:00
|
|
|
platforms = platforms.linux;
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ chvp ];
|
|
|
|
};
|
|
|
|
}
|