From 3ff97fdddeb531b3492294f5d320a07717bf7b4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 28 Jun 2026 21:22:48 -0700 Subject: [PATCH] python3Packages.python-jsonpath: use finalAttrs --- .../python-modules/python-jsonpath/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/python-jsonpath/default.nix b/pkgs/development/python-modules/python-jsonpath/default.nix index 688259fd6f46..b800f247eec1 100644 --- a/pkgs/development/python-modules/python-jsonpath/default.nix +++ b/pkgs/development/python-modules/python-jsonpath/default.nix @@ -7,7 +7,7 @@ regex, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "python-jsonpath"; version = "2.1.0"; pyproject = true; @@ -15,7 +15,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "jg-rp"; repo = "python-jsonpath"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; fetchSubmodules = true; hash = "sha256-2AV+X3Vs+pYi3Iv7zy9/nXna5PgrofHmrH0xyaumZWk="; }; @@ -34,13 +34,13 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ] - ++ optional-dependencies.strict; + ++ finalAttrs.passthru.optional-dependencies.strict; meta = { - changelog = "https://github.com/jg-rp/python-jsonpath/blob/${src.tag}/CHANGELOG.md"; + changelog = "https://github.com/jg-rp/python-jsonpath/blob/${finalAttrs.src.tag}/CHANGELOG.md"; description = "Flexible JSONPath engine for Python with JSON Pointer and JSON Patch"; homepage = "https://github.com/jg-rp/python-jsonpath"; license = lib.licenses.mit; maintainers = [ lib.maintainers.dotlambda ]; }; -} +})