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

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

44 lines
890 B
Nix
Raw Normal View History

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