Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 55 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556{ lib, buildPythonPackage, fetchFromGitHub, setuptools, llm, llm-gemini, httpx, ijson, pytestCheckHook, pytest-recording, pytest-asyncio, nest-asyncio, writableTmpDirAsHomeHook,}:buildPythonPackage rec { pname = "llm-gemini"; version = "0.24"; pyproject = true;
src = fetchFromGitHub { owner = "simonw"; repo = "llm-gemini"; tag = version; hash = "sha256-pMPAfRhcvKoxvtbkmtT3L7EvBg9WsNVOP6wFjbyqncw="; };
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 ]; };}