70 lines
1.3 KiB
Nix
70 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
cairocffi,
|
|
cffi,
|
|
strenum,
|
|
psutil,
|
|
xcffib,
|
|
pdm-backend,
|
|
pyside6,
|
|
pyvirtualdisplay,
|
|
pytestCheckHook,
|
|
qtile,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "qtile-bonsai";
|
|
version = "0.4.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aravinda0";
|
|
repo = "qtile-bonsai";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-IWy/YEVdZc+UgIKl75ZpOkOIvpS5hCX0ihQenUOuJHo=";
|
|
};
|
|
|
|
build-system = [
|
|
pdm-backend
|
|
];
|
|
|
|
dependencies = [
|
|
strenum
|
|
psutil
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pyside6
|
|
pyvirtualdisplay
|
|
(cairocffi.override { withXcffib = true; })
|
|
cffi
|
|
xcffib
|
|
qtile
|
|
pytestCheckHook
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$(mktemp -d)
|
|
'';
|
|
|
|
disabledTestPaths = [
|
|
# Needs a running DBUS
|
|
"tests/integration/test_layout.py"
|
|
"tests/integration/test_widget.py"
|
|
];
|
|
|
|
pythonImportCheck = [ "qtile_bonsai" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/aravinda0/qtile-bonsai/releases/tag/${version}";
|
|
homepage = "https://github.com/aravinda0/qtile-bonsai";
|
|
description = "Flexible layout for the qtile tiling window manager";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
gurjaka
|
|
sigmanificient
|
|
];
|
|
};
|
|
}
|