diff options
author | MGlolenstine <mglolenstine@gmail.com> | 2023-07-23 10:18:22 +0200 |
---|---|---|
committer | Yt <happysalada@tuta.io> | 2023-07-23 09:20:28 +0000 |
commit | ce4c7d5880679e89cd773fa741a5c8f84de76331 (patch) | |
tree | 754bd99e39aff8cc238631d0da91b04d9b6e7f2d /pkgs/tools/llm | |
parent | fdca81888a2ec6a5f7cac8332484c5b78b748c3c (diff) | |
download | nixlib-ce4c7d5880679e89cd773fa741a5c8f84de76331.tar nixlib-ce4c7d5880679e89cd773fa741a5c8f84de76331.tar.gz nixlib-ce4c7d5880679e89cd773fa741a5c8f84de76331.tar.bz2 nixlib-ce4c7d5880679e89cd773fa741a5c8f84de76331.tar.lz nixlib-ce4c7d5880679e89cd773fa741a5c8f84de76331.tar.xz nixlib-ce4c7d5880679e89cd773fa741a5c8f84de76331.tar.zst nixlib-ce4c7d5880679e89cd773fa741a5c8f84de76331.zip |
shell_gpt: 0.9.3 -> 0.9.4
Diffstat (limited to 'pkgs/tools/llm')
-rw-r--r-- | pkgs/tools/llm/shell_gpt/default.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/tools/llm/shell_gpt/default.nix b/pkgs/tools/llm/shell_gpt/default.nix new file mode 100644 index 000000000000..eca521ba5769 --- /dev/null +++ b/pkgs/tools/llm/shell_gpt/default.nix @@ -0,0 +1,46 @@ +{ lib +, python3 +, fetchPypi +, nix-update-script +}: + +python3.pkgs.buildPythonApplication rec { + pname = "shell_gpt"; + version = "0.9.4"; + format = "pyproject"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-R4rhATuM0VL/N5+dXf3r9bF2/AVEcQhB2J4KYnxdHbk="; + }; + + nativeBuildInputs = with python3.pkgs; [ + python3.pkgs.pythonRelaxDepsHook + python3 + pip + ]; + + propagatedBuildInputs = with python3.pkgs; [ + markdown-it-py + rich + distro + typer + requests + hatchling + ]; + + pythonRelaxDeps = [ "requests" "rich" "distro" "typer" ]; + + passthru.updateScript = nix-update-script { }; + + doCheck = false; + + meta = with lib; { + mainProgram = "sgpt"; + homepage = "https://github.com/TheR1D/shell_gpt"; + description = "Access ChatGPT from your terminal"; + platforms = platforms.unix; + license = licenses.mit; + maintainers = with maintainers; [ mglolenstine ]; + }; +} |