From patchwork Wed Jun 26 19:27:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Elsing X-Patchwork-Id: 65680 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5569D27BBEC; Wed, 26 Jun 2024 20:28:49 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id C6DD927BBEA for ; Wed, 26 Jun 2024 20:28:48 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sMYJX-0003SH-GK; Wed, 26 Jun 2024 15:28:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sMYJN-0003P3-0b for guix-patches@gnu.org; Wed, 26 Jun 2024 15:28:09 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sMYJG-0007em-PQ for guix-patches@gnu.org; Wed, 26 Jun 2024 15:28:08 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sMYJJ-0007EV-4V for guix-patches@gnu.org; Wed, 26 Jun 2024 15:28:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71787] [PATCH 09/12] gnu: Add python-pymupdf. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 26 Jun 2024 19:28:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71787 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71787@debbugs.gnu.org Cc: David Elsing Received: via spool by 71787-submit@debbugs.gnu.org id=B71787.171943007927722 (code B ref 71787); Wed, 26 Jun 2024 19:28:05 +0000 Received: (at 71787) by debbugs.gnu.org; 26 Jun 2024 19:27:59 +0000 Received: from localhost ([127.0.0.1]:40348 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMYJD-0007Cx-3c for submit@debbugs.gnu.org; Wed, 26 Jun 2024 15:27:59 -0400 Received: from mout01.posteo.de ([185.67.36.65]:60761) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMYJ6-0007BM-9F for 71787@debbugs.gnu.org; Wed, 26 Jun 2024 15:27:52 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 33FA3240028 for <71787@debbugs.gnu.org>; Wed, 26 Jun 2024 21:27:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1719430064; bh=2acnS+NrUh+f6VZWgYPdoYwoZReck4o1N84B3O/SZBk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=L+zaEuQMV9dDmd2YSLG0+6ATC+Lr1EECZ9zDR4ySO2HyM3FXtiS5+QcOXr8J/cWVI x8njQUV0U4R1DJduta45JE3fjLwlUogDgod0ZOkqc9wDV4u4M6eZjVBMG3LMFkF0Sn SaKHDEL604bl3R/pPMv2jzQWJ+kml7GrhF4rx/E+SEtXmazeL+6RZemM62IMU1HcH2 qFw+K8vsiwnwIXieFs7e5Br2OJF48TGu/+JHtrwKPBtZqSIhONy+Ccpo7/Vp9RmSu5 jLfqBTp+S9LKluVqu3kHZ7E740ZV01wqbMx//wS9YKlhhpasxRraS4lkePjZErD0Z4 cZV4Yt30nJG0Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4W8Wtl5f2Wz9rxG; Wed, 26 Jun 2024 21:27:43 +0200 (CEST) From: David Elsing Date: Wed, 26 Jun 2024 19:27:02 +0000 Message-ID: <20240626192717.12818-9-david.elsing@posteo.net> In-Reply-To: <20240626192505.12401-1-david.elsing@posteo.net> References: <20240626192505.12401-1-david.elsing@posteo.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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")