diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 8fc5cee4b939..85fc381473d7 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -8558,6 +8558,12 @@ githubId = 6578603; name = "Jonas Rembser"; }; + gurjaka = { + name = "Gurami Esartia"; + email = "esartia.gurika@gmail.com"; + github = "Gurjaka"; + githubId = 143032436; + }; guserav = { github = "guserav"; githubId = 28863828; diff --git a/pkgs/development/python-modules/qtile-bonsai/default.nix b/pkgs/development/python-modules/qtile-bonsai/default.nix new file mode 100644 index 000000000000..0edd0eadd776 --- /dev/null +++ b/pkgs/development/python-modules/qtile-bonsai/default.nix @@ -0,0 +1,70 @@ +{ + 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 + ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6cec27f0a03a..f8c4262a0289 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13598,6 +13598,8 @@ self: super: with self; { }; qtile-extras = callPackage ../development/python-modules/qtile-extras { }; + qtile-bonsai = callPackage ../development/python-modules/qtile-bonsai { }; + qtpy = callPackage ../development/python-modules/qtpy { }; quadprog = callPackage ../development/python-modules/quadprog { };