Skip to content

python3Packages.weasyprint: 66.0 -> 68.0 - #481900

Merged
wolfgangwalther merged 2 commits into
NixOS:stagingfrom
DutchGerman:sv/weasyprint-update-68-0
Jan 21, 2026
Merged

wolfgangwalther merged 2 commits into
NixOS:stagingfrom
DutchGerman:sv/weasyprint-update-68-0

Conversation

@DutchGerman

Copy link
Copy Markdown
Contributor

This updates python3Packages.weasyprint from 66.0 to 68.0.

This update resolves #481891

Patchnotes: https://github.com/Kozea/WeasyPrint/releases/tag/v68.0

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

@wolfgangwalther

Copy link
Copy Markdown
Contributor

Already merge conflicted, seems like your master branch that you based this on was a tad outdated.

@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jan 20, 2026
@DutchGerman
DutchGerman force-pushed the sv/weasyprint-update-68-0 branch from 2141b4a to f92bcde Compare January 20, 2026 09:51
@wolfgangwalther wolfgangwalther added 1.severity: security Issues which raise a security issue, or PRs that fix one backport release-25.11 labels Jan 20, 2026
@nixpkgs-ci
nixpkgs-ci Bot requested a review from friedow January 20, 2026 09:57
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 6.topic: python Python is a high-level, general-purpose programming language. and removed 2.status: merge conflict This PR has merge conflicts with the target branch labels Jan 20, 2026
@DutchGerman

Copy link
Copy Markdown
Contributor Author

@friedow is currently on vacation, anyone else down to do a review ?

@wolfgangwalther
wolfgangwalther self-requested a review January 20, 2026 10:02
@wolfgangwalther

Copy link
Copy Markdown
Contributor

Did you try to build it again after the rebase?


nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 481900
Commit: f92bcde76eb491af7a23635aa331666c885afbdb


x86_64-linux

❌ 34 packages failed to build:
  • froide
  • froide-govplan
  • froide-govplan.dist
  • froide.dist
  • md2pdf (python313Packages.md2pdf)
  • md2pdf.dist (python313Packages.md2pdf.dist)
  • python313Packages.django-weasyprint
  • python313Packages.django-weasyprint.dist
  • python313Packages.dnachisel
  • python313Packages.dnachisel.dist
  • python313Packages.flametree
  • python313Packages.flametree.dist
  • python313Packages.presenterm-export
  • python313Packages.presenterm-export.dist
  • trytond (python313Packages.trytond)
  • trytond.dist (python313Packages.trytond.dist)
  • python313Packages.weasyprint
  • python313Packages.weasyprint.dist
  • python314Packages.django-weasyprint
  • python314Packages.django-weasyprint.dist
  • python314Packages.dnachisel
  • python314Packages.dnachisel.dist
  • python314Packages.flametree
  • python314Packages.flametree.dist
  • python314Packages.md2pdf
  • python314Packages.md2pdf.dist
  • python314Packages.presenterm-export
  • python314Packages.presenterm-export.dist
  • python314Packages.trytond
  • python314Packages.trytond.dist
  • python314Packages.weasyprint
  • python314Packages.weasyprint.dist
  • render50
  • render50.dist

aarch64-linux

❌ 34 packages failed to build:
  • froide
  • froide-govplan
  • froide-govplan.dist
  • froide.dist
  • md2pdf (python313Packages.md2pdf)
  • md2pdf.dist (python313Packages.md2pdf.dist)
  • python313Packages.django-weasyprint
  • python313Packages.django-weasyprint.dist
  • python313Packages.dnachisel
  • python313Packages.dnachisel.dist
  • python313Packages.flametree
  • python313Packages.flametree.dist
  • python313Packages.presenterm-export
  • python313Packages.presenterm-export.dist
  • trytond (python313Packages.trytond)
  • trytond.dist (python313Packages.trytond.dist)
  • python313Packages.weasyprint
  • python313Packages.weasyprint.dist
  • python314Packages.django-weasyprint
  • python314Packages.django-weasyprint.dist
  • python314Packages.dnachisel
  • python314Packages.dnachisel.dist
  • python314Packages.flametree
  • python314Packages.flametree.dist
  • python314Packages.md2pdf
  • python314Packages.md2pdf.dist
  • python314Packages.presenterm-export
  • python314Packages.presenterm-export.dist
  • python314Packages.trytond
  • python314Packages.trytond.dist
  • python314Packages.weasyprint
  • python314Packages.weasyprint.dist
  • render50
  • render50.dist

aarch64-darwin

❌ 28 packages failed to build:
  • froide-govplan
  • froide-govplan.dist
  • md2pdf (python313Packages.md2pdf)
  • md2pdf.dist (python313Packages.md2pdf.dist)
  • python313Packages.django-weasyprint
  • python313Packages.django-weasyprint.dist
  • python313Packages.dnachisel
  • python313Packages.dnachisel.dist
  • python313Packages.flametree
  • python313Packages.flametree.dist
  • python313Packages.presenterm-export
  • python313Packages.presenterm-export.dist
  • python313Packages.weasyprint
  • python313Packages.weasyprint.dist
  • python314Packages.django-weasyprint
  • python314Packages.django-weasyprint.dist
  • python314Packages.dnachisel
  • python314Packages.dnachisel.dist
  • python314Packages.flametree
  • python314Packages.flametree.dist
  • python314Packages.md2pdf
  • python314Packages.md2pdf.dist
  • python314Packages.presenterm-export
  • python314Packages.presenterm-export.dist
  • python314Packages.weasyprint
  • python314Packages.weasyprint.dist
  • render50
  • render50.dist

