Skip to content

Commit

Permalink
paperless-ngx: fix tests with OCRmyPDF 16.6
Browse files Browse the repository at this point in the history
  • Loading branch information
dotlambda committed Nov 23, 2024
1 parent 9dfbe51 commit 8b81bdd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkgs/by-name/pa/paperless-ngx/package.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch2
, buildNpmPackage
, nixosTests
, gettext
Expand Down Expand Up @@ -141,6 +142,14 @@ python.pkgs.buildPythonApplication rec {

inherit version src;

patches = [
(fetchpatch2 {
name = "ocrmypdf-16.6-compat.patch";
url = "https://github.com/paperless-ngx/paperless-ngx/commit/d1f255a22ea53712cb9101277ec57ea1976f9c02.patch?full_index=1";
hash = "sha256-V2nnNeNCcfSrjOttQ5rgDj7gnxpfpBPVeDDnMea0C3U=";
})
];

postPatch = ''
# pytest-xdist makes the tests flaky
substituteInPlace src/setup.cfg \
Expand Down

0 comments on commit 8b81bdd

Please sign in to comment.