python314Packages.weasyprint: migrate to finalAttrs
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user