diff options
author | Robert Schütz <nix@dotlambda.de> | 2022-05-28 23:57:50 +0000 |
---|---|---|
committer | Robert Schütz <nix@dotlambda.de> | 2022-05-29 02:06:17 +0000 |
commit | 65450988a59dc253a93148e6d9cd739a0e9e2083 (patch) | |
tree | 337d1fced6f8e2fc303cd5dcb402ee162c1e9211 /pkgs/development/python-modules/ocrmypdf | |
parent | f0eb6d2059d307ff1a8fa2758b23bf2cdcde9897 (diff) |
python310Packages.ocrmypdf: fix build on Darwin
With enabled sandbox we get PermissionError: [Errno 1] Operation not permitted when calling os.nice().
Diffstat (limited to 'pkgs/development/python-modules/ocrmypdf')
-rw-r--r-- | pkgs/development/python-modules/ocrmypdf/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/ocrmypdf/default.nix b/pkgs/development/python-modules/ocrmypdf/default.nix index 1a427dc379fd3..738a5e43a02f1 100644 --- a/pkgs/development/python-modules/ocrmypdf/default.nix +++ b/pkgs/development/python-modules/ocrmypdf/default.nix @@ -2,6 +2,7 @@ , buildPythonPackage , coloredlogs , fetchFromGitHub +, fetchpatch , ghostscript , img2pdf , importlib-metadata @@ -53,6 +54,11 @@ buildPythonPackage rec { tesseract = "${lib.getBin tesseract4}/bin/tesseract"; unpaper = "${lib.getBin unpaper}/bin/unpaper"; }) + # https://github.com/ocrmypdf/OCRmyPDF/pull/973 + (fetchpatch { + url = "https://github.com/ocrmypdf/OCRmyPDF/commit/808b24d59f5b541a335006aa6ea7cdc3c991adc0.patch"; + hash = "sha256-khsH70fWk5fStf94wcRKKX7cCbgD69LtKkngJIqA3+w="; + }) ]; nativeBuildInputs = [ |