63 lines
1.1 KiB
Nix
63 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
click,
|
|
deepmerge,
|
|
pyyaml,
|
|
rich,
|
|
pygments,
|
|
llm,
|
|
llm-git,
|
|
pytestCheckHook,
|
|
pytest-cov-stub,
|
|
pytest-asyncio,
|
|
pytest-httpx,
|
|
writableTmpDirAsHomeHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "llm-git";
|
|
version = "0.2.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "OttoAllmendinger";
|
|
repo = "llm-git";
|
|
tag = "v${version}";
|
|
hash = "sha256-LcIsJPQgZ4gj2t7sSa0Wu35WHWYyquZZTS/UxojH+XU=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
click
|
|
deepmerge
|
|
llm
|
|
pyyaml
|
|
rich
|
|
pygments
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-cov-stub
|
|
writableTmpDirAsHomeHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "llm_git" ];
|
|
|
|
passthru.tests = llm.mkPluginTest llm-git;
|
|
|
|
meta = {
|
|
description = "AI-powered Git commands for the LLM CLI tool";
|
|
homepage = "https://github.com/OttoAllmendinger/llm-git";
|
|
changelog = "https://github.com/OttoAllmendinger/llm-git/releases/tag/${version}/CHANGELOG.md";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ philiptaron ];
|
|
};
|
|
}
|