python3Packages.python-jsonpath: use finalAttrs

This commit is contained in:
Robert Schütz
2026-06-28 21:22:48 -07:00
parent 5660de0ab1
commit 3ff97fddde
@@ -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 ];
};
}
})