Skip to content

Commit

Permalink
xonsh.xontribs.xontrib-whole-word-jumping: init at 0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Infinidoge committed Dec 10, 2024
1 parent c496c81 commit 9936e83
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/by-name/xo/xonsh/xontribs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
buildPythonPackage,
lib,
fetchFromGitHub,

pytestCheckHook,
xonsh,
}:

buildPythonPackage rec {
pname = "xontrib-whole-word-jumping";
version = "0.0.1";

src = fetchFromGitHub {
owner = "xonsh";
repo = "xontrib-whole-word-jumping";
rev = version;
hash = "sha256-zLAOGW9prjYDQBDITFNMggn4X1JTyAnVdjkBOH9gXPs=";
};

prePatch = ''
substituteInPlace pyproject.toml \
--replace '"xonsh>=0.12.5", ' ""
'';

preCheck = ''
export HOME=$TMPDIR
'';

checkInputs = [
pytestCheckHook
xonsh
];

meta = with lib; {
description = "Additional keyboard navigation for interactive xonsh shells";
homepage = "https://github.com/xonsh/xontrib-whole-word-jumping";
license = licenses.mit;
maintainers = [ maintainers.greg ];
};
}

0 comments on commit 9936e83

Please sign in to comment.