From e44e9a2b1f33d7d207633a10babad8be356f8171 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Sun, 8 Mar 2026 19:45:12 +0200 Subject: [PATCH] python3.pkgs.tabulate: use finalAttrs: pattern --- pkgs/development/python-modules/tabulate/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/tabulate/default.nix b/pkgs/development/python-modules/tabulate/default.nix index e1b7c4c17aa3..f078cbc7329c 100644 --- a/pkgs/development/python-modules/tabulate/default.nix +++ b/pkgs/development/python-modules/tabulate/default.nix @@ -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 ]; }; -} +})