Files
nixpkgs/pkgs/by-name/sh/shell-gpt/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

58 lines
1.0 KiB
Nix

{
lib,
fetchFromGitHub,
python3,
}:
python3.pkgs.buildPythonApplication rec {
pname = "shell-gpt";
version = "1.4.5";
pyproject = true;
src = fetchFromGitHub {
owner = "TheR1D";
repo = "shell_gpt";
tag = version;
hash = "sha256-e0zKlbt508psiV1ryuE/JV0rWM/XZDhMChqReGHefig=";
};
pythonRelaxDeps = [
"requests"
"rich"
"distro"
"typer"
"instructor"
"jinja2"
];
build-system = with python3.pkgs; [ hatchling ];
propagatedBuildInputs = with python3.pkgs; [
jinja2
requests
click
distro
instructor
litellm
openai
rich
typer
];
buildInputs = with python3.pkgs; [
litellm
];
# Tests want to read the OpenAI API key from stdin
doCheck = false;
meta = {
description = "Access ChatGPT from your terminal";
homepage = "https://github.com/TheR1D/shell_gpt";
changelog = "https://github.com/TheR1D/shell_gpt/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ SohamG ];
mainProgram = "sgpt";
};
}