Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859{ lib, buildPythonPackage, fetchFromGitHub, setuptools, llm, llm-gemini, httpx, ijson, pytestCheckHook, pytest-recording, pytest-asyncio, nest-asyncio, writableTmpDirAsHomeHook,}:buildPythonPackage rec { pname = "llm-gemini"; version = "0.32"; pyproject = true;
src = fetchFromGitHub { owner = "simonw"; repo = "llm-gemini"; tag = version; hash = "sha256-h8aZvkZNDj7Vcc1HZ7mHVYk99Upoeazp0ET6yeRiySo="; };
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 ]; };}