[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#71787] [PATCH 09/12] gnu: Add python-pymupdf.
From: |
David Elsing |
Subject: |
[bug#71787] [PATCH 09/12] gnu: Add python-pymupdf. |
Date: |
Wed, 26 Jun 2024 19:27:02 +0000 |
* gnu/packages/python-xyz.scm (python-pymupdf): New variable.
---
gnu/packages/python-xyz.scm | 49 +++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ff507e1855..111a3dd56c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8990,6 +8990,55 @@ (define-public python-pdftotext
(description "Pdftotext is a Python library of PDF text extraction.")
(license license:expat)))
+(define-public python-pymupdf
+ (package
+ (name "python-pymupdf")
+ (version "1.24.7")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "PyMuPDF" version))
+ (sha256
+ (base32 "1f2r7c0nfw2g49q8fgf0kwkadihnf6c47pa93zavl5gj0kiflk53"))))
+ (build-system pyproject-build-system)
+ (inputs
+ (list
+ mupdf/tesseract))
+ (native-inputs
+ (list
+ python-pillow
+ python-pytest
+ python-psutil
+ swig))
+ (propagated-inputs (list mupdf))
+ (arguments
+ (list
+ ;; Disable failing tests
+ #:test-flags
+ '(list
+ "-k" (string-append
+ "not test_flake8"
+ " and not test_fontarchive"
+ " and not test_subset_fonts"
+ " and not test_color_count"
+ " and not test_3050"
+ " and not test_pylint"
+ " and not test_textbox3"))
+ #:phases
+ '(modify-phases %standard-phases
+ (add-after 'unpack 'setenv
+ (lambda _
+ (setenv "PYMUPDF_SETUP_MUPDF_BUILD" "")
+ (setenv "PYMUPDF_SETUP_IMPLEMENTATIONS" "b"))))))
+ (home-page "https://github.com/pymupdf/PyMuPDF")
+ (synopsis
+ "Python library for the analysis and manipulation of PDF files")
+ (description
+ "This package provides a high performance Python library for data
+extraction, analysis, conversion & manipulation of PDF (and other)
+documents.")
+ (license license:agpl3+)))
+
(define-public python-pluginbase
(package
(name "python-pluginbase")
--
2.45.1
- [bug#71787] [PATCH 00/12] Update and unbundle ghostscript and mupdf, David Elsing, 2024/06/26
- [bug#71787] [PATCH 01/12] gnu: Add lcms2mt., David Elsing, 2024/06/26
- [bug#71787] [PATCH 10/12] gnu: Add python-svglib., David Elsing, 2024/06/26
- [bug#71787] [PATCH 04/12] gnu: ijs: Remove unneeded files and build shared library., David Elsing, 2024/06/26
- [bug#71787] [PATCH 09/12] gnu: Add python-pymupdf.,
David Elsing <=
- [bug#71787] [PATCH 05/12] gnu: ghostscript: Unbundle dependencies and remove non-free parts., David Elsing, 2024/06/26
- [bug#71787] [PATCH 02/12] gnu: Add memento., David Elsing, 2024/06/26
- [bug#71787] [PATCH 08/12] gnu: Add mupdf/tesseract., David Elsing, 2024/06/26
- [bug#71787] [PATCH 11/12] gnu: Add python-rst2pdf., David Elsing, 2024/06/26
- [bug#71787] [PATCH 03/12] gnu: Add extract., David Elsing, 2024/06/26
- [bug#71787] [PATCH 07/12] gnu: mupdf: Update to 1.24.4 and unbundle remaining dependencies., David Elsing, 2024/06/26
- [bug#71787] [PATCH 06/12] gnu: Add ghostscript/tesseract., David Elsing, 2024/06/26
- [bug#71787] [PATCH 12/12] gnu: Add ghostscript-documentation., David Elsing, 2024/06/26