summary refs log tree commit diff
path: root/pkgs/applications/office/paperwork/paperwork-backend.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/office/paperwork/paperwork-backend.nix')
-rw-r--r--pkgs/applications/office/paperwork/paperwork-backend.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/applications/office/paperwork/paperwork-backend.nix b/pkgs/applications/office/paperwork/paperwork-backend.nix
index 9e20873adbb..b9e78246609 100644
--- a/pkgs/applications/office/paperwork/paperwork-backend.nix
+++ b/pkgs/applications/office/paperwork/paperwork-backend.nix
@@ -31,7 +31,14 @@ buildPythonPackage rec {
 
   sourceRoot = "source/paperwork-backend";
 
-  patchPhase = ''
+  patches = [
+    # disables a flaky test https://gitlab.gnome.org/World/OpenPaperwork/paperwork/-/issues/1035#note_1493700
+    ./flaky_test.patch
+  ];
+
+  patchFlags = [ "-p2" ];
+
+  postPatch = ''
     echo 'version = "${version}"' > src/paperwork_backend/_version.py
     chmod a+w -R ..
     patchShebangs ../tools