about summary refs log tree commit diff
path: root/pkgs/applications/office/paperwork
diff options
context:
space:
mode:
authorRobert Schütz <nix@dotlambda.de>2023-01-21 11:40:52 -0800
committerGitHub <noreply@github.com>2023-01-21 11:40:52 -0800
commit84f5f37d7bc3d07b3f33039d505e72026e7c0c13 (patch)
treef9bbfe899f04cfd1ec130902ecff6ea942ff98cd /pkgs/applications/office/paperwork
parentf6d34236a2ec52590360e9993af3bd04bf1a883b (diff)
parent0557ba0f576398b903dc75ee3bdb599d0a268db9 (diff)
Merge pull request #211641 from dotlambda/paperwork-backend-fix
paperwork: use Levenshtein
Diffstat (limited to 'pkgs/applications/office/paperwork')
-rw-r--r--pkgs/applications/office/paperwork/paperwork-backend.nix3
-rw-r--r--pkgs/applications/office/paperwork/paperwork-gtk.nix5
2 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/applications/office/paperwork/paperwork-backend.nix b/pkgs/applications/office/paperwork/paperwork-backend.nix
index 16b393abf5347..b67dfe436fa2a 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
diff --git a/pkgs/applications/office/paperwork/paperwork-gtk.nix b/pkgs/applications/office/paperwork/paperwork-gtk.nix
index 8229a7cd40627..6c09681137e74 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
@@ -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