67 lines
1.2 KiB
Nix
67 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cacert,
|
|
deprecated,
|
|
eval-type-backport,
|
|
fetchFromGitHub,
|
|
griffe,
|
|
hatchling,
|
|
jinja2,
|
|
litellm,
|
|
platformdirs,
|
|
pydantic,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
redis,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "banks";
|
|
version = "2.3.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "masci";
|
|
repo = "banks";
|
|
tag = "v${version}";
|
|
hash = "sha256-6+BQS9srj2VT2XcGe9g5Ios6g/vk3GcOXgCWEKq6YHI=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|