python3.pkgs.tabulate: use finalAttrs: pattern

This commit is contained in:
Doron Behar
2026-03-13 16:25:51 +02:00
parent 9fc8712b0b
commit e44e9a2b1f
@@ -8,13 +8,13 @@
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
version = "0.9.0";
pname = "tabulate";
pyproject = true;
src = fetchPypi {
inherit pname version;
inherit (finalAttrs) pname version;
hash = "sha256-AJWxK/WWbeUpwP6x+ghnFnGzNo7sd9fverEUviwGizw=";
};
@@ -30,7 +30,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytestCheckHook
]
++ lib.concatAttrValues optional-dependencies;
++ lib.concatAttrValues finalAttrs.finalPackage.optional-dependencies;
# Tests against stdlib behavior which changed in https://github.com/python/cpython/pull/139070
disabledTests = [
@@ -44,4 +44,4 @@ buildPythonPackage rec {
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ doronbehar ];
};
}
})