python3Packages.weasyprint: 64.1 -> 65.0 (#392788)

Changed files
+22 -23
pkgs
development
python-modules
cssselect2
weasyprint
+3 -3
pkgs/development/python-modules/cssselect2/default.nix
···
buildPythonPackage rec {
pname = "cssselect2";
-
version = "0.7.0";
pyproject = true;
-
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
-
hash = "sha256-HM2YTauJ/GiVUEOspOGwPgzynK2YgPbijjunp0sUqlo=";
};
postPatch = ''
···
buildPythonPackage rec {
pname = "cssselect2";
+
version = "0.8.0";
pyproject = true;
+
disabled = pythonOlder "3.10";
src = fetchPypi {
inherit pname version;
+
hash = "sha256-dnT/uVSjtGFiOSruKjoK7bLhTs+Z/MKGRJAPTm4+nTo=";
};
postPatch = ''
+19 -20
pkgs/development/python-modules/weasyprint/default.nix
···
{
-
lib,
-
stdenv,
buildPythonPackage,
cffi,
cssselect2,
···
ghostscript,
glib,
harfbuzz,
pango,
pillow,
pydyf,
···
pytestCheckHook,
pythonOlder,
replaceVars,
tinycss2,
tinyhtml5,
}:
buildPythonPackage rec {
pname = "weasyprint";
-
version = "64.1";
-
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit version;
pname = "weasyprint";
-
hash = "sha256-KLAvLGQJuvzhsSINnXanNFh1vTvQjE9t+/UQu5KpR1c=";
};
patches = [
(replaceVars ./library-paths.patch {
fontconfig = "${fontconfig.lib}/lib/libfontconfig${stdenv.hostPlatform.extensions.sharedLibrary}";
-
pangoft2 = "${pango.out}/lib/libpangoft2-1.0${stdenv.hostPlatform.extensions.sharedLibrary}";
gobject = "${glib.out}/lib/libgobject-2.0${stdenv.hostPlatform.extensions.sharedLibrary}";
-
pango = "${pango.out}/lib/libpango-1.0${stdenv.hostPlatform.extensions.sharedLibrary}";
harfbuzz = "${harfbuzz.out}/lib/libharfbuzz${stdenv.hostPlatform.extensions.sharedLibrary}";
harfbuzz_subset = "${harfbuzz.out}/lib/libharfbuzz-subset${stdenv.hostPlatform.extensions.sharedLibrary}";
})
];
build-system = [ flit-core ];
-
pythonRelaxDeps = [ "tinycss2" ];
-
dependencies = [
cffi
cssselect2
···
] ++ fonttools.optional-dependencies.woff;
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
-
ghostscript
];
disabledTests = [
# needs the Ahem font (fails on macOS)
"test_font_stretch"
# sensitive to sandbox environments
"test_tab_size"
"test_tabulation_character"
-
"test_linear_gradients_5"
-
"test_linear_gradients_12"
# rounding issues in sandbox
"test_images_transparent_text"
"test_visibility_1"
"test_visibility_3"
"test_visibility_4"
-
"test_empty_inline_auto_margins"
-
"test_vertical_align_4"
-
"test_margin_boxes_element"
-
"test_running_elements"
-
"test_layout_table_auto_44"
-
"test_layout_table_auto_45"
"test_woff_simple"
];
···
pythonImportsCheck = [ "weasyprint" ];
-
meta = with lib; {
changelog = "https://github.com/Kozea/WeasyPrint/releases/tag/v${version}";
description = "Converts web documents to PDF";
mainProgram = "weasyprint";
homepage = "https://weasyprint.org/";
-
license = licenses.bsd3;
};
}
···
{
buildPythonPackage,
cffi,
cssselect2,
···
ghostscript,
glib,
harfbuzz,
+
lib,
pango,
pillow,
pydyf,
···
pytestCheckHook,
pythonOlder,
replaceVars,
+
stdenv,
tinycss2,
tinyhtml5,
}:
buildPythonPackage rec {
pname = "weasyprint";
+
version = "65.0";
+
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit version;
pname = "weasyprint";
+
hash = "sha256-PGed6Wp8hxrgDwjNHncgDzPipJ014gnHIRWTJ1eN+Yg=";
};
patches = [
(replaceVars ./library-paths.patch {
fontconfig = "${fontconfig.lib}/lib/libfontconfig${stdenv.hostPlatform.extensions.sharedLibrary}";
gobject = "${glib.out}/lib/libgobject-2.0${stdenv.hostPlatform.extensions.sharedLibrary}";
harfbuzz = "${harfbuzz.out}/lib/libharfbuzz${stdenv.hostPlatform.extensions.sharedLibrary}";
harfbuzz_subset = "${harfbuzz.out}/lib/libharfbuzz-subset${stdenv.hostPlatform.extensions.sharedLibrary}";
+
pango = "${pango.out}/lib/libpango-1.0${stdenv.hostPlatform.extensions.sharedLibrary}";
+
pangoft2 = "${pango.out}/lib/libpangoft2-1.0${stdenv.hostPlatform.extensions.sharedLibrary}";
})
];
build-system = [ flit-core ];
dependencies = [
cffi
cssselect2
···
] ++ fonttools.optional-dependencies.woff;
nativeCheckInputs = [
+
ghostscript
pytest-cov-stub
pytestCheckHook
];
disabledTests = [
# needs the Ahem font (fails on macOS)
"test_font_stretch"
# sensitive to sandbox environments
+
"test_linear_gradients_12"
+
"test_linear_gradients_5"
"test_tab_size"
"test_tabulation_character"
# rounding issues in sandbox
+
"test_empty_inline_auto_margins"
"test_images_transparent_text"
+
"test_layout_table_auto_44"
+
"test_layout_table_auto_45"
+
"test_margin_boxes_element"
+
"test_running_elements"
+
"test_vertical_align_4"
"test_visibility_1"
"test_visibility_3"
"test_visibility_4"
"test_woff_simple"
];
···
pythonImportsCheck = [ "weasyprint" ];
+
meta = {
changelog = "https://github.com/Kozea/WeasyPrint/releases/tag/v${version}";
description = "Converts web documents to PDF";
mainProgram = "weasyprint";
homepage = "https://weasyprint.org/";
+
license = lib.licenses.bsd3;
+
maintainers = lib.teams.apm.members;
};
}