From 11736d1cf5aeb785f1536eab521035aefea26644 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Tue, 12 Nov 2024 09:33:54 -0500 Subject: [PATCH] xonsh.xontribs.xontrib-whole-word-jumping: init at 0.0.1 --- pkgs/by-name/xo/xonsh/xontribs/default.nix | 1 + .../xontrib-whole-word-jumping/default.nix | 47 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 pkgs/by-name/xo/xonsh/xontribs/xontrib-whole-word-jumping/default.nix diff --git a/pkgs/by-name/xo/xonsh/xontribs/default.nix b/pkgs/by-name/xo/xonsh/xontribs/default.nix index e0832f238d690..bcc0463483e0a 100644 --- a/pkgs/by-name/xo/xonsh/xontribs/default.nix +++ b/pkgs/by-name/xo/xonsh/xontribs/default.nix @@ -14,4 +14,5 @@ in xontrib-jedi = callPackage ./xontrib-jedi { }; xontrib-jupyter = callPackage ./xontrib-jupyter { }; xontrib-vox = callPackage ./xontrib-vox { }; + xontrib-whole-word-jumping = callPackage ./xontrib-whole-word-jumping { }; } diff --git a/pkgs/by-name/xo/xonsh/xontribs/xontrib-whole-word-jumping/default.nix b/pkgs/by-name/xo/xonsh/xontribs/xontrib-whole-word-jumping/default.nix new file mode 100644 index 0000000000000..d59113bab4f2c --- /dev/null +++ b/pkgs/by-name/xo/xonsh/xontribs/xontrib-whole-word-jumping/default.nix @@ -0,0 +1,47 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + + setuptools, + pytestCheckHook, + xonsh, +}: + +buildPythonPackage rec { + pname = "xontrib-whole-word-jumping"; + version = "0.0.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "xonsh"; + repo = "xontrib-whole-word-jumping"; + tag = version; + hash = "sha256-zLAOGW9prjYDQBDITFNMggn4X1JTyAnVdjkBOH9gXPs="; + }; + + prePatch = '' + substituteInPlace pyproject.toml \ + --replace-fail '"xonsh>=0.12.5", ' "" + ''; + + build-system = [ + setuptools + ]; + + preCheck = '' + export HOME=$(mktemp -d) + ''; + + nativeCheckInputs = [ + pytestCheckHook + xonsh + ]; + + meta = { + description = "Additional keyboard navigation for interactive xonsh shells"; + homepage = "https://github.com/xonsh/xontrib-whole-word-jumping"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ greg ]; + }; +}