blob: 506212e6f713f884011492e7afe1ebc34f55b8bf (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
llm,
llm-grok,
httpx,
httpx-sse,
rich,
pytestCheckHook,
pytest-httpx,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
pname = "llm-grok";
version = "1.4.1";
pyproject = true;
src = fetchFromGitHub {
owner = "Hiepler";
repo = "llm-grok";
tag = "v${version}";
hash = "sha256-wJ+RUnZlDruGGrsLVSOJFsgmtLlXKpzc2eYy1y19jwI=";
};
build-system = [ setuptools ];
dependencies = [
llm
httpx
httpx-sse
rich
];
nativeCheckInputs = [
pytestCheckHook
pytest-httpx
writableTmpDirAsHomeHook
];
pythonImportsCheck = [ "llm_grok" ];
passthru.tests = llm.mkPluginTest llm-grok;
meta = {
description = "LLM plugin providing access to Grok models using the xAI API";
homepage = "https://github.com/Hiepler/llm-grok";
changelog = "https://github.com/Hiepler/llm-grok/releases/tag/${src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ philiptaron ];
};
}
|