Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
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.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.flatten (builtins.attrValues 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 ];
|
|
};
|
|
}
|