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