From d1ce5aaadfd4539bcedaa8542d6ec202458ca686 Mon Sep 17 00:00:00 2001 From: Stefan Visser Date: Tue, 20 Jan 2026 11:11:31 +0100 Subject: [PATCH 1/2] python3Packages.tinycss2: 1.4.0 -> 1.5.1 Release notes: https://github.com/Kozea/tinycss2/releases/tag/v1.5.1 Changelog: https://github.com/Kozea/tinycss2/compare/v1.4.0...v1.5.1 --- pkgs/development/python-modules/tinycss2/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/tinycss2/default.nix b/pkgs/development/python-modules/tinycss2/default.nix index 23a7a1f91fdd..cca453789b7c 100644 --- a/pkgs/development/python-modules/tinycss2/default.nix +++ b/pkgs/development/python-modules/tinycss2/default.nix @@ -10,7 +10,7 @@ buildPythonPackage rec { pname = "tinycss2"; - version = "1.4.0"; + version = "1.5.1"; pyproject = true; src = fetchFromGitHub { @@ -19,7 +19,7 @@ buildPythonPackage rec { tag = "v${version}"; # for tests fetchSubmodules = true; - hash = "sha256-GVymUobWAE0YS65lti9dXRIIGpx0YkwF/vSb3y7cpYY="; + hash = "sha256-ZVmdHrqfF5fvBvHLaG2B4m1zek4wfEYArkntWzOqhfM="; }; build-system = [ flit-core ]; From c6eda5ca8b0fa9a0254b43fdc8249afb797a80d5 Mon Sep 17 00:00:00 2001 From: Stefan Visser Date: Tue, 20 Jan 2026 10:39:13 +0100 Subject: [PATCH 2/2] python3Packages.weasyprint: 66.0 -> 68.0 Release notes: https://github.com/Kozea/WeasyPrint/releases/tag/v68.0 Changelog: https://github.com/Kozea/WeasyPrint/compare/v66.0...v68.0 --- .../python-modules/weasyprint/default.nix | 6 ++++-- .../weasyprint/library-paths.patch | 18 +++++++++--------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/weasyprint/default.nix b/pkgs/development/python-modules/weasyprint/default.nix index 68656efea693..bf076964b914 100644 --- a/pkgs/development/python-modules/weasyprint/default.nix +++ b/pkgs/development/python-modules/weasyprint/default.nix @@ -32,7 +32,7 @@ buildPythonPackage (finalAttrs: { pname = "weasyprint"; - version = "66.0"; + version = "68.0"; pyproject = true; __darwinAllowLocalNetworking = true; @@ -41,7 +41,7 @@ buildPythonPackage (finalAttrs: { owner = "Kozea"; repo = "WeasyPrint"; tag = "v${finalAttrs.version}"; - hash = "sha256-wmEDVEbikBpOQ5394IBPWQRjWZOLfMzEGxTtq4tt2Tw="; + hash = "sha256-kAJgSQz1RKrPwzO7I5xHXyXcXYJtvca9izjrAgTy3ek="; }; patches = [ @@ -99,6 +99,8 @@ buildPythonPackage (finalAttrs: { "test_woff_simple" # AssertionError "test_2d_transform" + # Reported upstream: https://github.com/Kozea/WeasyPrint/issues/2666 + "test_text_stroke" ]; FONTCONFIG_FILE = "${fontconfig.out}/etc/fonts/fonts.conf"; diff --git a/pkgs/development/python-modules/weasyprint/library-paths.patch b/pkgs/development/python-modules/weasyprint/library-paths.patch index dd2bbfe784e0..6053fbdc1ef0 100644 --- a/pkgs/development/python-modules/weasyprint/library-paths.patch +++ b/pkgs/development/python-modules/weasyprint/library-paths.patch @@ -1,14 +1,14 @@ diff --git a/weasyprint/text/ffi.py b/weasyprint/text/ffi.py -index b5a9cf2..9380a79 100644 +index f57da3c..c50e41d 100644 --- a/weasyprint/text/ffi.py +++ b/weasyprint/text/ffi.py -@@ -444,25 +444,12 @@ if hasattr(os, 'add_dll_directory') and not hasattr(sys, 'frozen'): # pragma: n +@@ -473,25 +473,12 @@ if hasattr(os, 'add_dll_directory') and not hasattr(sys, 'frozen'): # pragma: n with suppress((OSError, FileNotFoundError)): os.add_dll_directory(dll_directory) -gobject = _dlopen( - ffi, 'libgobject-2.0-0', 'gobject-2.0-0', 'gobject-2.0', -- 'libgobject-2.0.so.0', 'libgobject-2.0.dylib', 'libgobject-2.0-0.dll') +- 'libgobject-2.0.so.0', 'libgobject-2.0.0.dylib', 'libgobject-2.0-0.dll') -pango = _dlopen( - ffi, 'libpango-1.0-0', 'pango-1.0-0', 'pango-1.0', 'libpango-1.0.so.0', - 'libpango-1.0.dylib', 'libpango-1.0-0.dll') @@ -25,12 +25,12 @@ index b5a9cf2..9380a79 100644 -pangoft2 = _dlopen( - ffi, 'libpangoft2-1.0-0', 'pangoft2-1.0-0', 'pangoft2-1.0', - 'libpangoft2-1.0.so.0', 'libpangoft2-1.0.dylib', 'libpangoft2-1.0-0.dll') -+gobject = _dlopen(ffi, "@gobject@") -+pango = _dlopen(ffi, "@pango@") -+harfbuzz = _dlopen(ffi, "@harfbuzz@") -+harfbuzz_subset = _dlopen(ffi, "@harfbuzz_subset@", allow_fail=True) -+fontconfig = _dlopen(ffi, "@fontconfig@") -+pangoft2 = _dlopen(ffi, "@pangoft2@") ++gobject = _dlopen(ffi, '@gobject@') ++pango = _dlopen(ffi, '@pango@') ++harfbuzz = _dlopen(ffi, '@harfbuzz@') ++harfbuzz_subset = _dlopen(ffi, '@harfbuzz_subset@', allow_fail=True) ++fontconfig = _dlopen(ffi, '@fontconfig@') ++pangoft2 = _dlopen(ffi, '@pangoft2@') gobject.g_type_init()