about summary refs log tree commit diff
path: root/pkgs/tools/text
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2021-09-22 10:07:27 +0000
committerAlyssa Ross <hi@alyssa.is>2021-09-22 10:07:27 +0000
commitb898e958dadb3b62fffc2261529cb1bff59671a3 (patch)
tree75032cd293ee2fd135baa6ed5f381217310b3fa3 /pkgs/tools/text
parent611b805c5378c18643010dd0552bd2e789525bd3 (diff)
parentac01c2996c620f21a04e8755393bd35ac944030c (diff)
Merge remote-tracking branch 'nixpkgs/master' into staging-next
Conflicts:
	pkgs/os-specific/linux/libfabric/default.nix
	pkgs/tools/filesystems/btrfs-progs/default.nix
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r--pkgs/tools/text/ocrmypdf/default.nix89
-rw-r--r--pkgs/tools/text/ocrmypdf/liblept.patch13
2 files changed, 0 insertions, 102 deletions
diff --git a/pkgs/tools/text/ocrmypdf/default.nix b/pkgs/tools/text/ocrmypdf/default.nix
deleted file mode 100644
index 4292c275a7f1a..0000000000000
--- a/pkgs/tools/text/ocrmypdf/default.nix
+++ /dev/null
@@ -1,89 +0,0 @@
-{ fetchFromGitHub
-, ghostscript
-, img2pdf
-, jbig2enc
-, leptonica
-, pngquant
-, python3
-, python3Packages
-, qpdf
-, lib
-, stdenv
-, tesseract4
-, unpaper
-, substituteAll
-}:
-let
-  inherit (python3Packages) buildPythonApplication;
-
-  runtimeDeps = with python3Packages; [
-    ghostscript
-    jbig2enc
-    leptonica
-    pngquant
-    qpdf
-    tesseract4
-    unpaper
-    pillow
-  ];
-
-in
-buildPythonApplication rec {
-  pname = "ocrmypdf";
-  version = "12.5.0";
-
-  src = fetchFromGitHub {
-    owner = "jbarlow83";
-    repo = "OCRmyPDF";
-    rev = "v${version}";
-    sha256 = "sha256-g80WedX+TGHE9EJ/RSgOc53PM17V3WZslUNaHoqKTo0=";
-  };
-
-  nativeBuildInputs = with python3Packages; [
-    setuptools
-    setuptools-scm-git-archive
-    setuptools-scm
-  ];
-
-  propagatedBuildInputs = with python3Packages; [
-    cffi
-    coloredlogs
-    img2pdf
-    importlib-resources
-    pdfminer
-    pluggy
-    pikepdf
-    pillow
-    reportlab
-    setuptools
-    tqdm
-  ];
-
-  checkInputs = with python3Packages; [
-    pypdf2
-    pytest
-    pytest-helpers-namespace
-    pytest-xdist
-    pytest-cov
-    python-xmp-toolkit
-    pytestCheckHook
-  ] ++ runtimeDeps;
-
-  patches = [
-    (substituteAll {
-      src = ./liblept.patch;
-      liblept = "${lib.getLib leptonica}/lib/liblept${stdenv.hostPlatform.extensions.sharedLibrary}";
-    })
-  ];
-
-  makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ ghostscript jbig2enc pngquant qpdf tesseract4 unpaper ]}" ];
-
-  meta = with lib; {
-    homepage = "https://github.com/jbarlow83/OCRmyPDF";
-    description = "Adds an OCR text layer to scanned PDF files, allowing them to be searched";
-    license = with licenses; [ mpl20 mit ];
-    platforms = platforms.linux;
-    maintainers = [ maintainers.kiwi ];
-    changelog = "https://github.com/jbarlow83/OCRmyPDF/blob/v${version}/docs/release_notes.rst";
-  };
-}
diff --git a/pkgs/tools/text/ocrmypdf/liblept.patch b/pkgs/tools/text/ocrmypdf/liblept.patch
deleted file mode 100644
index ed413a8b37bdf..0000000000000
--- a/pkgs/tools/text/ocrmypdf/liblept.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/src/ocrmypdf/leptonica.py b/src/ocrmypdf/leptonica.py
-index 328b063..b993cc9 100644
---- a/src/ocrmypdf/leptonica.py
-+++ b/src/ocrmypdf/leptonica.py
-@@ -46,7 +46,7 @@ if os.name == 'nt':
-     os.environ['PATH'] = shim_paths_with_program_files()
- else:
-     libname = 'lept'
--_libpath = find_library(libname)
-+_libpath = '@liblept@'
- if not _libpath:
-     raise MissingDependencyError(
-         """