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
57
58
59
60
61
62
63
64
65
66
|
{
lib,
buildPythonPackage,
cacert,
deprecated,
eval-type-backport,
fetchFromGitHub,
griffe,
hatchling,
jinja2,
litellm,
platformdirs,
pydantic,
pytest-asyncio,
pytestCheckHook,
redis,
}:
buildPythonPackage rec {
pname = "banks";
version = "2.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "masci";
repo = "banks";
tag = "v${version}";
hash = "sha256-lzU1SwgZ7EKCmpDtCp4jKDBIdZVB+S1s/Oh3GfZCmtg=";
};
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
build-system = [ hatchling ];
dependencies = [
deprecated
eval-type-backport
griffe
jinja2
platformdirs
pydantic
];
optional-dependencies = {
all = [
litellm
redis
];
};
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
]
++ lib.concatAttrValues optional-dependencies;
pythonImportsCheck = [ "banks" ];
meta = {
description = "Module that provides tools and functions to build prompts text and chat messages from generic blueprints";
homepage = "https://github.com/masci/banks";
changelog = "https://github.com/masci/banks/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|