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
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
llm,
|
|
llm-gemini,
|
|
httpx,
|
|
ijson,
|
|
pytestCheckHook,
|
|
pytest-recording,
|
|
pytest-asyncio,
|
|
nest-asyncio,
|
|
writableTmpDirAsHomeHook,
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "llm-gemini";
|
|
version = "0.26";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "simonw";
|
|
repo = "llm-gemini";
|
|
tag = version;
|
|
hash = "sha256-Blkes0d7pVpltP2Vj8ngFRpNYnb9Z/m6O6UByAjrdfw=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
httpx
|
|
ijson
|
|
llm
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-recording
|
|
pytest-asyncio
|
|
nest-asyncio
|
|
writableTmpDirAsHomeHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "llm_gemini" ];
|
|
|
|
passthru.tests = llm.mkPluginTest llm-gemini;
|
|
|
|
meta = {
|
|
description = "LLM plugin to access Google's Gemini family of models";
|
|
homepage = "https://github.com/simonw/llm-gemini";
|
|
changelog = "https://github.com/simonw/llm-gemini/releases/tag/${src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [
|
|
josh
|
|
philiptaron
|
|
];
|
|
};
|
|
}
|