python3Packages.json5: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-08-10 19:46:48 +02:00
parent 0ee5d59d1f
commit 64bf2cc093

View File

@@ -6,7 +6,7 @@
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "json5";
version = "0.15.0";
pyproject = true;
@@ -14,7 +14,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "dpranke";
repo = "pyjson5";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-/Y8/IA3j5CJutqMM5fI/bWZrxOHWsEdYfuvWPTjFAJk=";
};
@@ -27,9 +27,9 @@ buildPythonPackage rec {
meta = {
description = "Python implementation of the JSON5 data format";
homepage = "https://github.com/dpranke/pyjson5";
changelog = "https://github.com/dpranke/pyjson5/releases/tag/${src.tag}";
changelog = "https://github.com/dpranke/pyjson5/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ veehaitch ];
mainProgram = "pyjson5";
};
}
})