Error logs: `x86_64-linux`
python313Packages.weasyprint
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
no configure script, doing nothing
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Executing pypaBuildPhase
Creating a wheel...
pypa build flags: --no-isolation --outdir dist/ --wheel
* Getting build dependencies for wheel...
* Building wheel...
Successfully built weasyprint-68.0-py3-none-any.whl
Finished creating a wheel...
Finished executing pypaBuildPhase
Running phase: pythonRuntimeDepsCheckHook
@nix { "action": "setPhase", "phase": "pythonRuntimeDepsCheckHook" }
Executing pythonRuntimeDepsCheck
Checking runtime dependencies for weasyprint-68.0-py3-none-any.whl
  - tinycss2>=1.5.0 not satisfied by version 1.4.0

Error logs: `aarch64-linux`
python313Packages.weasyprint
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix {"action":"setPhase","phase":"updateAutotoolsGnuConfigScriptsPhase"}
Running phase: configurePhase
@nix {"action":"setPhase","phase":"configurePhase"}
no configure script, doing nothing
Running phase: buildPhase
@nix {"action":"setPhase","phase":"buildPhase"}
Executing pypaBuildPhase
Creating a wheel...
pypa build flags: --no-isolation --outdir dist/ --wheel
* Getting build dependencies for wheel...
* Building wheel...
Successfully built weasyprint-68.0-py3-none-any.whl
Finished creating a wheel...
Finished executing pypaBuildPhase
Running phase: pythonRuntimeDepsCheckHook
@nix {"action":"setPhase","phase":"pythonRuntimeDepsCheckHook"}
Executing pythonRuntimeDepsCheck
Checking runtime dependencies for weasyprint-68.0-py3-none-any.whl
  - tinycss2>=1.5.0 not satisfied by version 1.4.0

Error logs: `aarch64-darwin`
python313Packages.weasyprint
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix {"action":"setPhase","phase":"updateAutotoolsGnuConfigScriptsPhase"}
Running phase: configurePhase
@nix {"action":"setPhase","phase":"configurePhase"}
no configure script, doing nothing
Running phase: buildPhase
@nix {"action":"setPhase","phase":"buildPhase"}
Executing pypaBuildPhase
Creating a wheel...
pypa build flags: --no-isolation --outdir dist/ --wheel
* Getting build dependencies for wheel...
* Building wheel...
Successfully built weasyprint-68.0-py3-none-any.whl
Finished creating a wheel...
Finished executing pypaBuildPhase
Running phase: pythonRuntimeDepsCheckHook
@nix {"action":"setPhase","phase":"pythonRuntimeDepsCheckHook"}
Executing pythonRuntimeDepsCheck
Checking runtime dependencies for weasyprint-68.0-py3-none-any.whl
  - tinycss2>=1.5.0 not satisfied by version 1.4.0

@wolfgangwalther

Copy link
Copy Markdown
Contributor
- tinycss2>=1.5.0 not satisfied by version 1.4.0

@wolfgangwalther

Copy link
Copy Markdown
Contributor

Did you try to build it again after the rebase?

Or rather: Did you actually succeed in building this? This must have failed before the rebase already.

@DutchGerman

DutchGerman commented Jan 20, 2026 •

Copy link
Copy Markdown
Contributor Author

Or rather: Did you actually succeed in building this? This must have failed before the rebase already.

I thought I did, but obviously I did something wrong.

I currently did the following things:

  • Update python3Packages.tinycss2: 1.4.0 -> 1.5.1
  • Update python3Packages.pillow: 1.12.0 -> 1.12.1
    • Without, a large part of the tests fail.

And now run into 1 failing tests

 Last 25 log lines:
       >         """Helper testing the size of the image and the pixels values."""
       >         expected_width, expected_height, expected_pixels = parse_pixels(
       >             expected_pixels)
       >         width, height, pixels = html_to_pixels(html)
       > >       assert (expected_width, expected_height) == (width, height), (
       >                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       >             'Images do not have the same sizes:\n'
       >             f'- expected: {expected_width} × {expected_height}\n'
       >             f'- result: {width} × {height}')
       > E       AssertionError: Images do not have the same sizes:
       > E       - expected: 20 × 4
       > E       - result: 20 × 6
       >
       > tests/draw/__init__.py:57: AssertionError
       > ------------------------------ Captured log call -------------------------------
       > INFO     weasyprint.progress:__init__.py:162 Step 1 - Fetching and parsing HTML - HTML string
       > INFO     weasyprint.progress:__init__.py:290 Step 2 - Fetching and parsing CSS - CSS string
       > INFO     weasyprint.progress:__init__.py:78 Step 3 - Applying CSS
       > INFO     weasyprint.progress:document.py:174 Step 4 - Creating formatting structure
       > INFO     weasyprint.progress:page.py:999 Step 5 - Creating layout - Page 1
       > INFO     weasyprint.progress:__init__.py:123 Step 6 - Creating PDF
       > INFO     weasyprint.progress:__init__.py:248 Step 7 - Adding PDF metadata
       > =========================== short test summary info ============================
       > FAILED tests/draw/svg/test_text.py::test_text_stroke - AssertionError: Images do not have the same sizes:
       > ===== 1 failed, 3777 passed, 41 deselected, 38 xfailed in 64.73s (0:01:04) =====

