anchor.diff:        liblept = "${stdenv.lib.getLib leptonica}/lib/liblept${stdenv.hostPlatform.extensions.sharedLibrary}";
       })
     ];
  -
  -  # The tests take potentially 20+ minutes, depending on machine
  -  doCheck = false;
  -
  -  # These tests fail and it might be upstream problem... or packaging. :)
  -  # development is happening on macos and the pinned test versions are
  -  # significantly newer than nixpkgs has. Program still works...
  -  # (to the extent I've used it) -- Kiwi
  -  checkPhase = ''
  -    export HOME=$TMPDIR
  -    pytest -k 'not test_force_ocr_on_pdf_with_no_images \
  -    and not test_tesseract_crash \
  -    and not test_tesseract_crash_autorotate \
  -    and not test_ghostscript_pdfa_failure \
  -    and not test_gs_render_failure \
  -    and not test_gs_raster_failure \
  -    and not test_bad_utf8 \
  -    and not test_old_unpaper'
  -  '';
   
     makeWrapperArgs = [ "--prefix PATH : ${stdenv.lib.makeBinPath [ ghostscript jbig2enc pngquant qpdf tesseract4 unpaper ]}" ];
   
  
positive.code:   propagatedBuildInputs = with python3Packages; [
      cffi
      chardet
      img2pdf
      pdfminer
      pikepdf
      pillow
      reportlab
  
negative.code:     pytestcov
      pytestrunner
      python-xmp-toolkit
      pytestCheckHook
    ] ++ runtimeDeps;
  
    patches = [
  