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

authored by Wolfgang Walther and committed by GitHub 75f45fc2 11a016be

+22 -23
+3 -3
pkgs/development/python-modules/cssselect2/default.nix
··· 10 10 11 11 buildPythonPackage rec { 12 12 pname = "cssselect2"; 13 - version = "0.7.0"; 13 + version = "0.8.0"; 14 14 pyproject = true; 15 15 16 - disabled = pythonOlder "3.7"; 16 + disabled = pythonOlder "3.10"; 17 17 18 18 src = fetchPypi { 19 19 inherit pname version; 20 - hash = "sha256-HM2YTauJ/GiVUEOspOGwPgzynK2YgPbijjunp0sUqlo="; 20 + hash = "sha256-dnT/uVSjtGFiOSruKjoK7bLhTs+Z/MKGRJAPTm4+nTo="; 21 21 }; 22 22 23 23 postPatch = ''
+19 -20
pkgs/development/python-modules/weasyprint/default.nix
··· 1 1 { 2 - lib, 3 - stdenv, 4 2 buildPythonPackage, 5 3 cffi, 6 4 cssselect2, ··· 11 9 ghostscript, 12 10 glib, 13 11 harfbuzz, 12 + lib, 14 13 pango, 15 14 pillow, 16 15 pydyf, ··· 19 18 pytestCheckHook, 20 19 pythonOlder, 21 20 replaceVars, 21 + stdenv, 22 22 tinycss2, 23 23 tinyhtml5, 24 24 }: 25 25 26 26 buildPythonPackage rec { 27 27 pname = "weasyprint"; 28 - version = "64.1"; 29 - format = "pyproject"; 28 + version = "65.0"; 29 + pyproject = true; 30 30 31 31 disabled = pythonOlder "3.9"; 32 32 33 33 src = fetchPypi { 34 34 inherit version; 35 35 pname = "weasyprint"; 36 - hash = "sha256-KLAvLGQJuvzhsSINnXanNFh1vTvQjE9t+/UQu5KpR1c="; 36 + hash = "sha256-PGed6Wp8hxrgDwjNHncgDzPipJ014gnHIRWTJ1eN+Yg="; 37 37 }; 38 38 39 39 patches = [ 40 40 (replaceVars ./library-paths.patch { 41 41 fontconfig = "${fontconfig.lib}/lib/libfontconfig${stdenv.hostPlatform.extensions.sharedLibrary}"; 42 - pangoft2 = "${pango.out}/lib/libpangoft2-1.0${stdenv.hostPlatform.extensions.sharedLibrary}"; 43 42 gobject = "${glib.out}/lib/libgobject-2.0${stdenv.hostPlatform.extensions.sharedLibrary}"; 44 - pango = "${pango.out}/lib/libpango-1.0${stdenv.hostPlatform.extensions.sharedLibrary}"; 45 43 harfbuzz = "${harfbuzz.out}/lib/libharfbuzz${stdenv.hostPlatform.extensions.sharedLibrary}"; 46 44 harfbuzz_subset = "${harfbuzz.out}/lib/libharfbuzz-subset${stdenv.hostPlatform.extensions.sharedLibrary}"; 45 + pango = "${pango.out}/lib/libpango-1.0${stdenv.hostPlatform.extensions.sharedLibrary}"; 46 + pangoft2 = "${pango.out}/lib/libpangoft2-1.0${stdenv.hostPlatform.extensions.sharedLibrary}"; 47 47 }) 48 48 ]; 49 49 50 50 build-system = [ flit-core ]; 51 51 52 - pythonRelaxDeps = [ "tinycss2" ]; 53 - 54 52 dependencies = [ 55 53 cffi 56 54 cssselect2 ··· 63 61 ] ++ fonttools.optional-dependencies.woff; 64 62 65 63 nativeCheckInputs = [ 64 + ghostscript 66 65 pytest-cov-stub 67 66 pytestCheckHook 68 - ghostscript 69 67 ]; 70 68 71 69 disabledTests = [ 72 70 # needs the Ahem font (fails on macOS) 73 71 "test_font_stretch" 74 72 # sensitive to sandbox environments 73 + "test_linear_gradients_12" 74 + "test_linear_gradients_5" 75 75 "test_tab_size" 76 76 "test_tabulation_character" 77 - "test_linear_gradients_5" 78 - "test_linear_gradients_12" 79 77 # rounding issues in sandbox 78 + "test_empty_inline_auto_margins" 80 79 "test_images_transparent_text" 80 + "test_layout_table_auto_44" 81 + "test_layout_table_auto_45" 82 + "test_margin_boxes_element" 83 + "test_running_elements" 84 + "test_vertical_align_4" 81 85 "test_visibility_1" 82 86 "test_visibility_3" 83 87 "test_visibility_4" 84 - "test_empty_inline_auto_margins" 85 - "test_vertical_align_4" 86 - "test_margin_boxes_element" 87 - "test_running_elements" 88 - "test_layout_table_auto_44" 89 - "test_layout_table_auto_45" 90 88 "test_woff_simple" 91 89 ]; 92 90 ··· 102 100 103 101 pythonImportsCheck = [ "weasyprint" ]; 104 102 105 - meta = with lib; { 103 + meta = { 106 104 changelog = "https://github.com/Kozea/WeasyPrint/releases/tag/v${version}"; 107 105 description = "Converts web documents to PDF"; 108 106 mainProgram = "weasyprint"; 109 107 homepage = "https://weasyprint.org/"; 110 - license = licenses.bsd3; 108 + license = lib.licenses.bsd3; 109 + maintainers = lib.teams.apm.members; 111 110 }; 112 111 }