Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 64 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465{ lib, buildPythonPackage, fetchFromGitHub,
# build-system setuptools, llm,
# dependencies click, ollama, pydantic,
# tests pytestCheckHook, pytest-asyncio, pytest-mock, writableTmpDirAsHomeHook, llm-ollama,}:
buildPythonPackage rec { pname = "llm-ollama"; version = "0.13.0"; pyproject = true;
src = fetchFromGitHub { owner = "taketwo"; repo = "llm-ollama"; tag = version; hash = "sha256-mWiwUXLpyILH1CCi2b0D3TtInEIfK4dubho9EEkbJ0M="; };
build-system = [ setuptools ];
dependencies = [ click llm ollama pydantic ];
nativeCheckInputs = [ pytestCheckHook pytest-asyncio pytest-mock writableTmpDirAsHomeHook ];
pythonImportsCheck = [ "llm_ollama" ];
passthru.tests = llm.mkPluginTest llm-ollama;
meta = { description = "LLM plugin providing access to Ollama models using HTTP API"; homepage = "https://github.com/taketwo/llm-ollama"; changelog = "https://github.com/taketwo/llm-ollama/releases/tag/${version}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ erethon ]; };}