Philip Taron 42fa505cf7 python3Packages.llm-*: use llm in the dependencies
There's no circular dependency problems anymore.
2025-05-31 20:52:40 -07:00

60 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
llm,
# dependencies
prompt-toolkit,
pygments,
# tests
pytestCheckHook,
llm-cmd,
}:
buildPythonPackage rec {
pname = "llm-cmd";
version = "0.2a0";
pyproject = true;
src = fetchFromGitHub {
owner = "simonw";
repo = "llm-cmd";
tag = version;
hash = "sha256-RhwQEllpee/XP1p0nrgL4m+KjSZzf61J8l1jJGlg94E=";
};
# Only needed until https://github.com/simonw/llm-cmd/pull/18 is merged and released
patches = [ ./fix-test.patch ];
build-system = [ setuptools ];
dependencies = [
llm
prompt-toolkit
pygments
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"llm_cmd"
];
passthru.tests = llm.mkPluginTest llm-cmd;
meta = {
description = "Use LLM to generate and execute commands in your shell";
homepage = "https://github.com/simonw/llm-cmd";
changelog = "https://github.com/simonw/llm-cmd/releases/tag/${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
erethon
philiptaron
];
};
}