1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 llm,
7 llm-venice,
8}:
9
10buildPythonPackage rec {
11 pname = "llm-venice";
12 version = "0.8.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "ar-jan";
17 repo = "llm-venice";
18 tag = version;
19 hash = "sha256-jvZWMEJAWlX2y2Mivi8Kib5tbMtf+CXYP6fmLvNmD9k=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [ llm ];
25
26 # Reaches out to the real API
27 doCheck = false;
28
29 pythonImportsCheck = [ "llm_venice" ];
30
31 passthru.tests = llm.mkPluginTest llm-venice;
32
33 meta = {
34 description = "LLM plugin to access models available via the Venice API";
35 homepage = "https://github.com/ar-jan/llm-venice";
36 changelog = "https://github.com/ar-jan/llm-venice/releases/tag/${version}/CHANGELOG.md";
37 license = lib.licenses.asl20;
38 maintainers = with lib.maintainers; [ philiptaron ];
39 };
40}