python314Packages.weasyprint: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-01-05 14:44:22 +01:00
parent 265ac155f9
commit e022fe1eff
@@ -30,7 +30,7 @@
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "weasyprint";
version = "66.0";
pyproject = true;
@@ -40,7 +40,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "Kozea";
repo = "WeasyPrint";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-wmEDVEbikBpOQ5394IBPWQRjWZOLfMzEGxTtq4tt2Tw=";
};
@@ -104,16 +104,16 @@ buildPythonPackage rec {
FONTCONFIG_FILE = "${fontconfig.out}/etc/fonts/fonts.conf";
# Set env variable explicitly for Darwin, but allow overriding when invoking directly
makeWrapperArgs = [ "--set-default FONTCONFIG_FILE ${FONTCONFIG_FILE}" ];
makeWrapperArgs = [ "--set-default FONTCONFIG_FILE ${finalAttrs.FONTCONFIG_FILE}" ];
pythonImportsCheck = [ "weasyprint" ];
meta = {
changelog = "https://github.com/Kozea/WeasyPrint/releases/tag/${src.tag}";
changelog = "https://github.com/Kozea/WeasyPrint/releases/tag/${finalAttrs.src.tag}";
description = "Converts web documents to PDF";
mainProgram = "weasyprint";
homepage = "https://weasyprint.org/";
license = lib.licenses.bsd3;
mainProgram = "weasyprint";
teams = [ lib.teams.apm ];
};
}
})