Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xonsh.xontribs.xontrib-*: init at various #1

Open
wants to merge 6 commits into
base: add_xontrib_pkgs
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,082 changes: 545 additions & 537 deletions maintainers/maintainer-list.nix

Large diffs are not rendered by default.

45 changes: 31 additions & 14 deletions pkgs/by-name/xo/xonsh/xontribs/default.nix
Original file line number Diff line number Diff line change
@@ -1,26 +1,43 @@
{
python3,
}:
let
{python3}: let
callPackage = python3.pkgs.callPackage;
in {
xonsh-direnv = callPackage ./xonsh-direnv { };
xonsh-direnv = callPackage ./xonsh-direnv {};

xontrib-abbrevs = callPackage ./xontrib-abbrevs { };
xontrib-abbrevs = callPackage ./xontrib-abbrevs {};

xontrib-bashisms = callPackage ./xontrib-bashisms { };
xontrib-bashisms = callPackage ./xontrib-bashisms {};

xontrib-debug-tools = callPackage ./xontrib-debug-tools { };
xontrib-broot = callPackage ./xontrib-broot {};

xontrib-distributed = callPackage ./xontrib-distributed { };
xontrib-chatgpt = callPackage ./xontrib-chatgpt {};

xontrib-fish-completer = callPackage ./xontrib-fish-completer { };
xontrib-clp = callPackage ./xontrib-clp {};

xontrib-jedi = callPackage ./xontrib-jedi { };
xontrib-debug-tools = callPackage ./xontrib-debug-tools {};

xontrib-jupyter = callPackage ./xontrib-jupyter { };
xontrib-distributed = callPackage ./xontrib-distributed {};

xontrib-vox = callPackage ./xontrib-vox { };
xontrib-dot-dot = callPackage ./xontrib-dot-dot {};

xontrib-whole-word-jumping = callPackage ./xontrib-whole-word-jumping { };
xontrib-fish-completer = callPackage ./xontrib-fish-completer {};

xontrib-gitinfo = callPackage ./xontrib-gitinfo {};

xontrib-jedi = callPackage ./xontrib-jedi {};

xontrib-jupyter = callPackage ./xontrib-jupyter {};

xontrib-prompt-starship = callPackage ./xontrib-prompt-starship {};

xontrib-readable-traceback = callPackage ./xontrib-readable-traceback {};

xontrib-sh = callPackage ./xontrib-sh {};

xontrib-term-integrations = callPackage ./xontrib-term-integrations {};

xontrib-vox = callPackage ./xontrib-vox {};

xontrib-whole-word-jumping = callPackage ./xontrib-whole-word-jumping {};

xontrib-zoxide = callPackage ./xontrib-zoxide {};
}
8 changes: 3 additions & 5 deletions pkgs/by-name/xo/xonsh/xontribs/xontrib-abbrevs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@
buildPythonPackage,
lib,
fetchFromGitHub,

setuptools,
poetry-core,
prompt-toolkit,
pytestCheckHook,
xonsh
xonsh,
}:

