diff --git a/pkgs/development/python-modules/banks/default.nix b/pkgs/development/python-modules/banks/default.nix index 213b90d4e75d..d4feaeaaf940 100644 --- a/pkgs/development/python-modules/banks/default.nix +++ b/pkgs/development/python-modules/banks/default.nix @@ -5,6 +5,7 @@ deprecated, eval-type-backport, fetchFromGitHub, + filetype, griffe, hatchling, jinja2, @@ -16,16 +17,16 @@ redis, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "banks"; - version = "2.3.0"; + version = "2.4.0"; pyproject = true; src = fetchFromGitHub { owner = "masci"; repo = "banks"; - tag = "v${version}"; - hash = "sha256-6+BQS9srj2VT2XcGe9g5Ios6g/vk3GcOXgCWEKq6YHI="; + tag = "v${finalAttrs.version}"; + hash = "sha256-rIN90R/olhBvOUlgh9KUV/1MxO814g561gTJam98Ny0="; }; SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt"; @@ -35,6 +36,7 @@ buildPythonPackage rec { dependencies = [ deprecated eval-type-backport + filetype griffe jinja2 platformdirs @@ -52,15 +54,15 @@ buildPythonPackage rec { pytest-asyncio pytestCheckHook ] - ++ lib.concatAttrValues optional-dependencies; + ++ 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/${src.tag}"; + changelog = "https://github.com/masci/banks/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})