mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 21:25:30 +03:00
python3Packages.weasyprint: 64.1 -> 65.0 (#392788)
This commit is contained in:
commit
75f45fc239
2 changed files with 22 additions and 23 deletions
|
@ -10,14 +10,14 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "cssselect2";
|
pname = "cssselect2";
|
||||||
version = "0.7.0";
|
version = "0.8.0";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.10";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-HM2YTauJ/GiVUEOspOGwPgzynK2YgPbijjunp0sUqlo=";
|
hash = "sha256-dnT/uVSjtGFiOSruKjoK7bLhTs+Z/MKGRJAPTm4+nTo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
{
|
{
|
||||||
lib,
|
|
||||||
stdenv,
|
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
cffi,
|
cffi,
|
||||||
cssselect2,
|
cssselect2,
|
||||||
|
@ -11,6 +9,7 @@
|
||||||
ghostscript,
|
ghostscript,
|
||||||
glib,
|
glib,
|
||||||
harfbuzz,
|
harfbuzz,
|
||||||
|
lib,
|
||||||
pango,
|
pango,
|
||||||
pillow,
|
pillow,
|
||||||
pydyf,
|
pydyf,
|
||||||
|
@ -19,38 +18,37 @@
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
pythonOlder,
|
pythonOlder,
|
||||||
replaceVars,
|
replaceVars,
|
||||||
|
stdenv,
|
||||||
tinycss2,
|
tinycss2,
|
||||||
tinyhtml5,
|
tinyhtml5,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "weasyprint";
|
pname = "weasyprint";
|
||||||
version = "64.1";
|
version = "65.0";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.9";
|
disabled = pythonOlder "3.9";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit version;
|
inherit version;
|
||||||
pname = "weasyprint";
|
pname = "weasyprint";
|
||||||
hash = "sha256-KLAvLGQJuvzhsSINnXanNFh1vTvQjE9t+/UQu5KpR1c=";
|
hash = "sha256-PGed6Wp8hxrgDwjNHncgDzPipJ014gnHIRWTJ1eN+Yg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
(replaceVars ./library-paths.patch {
|
(replaceVars ./library-paths.patch {
|
||||||
fontconfig = "${fontconfig.lib}/lib/libfontconfig${stdenv.hostPlatform.extensions.sharedLibrary}";
|
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}";
|
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 = "${harfbuzz.out}/lib/libharfbuzz${stdenv.hostPlatform.extensions.sharedLibrary}";
|
||||||
harfbuzz_subset = "${harfbuzz.out}/lib/libharfbuzz-subset${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 ];
|
build-system = [ flit-core ];
|
||||||
|
|
||||||
pythonRelaxDeps = [ "tinycss2" ];
|
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
cffi
|
cffi
|
||||||
cssselect2
|
cssselect2
|
||||||
|
@ -63,30 +61,30 @@ buildPythonPackage rec {
|
||||||
] ++ fonttools.optional-dependencies.woff;
|
] ++ fonttools.optional-dependencies.woff;
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
|
ghostscript
|
||||||
pytest-cov-stub
|
pytest-cov-stub
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
ghostscript
|
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
# needs the Ahem font (fails on macOS)
|
# needs the Ahem font (fails on macOS)
|
||||||
"test_font_stretch"
|
"test_font_stretch"
|
||||||
# sensitive to sandbox environments
|
# sensitive to sandbox environments
|
||||||
|
"test_linear_gradients_12"
|
||||||
|
"test_linear_gradients_5"
|
||||||
"test_tab_size"
|
"test_tab_size"
|
||||||
"test_tabulation_character"
|
"test_tabulation_character"
|
||||||
"test_linear_gradients_5"
|
|
||||||
"test_linear_gradients_12"
|
|
||||||
# rounding issues in sandbox
|
# rounding issues in sandbox
|
||||||
|
"test_empty_inline_auto_margins"
|
||||||
"test_images_transparent_text"
|
"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_1"
|
||||||
"test_visibility_3"
|
"test_visibility_3"
|
||||||
"test_visibility_4"
|
"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"
|
"test_woff_simple"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -102,11 +100,12 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
pythonImportsCheck = [ "weasyprint" ];
|
pythonImportsCheck = [ "weasyprint" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
changelog = "https://github.com/Kozea/WeasyPrint/releases/tag/v${version}";
|
changelog = "https://github.com/Kozea/WeasyPrint/releases/tag/v${version}";
|
||||||
description = "Converts web documents to PDF";
|
description = "Converts web documents to PDF";
|
||||||
mainProgram = "weasyprint";
|
mainProgram = "weasyprint";
|
||||||
homepage = "https://weasyprint.org/";
|
homepage = "https://weasyprint.org/";
|
||||||
license = licenses.bsd3;
|
license = lib.licenses.bsd3;
|
||||||
|
maintainers = lib.teams.apm.members;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue