1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 llm,
7 llm-groq,
8 groq,
9}:
10
11buildPythonPackage rec {
12 pname = "llm-groq";
13 version = "0.9";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "angerman";
18 repo = "llm-groq";
19 tag = "v${version}";
20 hash = "sha256-9obDB5xz/YFKdnqM/70SC4Ud1t62AsGzAkbGsZTL5Nc=";
21 };
22
23 build-system = [
24 setuptools
25 ];
26
27 dependencies = [
28 groq
29 llm
30 ];
31
32 pythonImportsCheck = [ "llm_groq" ];
33
34 passthru.tests = llm.mkPluginTest llm-groq;
35
36 meta = {
37 description = "LLM plugin providing access to Groqcloud models.";
38 homepage = "https://github.com/angerman/llm-groq";
39 changelog = "https://github.com/angerman/llm-groq/releases/tag/${src.tag}/CHANGELOG.md";
40 license = lib.licenses.asl20;
41 maintainers = with lib.maintainers; [ philiptaron ];
42 };
43}