mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 09:43:14 +00:00
d5069ba902
https://github.com/flacjacket/pywlroots/releases/tag/v0.15.16 https://github.com/flacjacket/pywlroots/releases/tag/v0.15.17
52 lines
1.0 KiB
Nix
52 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, python
|
|
, cffi
|
|
, pkg-config
|
|
, libxkbcommon
|
|
, libinput
|
|
, pixman
|
|
, pythonOlder
|
|
, udev
|
|
, wlroots
|
|
, wayland
|
|
, pywayland
|
|
, xkbcommon
|
|
, xorg
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pywlroots";
|
|
version = "0.15.17";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "mDD2PLlq1rVlgYrLIN88MwAEVE/hU/K0mrTszpXQ30g=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|