Files
nixpkgs/pkgs/by-name/gp/gpt-cli/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

65 lines
1.2 KiB
Nix

{
lib,
python3Packages,
fetchFromGitHub,
versionCheckHook,
}:
python3Packages.buildPythonApplication rec {
pname = "gpt-cli";
version = "0.4.3";
pyproject = true;
src = fetchFromGitHub {
owner = "kharvd";
repo = "gpt-cli";
tag = "v${version}";
hash = "sha256-BNSMxf3rhKieXYnFqVdpiHmNCDjotJUflwa6mAgsVCc=";
};
build-system = with python3Packages; [
pip
setuptools
];
pythonRelaxDeps = true;
dependencies = with python3Packages; [
anthropic
attrs
black
cohere
google-genai
google-generativeai
openai
prompt-toolkit
pydantic
pytest
pyyaml
rich
typing-extensions
];
nativeCheckInputs =
with python3Packages;
[
pytestCheckHook
]
++ [
versionCheckHook
];
versionCheckProgram = "${placeholder "out"}/bin/gpt";
versionCheckProgramArg = "--version";
meta = {
description = "Command-line interface for ChatGPT, Claude and Bard";
homepage = "https://github.com/kharvd/gpt-cli";
changelog = "https://github.com/kharvd/gpt-cli/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ _404wolf ];
mainProgram = "gpt";
};
}