nixpkgs/pkgs/tools/llm/shell_gpt/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
927 B
Nix
Raw Normal View History

2023-03-20 19:53:59 +01:00
{ lib
, python3
, fetchPypi
2023-04-12 06:25:49 +02:00
, nix-update-script
2023-03-20 19:53:59 +01:00
}:
python3.pkgs.buildPythonApplication rec {
pname = "shell_gpt";
2023-07-23 10:18:22 +02:00
version = "0.9.4";
2023-04-30 18:11:24 +02:00
format = "pyproject";
2023-03-20 19:53:59 +01:00
src = fetchPypi {
2023-03-20 19:53:59 +01:00
inherit pname version;
2023-07-23 10:18:22 +02:00
sha256 = "sha256-R4rhATuM0VL/N5+dXf3r9bF2/AVEcQhB2J4KYnxdHbk=";
2023-03-20 19:53:59 +01:00
};
nativeBuildInputs = with python3.pkgs; [
python3.pkgs.pythonRelaxDepsHook
python3
pip
];
propagatedBuildInputs = with python3.pkgs; [
markdown-it-py
rich
distro
typer
requests
2023-04-30 18:11:24 +02:00
hatchling
2023-03-20 19:53:59 +01:00
];
pythonRelaxDeps = [ "requests" "rich" "distro" "typer" ];
2023-04-12 06:25:49 +02:00
passthru.updateScript = nix-update-script { };
2023-03-20 19:53:59 +01:00
doCheck = false;
meta = with lib; {
mainProgram = "sgpt";
homepage = "https://github.com/TheR1D/shell_gpt";
description = "Access ChatGPT from your terminal";
2023-03-30 18:07:01 +02:00
platforms = platforms.unix;
2023-03-20 19:53:59 +01:00
license = licenses.mit;
maintainers = with maintainers; [ mglolenstine ];
};
}