Unverified Commit e4ee8fcb authored by Charlotte Van Petegem's avatar Charlotte Van Petegem Committed by Charlotte Van Petegem
Browse files

pywlroots: init at 0.14.8

parent 506c85ab
Loading
Loading
Loading
Loading
+45 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, python
, cffi
, pkg-config
, libxkbcommon
, libinput
, pixman
, udev
, wlroots
, wayland
, pywayland
, xkbcommon
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "pywlroots";
  version = "0.14.8";

  src = fetchPypi {
    inherit pname version;
    sha256 = "vCVgO26yv4wJ9cejfLfrRQkbuRJGLTfsqkA9xvbwyRE=";
  };

  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 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -7744,6 +7744,8 @@ in {

  pywizlight = callPackage ../development/python-modules/pywizlight { };

  pywlroots = callPackage ../development/python-modules/pywlroots { };

  pyxattr = callPackage ../development/python-modules/pyxattr { };

  pyworld = callPackage ../development/python-modules/pyworld { };