buildPythonPackage rec {
pname = "xontrib-abbrevs";
version = "0.0.1";
Expand Down Expand Up @@ -46,9 +44,9 @@ buildPythonPackage rec {
];

meta = with lib; {
description = "Command abbreviations. This expands input words as you type.";
description = "Command abbreviations. This expands input words as you type in the [xonsh shell](https://xon.sh).";
homepage = "https://github.com/xonsh/xontrib-abbrevs";
license = licenses.mit;
maintainers = [ maintainers.greg ];
maintainers = [maintainers.greg];
};
}
40 changes: 40 additions & 0 deletions pkgs/by-name/xo/xonsh/xontribs/xontrib-broot/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
setuptools,
pdm-pep517,
}:
buildPythonPackage rec {
pname = "xontrib-broot";
version = "0.2.1";

src = fetchFromGitHub {
owner = "jnoortheen";
repo = "xontrib-broot";
rev = "6f658ff88aba27b921017297d8c2c3dfb2ffa332";
sha256 = "sha256-9GqsTVCMvrWpTopHtEdicTyYRQzP1NVtQHZsfBT+fUg=";
};

doCheck = false;

format = "pyproject";

build-system = [
setuptools
pdm-pep517
poetry-core
];

postPatch = ''
sed -ie "/xonsh.*=/d" pyproject.toml
'';

meta = with lib; {
description = "[broot](https://github.com/Canop/broot) support function in the [xonsh shell](https://xon.sh).";
homepage = "https://github.com/jnoortheen/xontrib-broot";
license = licenses.mit;
maintainers = [maintainers.drmikecrowe];
};
}
37 changes: 37 additions & 0 deletions pkgs/by-name/xo/xonsh/xontribs/xontrib-chatgpt/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
buildPythonPackage,
lib,
fetchFromGitHub,
openai,
setuptools,
wheel,
}:
buildPythonPackage rec {
pname = "xontrib-chatgpt";
version = "0.2.3";
src = fetchFromGitHub {
owner = "drmikecrowe";
repo = "xontrib-chatgpt";
rev = "a2f4957504188a415ed0679b1a527c15f630b97c";
sha256 = "sha256-liuG5m/9YdOxM8bSMv1J8aOI2F5Q4SKN5TGVOLEIXu4=";
};

doCheck = false;

nativeBuildInputs = [
setuptools
wheel
openai
];

propagatedBuildInputs = [
openai
];

meta = with lib; {
homepage = "https://github.com/drmikecrowe/xontrib-chatgpt";
description = "Gives the ability to use ChatGPT directly from the command line in the [xonsh shell](https://xon.sh).";
license = licenses.mit;
maintainers = [maintainers.drmikecrowe];
};
}
31 changes: 31 additions & 0 deletions pkgs/by-name/xo/xonsh/xontribs/xontrib-clp/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
buildPythonPackage,
lib,
fetchFromGitHub,
setuptools,
wheel,
}:
buildPythonPackage {
pname = "xontrib-clp";
version = "0.1.6";
src = fetchFromGitHub {
owner = "anki-code";
repo = "xontrib-clp";
rev = "bd5c2b4fb245ca17291aef51b92476b71a9a07c8";
sha256 = "sha256-2KrJgMw/M+rbMoAEqVaQ/1gAaBDsaPIcK3BpFtTgvRA=";
};

doCheck = false;

nativeBuildInputs = [
setuptools
wheel
];

meta = with lib; {
homepage = "https://github.com/anki-code/xontrib-clp";
description = "Copy output to clipboard (cross-platform) in the [xonsh shell](https://xon.sh).";
license = licenses.mit;
maintainers = [maintainers.drmikecrowe];
};
}
31 changes: 31 additions & 0 deletions pkgs/by-name/xo/xonsh/xontribs/xontrib-dot-dot/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
buildPythonPackage,
fetchFromGitHub,
setuptools,
wheel,
lib,
}:
buildPythonPackage {
pname = "xontrib-dotdot";
version = "0.1.0";
src = fetchFromGitHub {
owner = "yggdr";
repo = "xontrib-dotdot";
rev = "9aa8821b401c0aba140be0d1f02652653f00c4e6";
sha256 = "sha256-7gcZcy8o86k3NYeomWd0yT9o/ZyaRJHtbuBhzOP50wQ=";
};

doCheck = false;

nativeBuildInputs = [
setuptools
wheel
];

meta = with lib; {
homepage = "https://github.com/yggdr/xontrib-dotdot";
license = "Copyright (c) 2024, Konstantin Schukraft Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ";
description = "Better aliases['..'] = 'cd ..' in the [xonsh shell](https://xon.sh).";
maintainers = [maintainers.drmikecrowe];
};
}
56 changes: 56 additions & 0 deletions pkgs/by-name/xo/xonsh/xontribs/xontrib-gitinfo/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
lib,
onefetch,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pdm-pep517,
poetry-core,
wheel,
}: let
pname = "xontrib-gitinfo";
version = "0.1.0";
in
buildPythonPackage {
inherit pname version;

src = fetchFromGitHub {
owner = "dyuri";
repo = "xontrib-gitinfo";
rev = "b1ba458d85a6684088807d962b39980144685630";
sha256 = "sha256-e5lgfcrG8p/3YgYNlnkfZIYj3VEjuNTRoseAl+Uyfd8=";
};

doCheck = false;

nativeBuildInputs = [
setuptools
wheel
];

format = "pyproject";

build-system = [
setuptools
pdm-pep517
poetry-core
];

postPatch = ''
substituteInPlace pyproject.toml \
--replace poetry.masonry.api poetry.core.masonry.api \
--replace "poetry>=" "poetry-core>="
touch xontrib/__init__.py
'';

dependencies = [
onefetch
];

meta = with lib; {
homepage = "https://github.com/dyuri/xontrib-gitinfo";
license = licenses.mit;
maintainers = [maintainers.drmikecrowe];
description = "Displays git information on entering a repository folder in the [xonsh shell](https://xon.sh).";
};
}
31 changes: 31 additions & 0 deletions pkgs/by-name/xo/xonsh/xontribs/xontrib-prompt-starship/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
buildPythonPackage,
fetchFromGitHub,
setuptools,
wheel,
lib,
}:
buildPythonPackage {
pname = "xontrib-prompt-starship";
version = "0.3.6";
src = fetchFromGitHub {
owner = "anki-code";
repo = "xontrib-prompt-starship";
rev = "d7603433bdb858ef8e38580247f099ac82d2660c";
sha256 = "sha256-CLOvMa3L4XnH53H/k6/1W9URrPakPjbX1T1U43+eSR0=";
};

doCheck = false;

nativeBuildInputs = [
setuptools
wheel
];

meta = with lib; {
homepage = "https://github.com/anki-code/xontrib-prompt-starship";
license = licenses.mit;
maintainers = [maintainers.drmikecrowe];
description = "Starship prompt in the [xonsh shell](https://xon.sh).";
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
buildPythonPackage,
fetchFromGitHub,
backtrace,
lib,
}:
buildPythonPackage rec {
pname = "xontrib-readable-traceback";
version = "0.4.0";
src = fetchFromGitHub {
owner = "vaaaaanquish";
repo = "xontrib-readable-traceback";
rev = version;
sha256 = "sha256-ek+GTWGUpm2b6lBw/7n4W46W2R0Gy6JxqWoLuQilCXQ=";
};

propagatedBuildInputs = [backtrace];
prePatch = ''
substituteInPlace xontrib/readable-traceback.xsh \
--replace 'sys.stderr.write(msg)' '__flush(msg)'
'';

meta = with lib; {
homepage = "https://github.com/vaaaaanquish/xontrib-readable-traceback";
license = licenses.mit;
maintainers = [maintainers.drmikecrowe];
description = "Make traceback easier to see for the [xonsh shell](https://xon.sh)..";
};
}
31 changes: 31 additions & 0 deletions pkgs/by-name/xo/xonsh/xontribs/xontrib-sh/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
buildPythonPackage,
fetchFromGitHub,
setuptools,
wheel,
lib,
}:
buildPythonPackage {
pname = "xontrib-sh";
version = "0.3.1";
src = fetchFromGitHub {
owner = "anki-code";
repo = "xontrib-sh";
rev = "a8f54908d001336cf7580f36233aa8f00978b479";
sha256 = "sha256-KL/AxcsvjxqxvjDlf1axitgME3T+iyuW6OFb1foRzN8=";
};

doCheck = false;

nativeBuildInputs = [
setuptools
wheel
];

meta = with lib; {
homepage = "https://github.com/anki-code/xontrib-sh";
license = licenses.mit;
maintainers = [maintainers.drmikecrowe];
description = "Paste and run commands from bash, fish, zsh, tcsh in the [xonsh shell](https://xon.sh).";
};
}
Loading