1{
2 lib,
3 buildPythonApplication,
4 fetchFromGitHub,
5 i3ipc,
6 importlib-metadata,
7}:
8
9buildPythonApplication rec {
10 pname = "autotiling";
11 version = "1.9.3";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "nwg-piotr";
16 repo = pname;
17 tag = "v${version}";
18 hash = "sha256-k+UiAGMB/fJiE+C737yGdyTpER1ciZrMkZezkcn/4yk=";
19 };
20
21 propagatedBuildInputs = [
22 i3ipc
23 importlib-metadata
24 ];
25 doCheck = false;
26
27 meta = with lib; {
28 homepage = "https://github.com/nwg-piotr/autotiling";
29 description = "Script for sway and i3 to automatically switch the horizontal / vertical window split orientation";
30 license = licenses.gpl3Plus;
31 platforms = platforms.linux;
32 maintainers = with maintainers; [ artturin ];
33 mainProgram = "autotiling";
34 };
35}