Unverified Commit 4bd5602e authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #233039 from Enzime/add/kitti3

kitti3: init at unstable-2021-09-11
parents 2705a0a2 249261f0
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
commit 410e98569c87469672086d4144f7ca0f2ee08fb7
Author: Michael Hoang <enzime@users.noreply.github.com>
Date:   Sun May 21 00:13:37 2023 +1000

    Allow project to be built with just `pip`
---
 pyproject.toml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/pyproject.toml b/pyproject.toml
index 10ed786..574e42a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,3 +1,7 @@
+[build-system]
+requires = ["poetry-core"]
+build-backend = "poetry.core.masonry.api"
+
 [tool.poetry]
 name = "kitti3"
 version = "0.5.1"
+40 −0
Original line number Diff line number Diff line
{ buildPythonApplication
, fetchFromGitHub
, poetry-core
, i3ipc
, lib
}:

buildPythonApplication rec {
  pname = "kitti3";
  version = "unstable-2021-09-11";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "LandingEllipse";
    repo = pname;
    rev = "f9f94c8b9f8b61a9d085206ada470cfe755a2a92";
    hash = "sha256-bcIzbDpIe2GKS9EcVqpjwz0IG2ixNMn06OIQpZ7PeH0=";
  };

  patches = [
    # Fixes `build-system` not being specified in `pyproject.toml`
    # https://github.com/LandingEllipse/kitti3/pull/25
    ./kitti3-fix-build-system.patch
  ];

  nativeBuildInputs = [
    poetry-core
  ];

  propagatedBuildInputs = [
    i3ipc
  ];

  meta = with lib; {
    homepage = "https://github.com/LandingEllipse/kitti3";
    description = "Kitty drop-down service for sway & i3wm";
    license = licenses.bsd3;
    maintainers = with maintainers; [ Enzime ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -31429,6 +31429,8 @@ with pkgs;
  i3-wk-switch = callPackage ../applications/window-managers/i3/wk-switch.nix { };
  kitti3 = python3.pkgs.callPackage ../applications/window-managers/i3/kitti3.nix { };
  waybox = callPackage ../applications/window-managers/waybox { };
  workstyle = callPackage ../applications/window-managers/i3/workstyle.nix { };