From b29b626423c1f2d908adea0fc6421f32b5ddb200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 19 Jan 2023 11:59:19 -0800 Subject: [PATCH 1/3] python310Packages.paperwork-backend: use Levenshtein --- pkgs/applications/office/paperwork/paperwork-backend.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/office/paperwork/paperwork-backend.nix b/pkgs/applications/office/paperwork/paperwork-backend.nix index 814ae5e51f5f..ed01fadb80ea 100644 --- a/pkgs/applications/office/paperwork/paperwork-backend.nix +++ b/pkgs/applications/office/paperwork/paperwork-backend.nix @@ -39,6 +39,9 @@ buildPythonPackage rec { patchFlags = [ "-p2" ]; postPatch = '' + substituteInPlace setup.py \ + --replace python-Levenshtein Levenshtein + echo 'version = "${version}"' > src/paperwork_backend/_version.py chmod a+w -R .. patchShebangs ../tools From e360bcb537344e11f8bd514c3f358278912c074d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 20 Jan 2023 13:35:30 -0800 Subject: [PATCH 2/3] paperwork: use Levenshtein --- pkgs/applications/office/paperwork/paperwork-gtk.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/office/paperwork/paperwork-gtk.nix b/pkgs/applications/office/paperwork/paperwork-gtk.nix index 387e6c2d7657..2f2075ce5851 100644 --- a/pkgs/applications/office/paperwork/paperwork-gtk.nix +++ b/pkgs/applications/office/paperwork/paperwork-gtk.nix @@ -45,6 +45,9 @@ python3Packages.buildPythonApplication rec { # Patch out a few paths that assume that we're using the FHS: postPatch = '' + substituteInPlace setup.py \ + --replace python-Levenshtein Levenshtein + chmod a+w -R .. patchShebangs ../tools From 0557ba0f576398b903dc75ee3bdb599d0a268db9 Mon Sep 17 00:00:00 2001 From: Guillaume Girol Date: Sat, 21 Jan 2023 12:00:00 +0000 Subject: [PATCH 3/3] paperwork: fix build gensymb.sty used to be in the was package, but is not a standalone package --- pkgs/applications/office/paperwork/paperwork-gtk.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/office/paperwork/paperwork-gtk.nix b/pkgs/applications/office/paperwork/paperwork-gtk.nix index 2f2075ce5851..0a37ca8c3f62 100644 --- a/pkgs/applications/office/paperwork/paperwork-gtk.nix +++ b/pkgs/applications/office/paperwork/paperwork-gtk.nix @@ -22,7 +22,7 @@ let documentation_deps = [ (texlive.combine { - inherit (texlive) scheme-small wrapfig was; + inherit (texlive) scheme-small wrapfig gensymb; }) xvfb-run imagemagick