python313Packages.banks: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-02-08 21:42:17 +01:00
parent 0cfa328921
commit 63d3c57cf3
@@ -17,7 +17,7 @@
redis,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "banks";
version = "2.4.0";
pyproject = true;
@@ -25,7 +25,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "masci";
repo = "banks";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-rIN90R/olhBvOUlgh9KUV/1MxO814g561gTJam98Ny0=";
};
@@ -54,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 ];
};
}
})