blob: b0b5cd1649de625367a4153b3e1e18599b6785fc (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
httpx,
httpx-sse,
llm,
llm-mistral,
pytestCheckHook,
pytest-asyncio,
pytest-httpx,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
pname = "llm-mistral";
version = "0.15";
pyproject = true;
src = fetchFromGitHub {
owner = "simonw";
repo = "llm-mistral";
tag = version;
hash = "sha256-4ajvsq0sm3/vdiHUuNxHsHKdX58VNNpHIwhWI0ws+08=";
};
build-system = [
setuptools
];
dependencies = [
httpx
httpx-sse
llm
];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
pytest-httpx
writableTmpDirAsHomeHook
];
pythonImportsCheck = [ "llm_mistral" ];
passthru.tests = llm.mkPluginTest llm-mistral;
meta = {
description = "LLM plugin providing access to Mistral models using the Mistral API";
homepage = "https://github.com/simonw/llm-mistral";
changelog = "https://github.com/simonw/llm-mistral/releases/tag/${src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ philiptaron ];
};
}
|