Something went wrong. Try again.
lol
Something went wrong. Try again.
1.4 kB · 68 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869{ lib, buildPythonPackage, cacert, deprecated, eval-type-backport, fetchFromGitHub, filetype, griffe, hatchling, jinja2, litellm, platformdirs, pydantic, pytest-asyncio, pytestCheckHook, redis,}:
buildPythonPackage (finalAttrs: { pname = "banks"; version = "2.4.1"; pyproject = true;
src = fetchFromGitHub { owner = "masci"; repo = "banks"; tag = "v${finalAttrs.version}"; hash = "sha256-wa3refEIYQIPmtl8NGtoyg2PTY3zQt6R4EgXUbcUgrk="; };
env.SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
build-system = [ hatchling ];
dependencies = [ deprecated eval-type-backport filetype griffe jinja2 platformdirs pydantic ];
optional-dependencies = { all = [ litellm redis ]; };
nativeCheckInputs = [ pytest-asyncio pytestCheckHook ] ++ lib.flatten (builtins.attrValues finalAttrs.passthru.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/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; };})