From de88bd44a66c2cc409f143cd4f5d00804d987381 Mon Sep 17 00:00:00 2001 From: tu-maurice Date: Sat, 16 Nov 2024 22:50:32 +0100 Subject: [PATCH] lektor: fix build A test failed with the upgrade of a newer Pillow version. This patch from upstream fixes this. (cherry picked from commit d55690cba427f5a31ef281257e5274e2a5559e00) --- pkgs/by-name/le/lektor/package.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/by-name/le/lektor/package.nix b/pkgs/by-name/le/lektor/package.nix index 09942bac6ca8..cd3d639c9e2d 100644 --- a/pkgs/by-name/le/lektor/package.nix +++ b/pkgs/by-name/le/lektor/package.nix @@ -2,6 +2,7 @@ , fetchFromGitHub , fetchNpmDeps , fetchPypi +, fetchpatch , nodejs , npmHooks , python3 @@ -38,6 +39,16 @@ python.pkgs.buildPythonApplication rec { hash = "sha256-y0/fYuiIB/O5tsYKjzOPnCafOIZCn4Z5OITPMcnHd/M="; }; + patches = [ + # Fixes test_thumbnail.py with Pillow 11.0 + # see lektor/lektor #1202 + (fetchpatch { + name = "lektor-pillow-11.patch"; + url = "https://github.com/lektor/lektor/commit/af99ea4265e05227d7452977949475196a58edfa.patch"; + hash = "sha256-PmSmX9Ku5rAzN2FzLwvXYeUqN683opLRt9J35w56cfg="; + }) + ]; + npmDeps = fetchNpmDeps { src = "${src}/${npmRoot}"; hash = "sha256-LXe5/u4nAGig8RSu6r8Qsr3p3Od8eoMxukW8Z4HkJ44=";