diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2021-10-12 23:04:30 +0200 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2021-10-12 23:04:30 +0200 |
commit | 9f866231f89a40d56e06dfce810df4d91e67366e (patch) | |
tree | 6d6000ec5d19863747ecd8ebe97b2f34fd7a84e7 /pkgs/development/python-modules/ocrmypdf | |
parent | 0cb186d33d6600d3adf073ce45920f93088be5f0 (diff) |
python3Packages.ocrmypdf: apply patch to support pybind11
Diffstat (limited to 'pkgs/development/python-modules/ocrmypdf')
-rw-r--r-- | pkgs/development/python-modules/ocrmypdf/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/ocrmypdf/default.nix b/pkgs/development/python-modules/ocrmypdf/default.nix index 5c6b87b38fed2..7f2bcf27db08f 100644 --- a/pkgs/development/python-modules/ocrmypdf/default.nix +++ b/pkgs/development/python-modules/ocrmypdf/default.nix @@ -3,6 +3,7 @@ , cffi , coloredlogs , fetchFromGitHub +, fetchpatch , ghostscript , img2pdf , importlib-resources @@ -55,6 +56,12 @@ buildPythonPackage rec { tesseract = "${lib.getBin tesseract4}/bin/tesseract"; unpaper = "${lib.getBin unpaper}/bin/unpaper"; }) + # Fix support with pybind11 2.8.0 + # https://github.com/jbarlow83/OCRmyPDF/issues/843 + (fetchpatch { + url = "https://github.com/jbarlow83/OCRmyPDF/commit/690f88119d3ec24b17ddd14bb44832954a452e48.patch"; + sha256 = "02z3jz85nmv1iilcp62hm5pyfgp6936ds67p1fhw49i8955q8pby"; + }) ]; nativeBuildInputs = [ |