
Diff: https://github.com/taketwo/llm-ollama/compare/0.12.0...0.13.0 Changelog: https://github.com/taketwo/llm-ollama/releases/tag/0.13.0
65 lines
1.1 KiB
Nix
65 lines
1.1 KiB
Nix
{
|
|
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 ];
|
|
};
|
|
}
|