python3Packages.mistune: use finalAttrs

This commit is contained in:
Robert Schütz
2026-07-09 10:28:52 -07:00
parent 1aa365ef50
commit b8ea1b24bb

View File

@@ -6,7 +6,7 @@
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "mistune";
version = "3.3.3";
pyproject = true;
@@ -14,7 +14,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "lepture";
repo = "mistune";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-AAOpQ3GMEifMVM1SaT5zVltIshAQt5SYqCtIvdjy20M=";
};
@@ -25,10 +25,10 @@ buildPythonPackage rec {
pythonImportsCheck = [ "mistune" ];
meta = {
changelog = "https://github.com/lepture/mistune/blob/${src.tag}/docs/changes.rst";
changelog = "https://github.com/lepture/mistune/blob/${finalAttrs.src.tag}/docs/changes.rst";
description = "Sane Markdown parser with useful plugins and renderers";
homepage = "https://github.com/lepture/mistune";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
})