blob: 94a6877f1b37c7b4c66d4261b0e3caa56b684bdc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
llm,
llm-openrouter,
httpx,
openai,
pytestCheckHook,
inline-snapshot,
pytest-recording,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
pname = "llm-openrouter";
version = "0.5";
pyproject = true;
src = fetchFromGitHub {
owner = "simonw";
repo = "llm-openrouter";
tag = version;
hash = "sha256-lofijdGKkQRQa2Hle4puIBOj+I28hGdKRILeQZOLkz4=";
};
build-system = [
setuptools
];
dependencies = [
httpx
llm
openai
];
nativeCheckInputs = [
pytestCheckHook
inline-snapshot
pytest-recording
writableTmpDirAsHomeHook
];
pythonImportsCheck = [ "llm_openrouter" ];
passthru.tests = llm.mkPluginTest llm-openrouter;
meta = {
description = "LLM plugin for models hosted by OpenRouter";
homepage = "https://github.com/simonw/llm-openrouter";
changelog = "https://github.com/simonw/llm-openrouter/releases/tag/${version}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
arcuru
philiptaron
];
};
}
|