forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd38489
commit 138994c
Showing
12 changed files
with
412 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,47 @@ | ||
{ | ||
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-direnv = callPackage ./xontrib-direnv {}; | ||
|
||
xontrib-vox = callPackage ./xontrib-vox { }; | ||
xontrib-distributed = callPackage ./xontrib-distributed {}; | ||
|
||
xontrib-whole-word-jumping = callPackage ./xontrib-whole-word-jumping { }; | ||
xontrib-dot-dot = callPackage ./xontrib-dot-dot {}; | ||
|
||
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-starship = callPackage ./xontrib-starship {}; | ||
|
||
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 {}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
pkgs, | ||
python3, | ||
}: let | ||
pname = "xontrib-broot"; | ||
version = "0.2.1"; | ||
in | ||
python3.pkgs.buildPythonPackage { | ||
inherit pname version; | ||
|
||
src = pkgs.fetchFromGitHub { | ||
owner = "jnoortheen"; | ||
repo = "xontrib-broot"; | ||
rev = "6f658ff88aba27b921017297d8c2c3dfb2ffa332"; | ||
sha256 = "sha256-9GqsTVCMvrWpTopHtEdicTyYRQzP1NVtQHZsfBT+fUg="; | ||
}; | ||
|
||
doCheck = false; | ||
|
||
format = "pyproject"; | ||
|
||
build-system = with pkgs.python3Packages; [ | ||
setuptools | ||
pdm-pep517 | ||
poetry-core | ||
pkgs.xonsh | ||
]; | ||
|
||
postPatch = '' | ||
sed -ie "/xonsh.*=/d" pyproject.toml | ||
''; | ||
|
||
meta = { | ||
homepage = "https://github.com/jnoortheen/xontrib-broot"; | ||
license = pkgs.lib.licenses.mit; | ||
description = "[how-to use in nix](https://github.com/drmikecrowe/nur-packages) [broot](https://github.com/Canop/broot) support function for xonsh shell"; | ||
}; | ||
} |
34 changes: 34 additions & 0 deletions
34
pkgs/by-name/xo/xonsh/xontribs/xontrib-chatgpt/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
pkgs, | ||
python3, | ||
}: | ||
python3.pkgs.buildPythonPackage { | ||
pname = "xontrib-chatgpt"; | ||
version = "0.2.3"; | ||
src = pkgs.fetchFromGitHub { | ||
owner = "drmikecrowe"; | ||
repo = "xontrib-chatgpt"; | ||
rev = "a2f4957504188a415ed0679b1a527c15f630b97c"; | ||
sha256 = "sha256-liuG5m/9YdOxM8bSMv1J8aOI2F5Q4SKN5TGVOLEIXu4="; | ||
}; | ||
|
||
doCheck = false; | ||
|
||
nativeBuildInputs = with pkgs.python3Packages; [ | ||
setuptools | ||
wheel | ||
openai | ||
]; | ||
|
||
propagatedBuildInputs = [ | ||
pkgs.python3Packages.openai | ||
]; | ||
|
||
meta = { | ||
homepage = "https://github.com/jpal91/xontrib-chatgpt"; | ||
license = '' | ||
MIT License Copyright (c) 2023, Justin Pallansch Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
''; | ||
description = "[how-to use in nix](https://github.com/drmikecrowe/nur-packages) Gives the ability to use ChatGPT directly from the command line"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
pkgs, | ||
python3, | ||
}: | ||
python3.pkgs.buildPythonPackage { | ||
pname = "xontrib-clp"; | ||
version = "0.1.6"; | ||
src = pkgs.fetchFromGitHub { | ||
owner = "anki-code"; | ||
repo = "xontrib-clp"; | ||
rev = "bd5c2b4fb245ca17291aef51b92476b71a9a07c8"; | ||
sha256 = "sha256-2KrJgMw/M+rbMoAEqVaQ/1gAaBDsaPIcK3BpFtTgvRA="; | ||
}; | ||
|
||
doCheck = false; | ||
|
||
nativeBuildInputs = with pkgs.python3Packages; [ | ||
setuptools | ||
wheel | ||
]; | ||
|
||
meta = { | ||
homepage = "https://github.com/anki-code/xontrib-clp"; | ||
license = '' | ||
MIT License Copyright (c) 2023, anki-code Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
''; | ||
description = "[how-to use in nix](https://github.com/drmikecrowe/nur-packages) Copy output to clipboard. Cross-platform."; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
pkgs, | ||
python3, | ||
}: | ||
python3.pkgs.buildPythonPackage { | ||
pname = "xontrib-xonsh-direnv"; | ||
version = "1.6.1"; | ||
src = pkgs.fetchFromGitHub { | ||
owner = "74th"; | ||
repo = "xonsh-direnv"; | ||
rev = "3bea5847b9459c5799c64966ec85e624d0be69b9"; | ||
sha256 = "sha256-h56Gx/MMCW4L6nGwLAhBkiR7bX+qfFk80LEsJMiDtjQ="; | ||
}; | ||
propagatedBuildInputs = [pkgs.direnv]; | ||
meta = { | ||
homepage = "https://github.com/74th/xonsh-direnv"; | ||
license = pkgs.lib.licenses.mit; | ||
description = "[how-to use in nix](https://github.com/drmikecrowe/nur-packages) xonsh direnv"; | ||
}; | ||
} |
27 changes: 27 additions & 0 deletions
27
pkgs/by-name/xo/xonsh/xontribs/xontrib-dot-dot/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
pkgs, | ||
python3, | ||
}: | ||
python3.pkgs.buildPythonPackage { | ||
pname = "xontrib-dotdot"; | ||
version = "0.1.0"; | ||
src = pkgs.fetchFromGitHub { | ||
owner = "yggdr"; | ||
repo = "xontrib-dotdot"; | ||
rev = "9aa8821b401c0aba140be0d1f02652653f00c4e6"; | ||
sha256 = "sha256-7gcZcy8o86k3NYeomWd0yT9o/ZyaRJHtbuBhzOP50wQ="; | ||
}; | ||
|
||
doCheck = false; | ||
|
||
nativeBuildInputs = with pkgs.python3Packages; [ | ||
setuptools | ||
wheel | ||
]; | ||
|
||
meta = { | ||
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 = "[how-to use in nix](https://github.com/drmikecrowe/nur-packages) xonsh dot-dot xontrib"; | ||
}; | ||
} |
47 changes: 47 additions & 0 deletions
47
pkgs/by-name/xo/xonsh/xontribs/xontrib-gitinfo/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
pkgs, | ||
python3, | ||
}: let | ||
pname = "xontrib-gitinfo"; | ||
version = "0.1.0"; | ||
in | ||
python3.pkgs.buildPythonPackage { | ||
inherit pname version; | ||
|
||
src = pkgs.fetchFromGitHub { | ||
owner = "dyuri"; | ||
repo = "xontrib-gitinfo"; | ||
rev = "b1ba458d85a6684088807d962b39980144685630"; | ||
sha256 = "sha256-e5lgfcrG8p/3YgYNlnkfZIYj3VEjuNTRoseAl+Uyfd8="; | ||
}; | ||
|
||
doCheck = false; | ||
|
||
nativeBuildInputs = with pkgs; [ | ||
python3Packages.setuptools | ||
python3Packages.wheel | ||
]; | ||
|
||
patchPhase = '' | ||
echo "from setuptools import setup" > setup.py | ||
echo "setup(" >> setup.py | ||
echo " name='${pname}'," >> setup.py | ||
echo " packages=['xontrib']," >> setup.py | ||
echo " package_dir={'xontrib': 'xontrib'}," >> setup.py | ||
echo " package_data={'xontrib': ['*.xsh']}," >> setup.py | ||
echo " zip_safe=False" >> setup.py | ||
echo ")" >> setup.py | ||
''; | ||
|
||
dependencies = [ | ||
pkgs.onefetch | ||
]; | ||
|
||
meta = { | ||
homepage = "https://github.com/dyuri/xontrib-gitinfo"; | ||
license = '' | ||
MIT | ||
''; | ||
description = "[how-to use in nix](https://github.com/drmikecrowe/nur-packages) # xontrib-gitinfo"; | ||
}; | ||
} |
29 changes: 29 additions & 0 deletions
29
pkgs/by-name/xo/xonsh/xontribs/xontrib-prompt-starship/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
pkgs, | ||
python3, | ||
}: | ||
python3.pkgs.buildPythonPackage { | ||
pname = "xontrib-prompt-starship"; | ||
version = "0.3.6"; | ||
src = pkgs.fetchFromGitHub { | ||
owner = "anki-code"; | ||
repo = "xontrib-prompt-starship"; | ||
rev = "d7603433bdb858ef8e38580247f099ac82d2660c"; | ||
sha256 = "sha256-CLOvMa3L4XnH53H/k6/1W9URrPakPjbX1T1U43+eSR0="; | ||
}; | ||
|
||
doCheck = false; | ||
|
||
nativeBuildInputs = with pkgs.python3Packages; [ | ||
setuptools | ||
wheel | ||
]; | ||
|
||
meta = { | ||
homepage = "https://github.com/anki-code/xontrib-prompt-starship"; | ||
license = '' | ||
MIT | ||
''; | ||
description = "[how-to use in nix](https://github.com/drmikecrowe/nur-packages) Starship prompt in xonsh shell."; | ||
}; | ||
} |
45 changes: 45 additions & 0 deletions
45
pkgs/by-name/xo/xonsh/xontribs/xontrib-readable-traceback/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
pkgs, | ||
python3, | ||
}: let | ||
backtrace = python3.pkgs.buildPythonPackage rec { | ||
pname = "backtrace"; | ||
version = "0.2.1+"; | ||
src = pkgs.fetchFromGitHub { | ||
owner = "nir0s"; | ||
repo = "backtrace"; | ||
rev = "a1f75c956f669a6175088693802d5392e6bd7e51"; | ||
sha256 = "1i3xj04zxz9vi57gbkmnnyh9cypf3bm966ic685s162p1xhnz2qp"; | ||
}; | ||
meta = { | ||
homepage = "https://github.com/nir0s/backtrace"; | ||
license = pkgs.lib.licenses.asl20; | ||
description = "[how-to use in nix](https://github.com/drmikecrowe/nur-packages) Makes Python tracebacks human friendly"; | ||
}; | ||
prePatch = '' | ||
touch LICENSE | ||
''; | ||
propagatedBuildInputs = [pkgs.python3Packages.colorama]; | ||
buildInputs = [pkgs.python3Packages.pytest]; | ||
}; | ||
in | ||
python3.pkgs.buildPythonPackage rec { | ||
pname = "xontrib-readable-traceback"; | ||
version = "0.4.0"; | ||
src = pkgs.fetchFromGitHub { | ||
owner = "vaaaaanquish"; | ||
repo = "xontrib-readable-traceback"; | ||
rev = version; | ||
sha256 = "sha256-ek+GTWGUpm2b6lBw/7n4W46W2R0Gy6JxqWoLuQilCXQ="; | ||
}; | ||
meta = { | ||
homepage = "https://github.com/vaaaaanquish/xontrib-readable-traceback"; | ||
license = pkgs.lib.licenses.mit; | ||
description = "[how-to use in nix](https://github.com/drmikecrowe/nur-packages) Make traceback easier to see for xonsh."; | ||
}; | ||
propagatedBuildInputs = [backtrace]; | ||
prePatch = '' | ||
substituteInPlace xontrib/readable-traceback.xsh \ | ||
--replace 'sys.stderr.write(msg)' '__flush(msg)' | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
pkgs, | ||
python3, | ||
}: | ||
python3.pkgs.buildPythonPackage { | ||
pname = "xontrib-sh"; | ||
version = "0.3.1"; | ||
src = pkgs.fetchFromGitHub { | ||
owner = "anki-code"; | ||
repo = "xontrib-sh"; | ||
rev = "a8f54908d001336cf7580f36233aa8f00978b479"; | ||
sha256 = "sha256-KL/AxcsvjxqxvjDlf1axitgME3T+iyuW6OFb1foRzN8="; | ||
}; | ||
|
||
doCheck = false; | ||
|
||
nativeBuildInputs = with pkgs.python3Packages; [ | ||
setuptools | ||
wheel | ||
]; | ||
|
||
meta = { | ||
homepage = "https://github.com/anki-code/xontrib-sh"; | ||
license = '' | ||
BSD | ||
''; | ||
description = "[how-to use in nix](https://github.com/drmikecrowe/nur-packages) Paste and run commands from bash, fish, zsh, tcsh in [xonsh shell](https://xon.sh)."; | ||
}; | ||
} |
Oops, something went wrong.