Is this a case of, digging deeper into why this one test fails, or disabling this specific tests?

Another question, Should I add the updates of pillow and tinycss2 in this PR, or do they need to be seperete onces?

@wolfgangwalther

Copy link
Copy Markdown
Contributor

Is this a case of, digging deeper into why this one test fails, or disabling this specific tests?

At least looking upstream whether there is an issue already and if not report it as such. Any more digging deeper also appreciated, ofc.

Another question, Should I add the updates of pillow and tinycss2 in this PR, or do they need to be seperete onces?

These can be added here.

@wolfgangwalther

Copy link
Copy Markdown
Contributor

At least looking upstream whether there is an issue already and if not report it as such.

And then disabling it here with a link to the upstream issue - we should ultimately not block the security fix on fixing that single test case.

@DutchGerman
DutchGerman force-pushed the sv/weasyprint-update-68-0 branch from f92bcde to f7d1b0d Compare January 20, 2026 11:13
github-actions[bot]

This comment was marked as outdated.

@nixpkgs-ci
nixpkgs-ci Bot requested review from mweinelt and onny January 20, 2026 11:31
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. and removed 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. labels Jan 20, 2026
@DutchGerman

Copy link
Copy Markdown
Contributor Author

The pillow upgrade is triggering a bunch of rebuilds.

I see this is currently already on staging #476360

How to proceed from here?

@mweinelt

mweinelt commented Jan 20, 2026 •

Copy link
Copy Markdown
Member

Either retarget staging or wait until staging-next (#479279) merges into master.

Note that all package updates should reference the release notes or changelog in the commit message body per contributing guidelines.

@DutchGerman
DutchGerman force-pushed the sv/weasyprint-update-68-0 branch from f7d1b0d to c6eda5c Compare January 21, 2026 08:19
@DutchGerman
DutchGerman changed the base branch from master to staging January 21, 2026 08:20
@nixpkgs-ci nixpkgs-ci Bot closed this Jan 21, 2026
@nixpkgs-ci nixpkgs-ci Bot reopened this Jan 21, 2026
@github-actions
github-actions Bot dismissed their stale review January 21, 2026 08:21

Review dismissed automatically

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 2501-5000 This PR causes many rebuilds on Linux and should target the staging branches. 10.rebuild-darwin: 1001-2500 This PR causes many rebuilds on Darwin and should most likely target the staging branches. and removed 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. labels Jan 21, 2026
@wolfgangwalther

Copy link
Copy Markdown
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 481900 --package python3Packages.weasyprint
Commit: c6eda5ca8b0fa9a0254b43fdc8249afb797a80d5


x86_64-linux

✅ 2 packages built:
  • python3Packages.weasyprint
  • python3Packages.weasyprint.dist (python3Packages.weasyprint.dist.dist)

@wolfgangwalther
wolfgangwalther added this pull request to the merge queue Jan 21, 2026
Merged via the queue into NixOS:staging with commit f6e18a0 Jan 21, 2026
2 of 4 checks passed
@nixpkgs-ci

nixpkgs-ci Bot commented Jan 21, 2026

Copy link
Copy Markdown
Contributor

Backport failed for release-25.11, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin release-25.11
git worktree add -d .worktree/backport-481900-to-release-25.11 origin/release-25.11
cd .worktree/backport-481900-to-release-25.11
git switch --create backport-481900-to-release-25.11
git cherry-pick -x d1ce5aaadfd4539bcedaa8542d6ec202458ca686 c6eda5ca8b0fa9a0254b43fdc8249afb797a80d5

@wolfgangwalther

Copy link
Copy Markdown
Contributor

@DutchGerman can you do a manual backport to 25.11 since it's security related?

@LeSuisse

Copy link
Copy Markdown
Member

25.11: #482601

@mweinelt

mweinelt commented Feb 4, 2026 •

Copy link
Copy Markdown
Member

The tinycss2 bump was not safe to backport and broke e.g. notebook with no fix in sight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.severity: security Issues which raise a security issue, or PRs that fix one 6.topic: python Python is a high-level, general-purpose programming language. 8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 1001-2500 This PR causes many rebuilds on Darwin and should most likely target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 2501-5000 This PR causes many rebuilds on Linux and should target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WeasyPrint Vulnerable to Server-Side Request Forgery (SSRF) Protection Bypass via HTTP Redirect

4 participants