From f57e9dddb69e5aa83c6038177aa8c83831a1c0b0 Mon Sep 17 00:00:00 2001 From: Guillaume Girol Date: Wed, 22 Jul 2026 12:00:00 +0000 Subject: [PATCH] paperwork: fix build with recent versions of setuptools pkg_resources has been removed, backport a patch using the standard library instead of pkg_resources. Fixes: https://github.com/NixOS/nixpkgs/issues/544605 --- pkgs/applications/office/paperwork/src.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/office/paperwork/src.nix b/pkgs/applications/office/paperwork/src.nix index 84bd20231599..6418a53dfe41 100644 --- a/pkgs/applications/office/paperwork/src.nix +++ b/pkgs/applications/office/paperwork/src.nix @@ -27,6 +27,12 @@ rec { hash = "sha256-VUT86kF0ZHLGK457ZrrIBMeiZqg/rPRpbkBA/ua9rU8="; } ) + # remove usage of deprecated pkg_resources + # remove on next release + (fetchpatch { + url = "https://gitlab.gnome.org/World/OpenPaperwork/paperwork/-/commit/ab244d9c483b23f53e2548b73236d7fe4b94cb3f.patch"; + hash = "sha256-Wd6OK0BdyTcjLy1NhkLp9N2oOcQWB6geEPOlYDTBsHw="; + }) ]; };