diff --git a/pkgs/development/python-modules/ocrmypdf/default.nix b/pkgs/development/python-modules/ocrmypdf/default.nix index 5c6b87b38fed..7f2bcf27db08 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 = [