{
  lib,
  buildPythonApplication,
  fetchFromGitHub,
  xdotool,
  psutil,
  pynvim,
}:

buildPythonApplication rec {
  pname = "i3dispatch";
  version = "unstable";

  postUnpack = ''
    HOME=$TMPDIR
  '';

  # src = fetchFromGitHub {
  #   owner = "teto";
  #   repo = "i3-dispatch";
  #   rev = "3e307643673f157e2f5f571c3e0628766bb77de8";
  #   sha256 ="0f4blz91pjfr3ylpkg3fb7lls5kfizfyz7sismqaflg11z698911";
  # };

  src = builtins.fetchGit {
    url = "https://github.com/teto/i3-dispatch.git";
    rev = "8f7213a05a4f6d91424a5ab604e0f97f05f16aa8";
  };

  # src = fetchFromGitHub {
  #   owner = "krlanguet";
  #   repo = "i3-cycle-dispatch";
  #   rev = "3e307643673f157e2f5f571c3e0628766bb77de8";
  #   sha256 ="0f4blz90pjfr3ylpkg3fb7lls5kfizfyz7sismqaflg11z698911";
  # };

  propagatedBuildInputs = [
    xdotool
    psutil
    pynvim
  ];

  meta = with lib; {
    description = "tool to move around in i3";
    homepage = "https://github.com/teto/i3-dispatch";
    # homepage = https://github.com/krlanguet/i3-cycle-dispatch;
    maintainers = [ maintainers.teto ];

  };
}
