blob: ad447a01ade1ac42d23db0e1927929bd8129d20a (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
quickjs,
llm,
llm-tools-quickjs,
llm-echo,
pytestCheckHook,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
pname = "llm-tools-quickjs";
version = "0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "simonw";
repo = "llm-tools-quickjs";
tag = version;
hash = "sha256-Si3VcHnRUj8Q/N8pRhltPOM6K64TX9DBH/u4WQxQJjQ=";
};
build-system = [ setuptools ];
dependencies = [
llm
quickjs
];
nativeCheckInputs = [
llm-echo
pytestCheckHook
writableTmpDirAsHomeHook
];
pythonImportsCheck = [ "llm_tools_quickjs" ];
passthru.tests = llm.mkPluginTest llm-tools-quickjs;
meta = {
description = "JavaScript execution as a tool for LLM";
homepage = "https://github.com/simonw/llm-tools-quickjs";
changelog = "https://github.com/simonw/llm-tools-quickjs/releases/tag/${version}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ philiptaron ];
};
}
|