at 25.11-pre 1.3 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 cacert, 5 deprecated, 6 eval-type-backport, 7 fetchFromGitHub, 8 griffe, 9 hatchling, 10 jinja2, 11 litellm, 12 platformdirs, 13 pydantic, 14 pytest-asyncio, 15 pytestCheckHook, 16 redis, 17}: 18 19buildPythonPackage rec { 20 pname = "banks"; 21 version = "2.1.2"; 22 pyproject = true; 23 24 src = fetchFromGitHub { 25 owner = "masci"; 26 repo = "banks"; 27 tag = "v${version}"; 28 hash = "sha256-lOlNYIBMa3G06t5KfRWNd/d8aXjxnWp11n8Kw7Ydy+Y="; 29 }; 30 31 SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt"; 32 33 build-system = [ hatchling ]; 34 35 dependencies = [ 36 deprecated 37 eval-type-backport 38 griffe 39 jinja2 40 platformdirs 41 pydantic 42 ]; 43 44 optional-dependencies = { 45 all = [ 46 litellm 47 redis 48 ]; 49 }; 50 51 nativeCheckInputs = [ 52 pytest-asyncio 53 pytestCheckHook 54 ] ++ lib.flatten (builtins.attrValues optional-dependencies); 55 56 pythonImportsCheck = [ "banks" ]; 57 58 meta = { 59 description = "Module that provides tools and functions to build prompts text and chat messages from generic blueprints"; 60 homepage = "https://github.com/masci/banks"; 61 changelog = "https://github.com/masci/banks/releases/tag/${src.tag}"; 62 license = lib.licenses.mit; 63 maintainers = with lib.maintainers; [ fab ]; 64 }; 65}