depot/third_party/nixpkgs/pkgs/development/python-modules/pywlroots/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

45 lines
937 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, python
, cffi
, pkg-config
, libxkbcommon
, libinput
, pixman
, udev
, wlroots
, wayland
, pywayland
, xkbcommon
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pywlroots";
version = "0.14.11";
src = fetchPypi {
inherit pname version;
sha256 = "Ey1B3tx6UufxZs8I64vaoPSNC+4LGdcPuyKrLBHxZa8=";
};
nativeBuildInputs = [ pkg-config ];
propagatedNativeBuildInputs = [ cffi ];
buildInputs = [ libinput libxkbcommon pixman 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;
maintainers = with maintainers; [ chvp ];
};
}