From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id eH2WHvFrfGbWCgEA62LTzQ:P1 (envelope-from ) for ; Wed, 26 Jun 2024 19:28:49 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id eH2WHvFrfGbWCgEA62LTzQ (envelope-from ) for ; Wed, 26 Jun 2024 21:28:49 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=L+zaEuQM; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1719430129; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=BBnJbj6zypUbECyfnwSuZCHfK8wVrDek0Z95RElKZ8k=; b=QM7R+ogVvmexfGnFHAjDl3USz50HZFIugYgCvBt/O0mDsceuY75qcLN48Ty2BAB7TeryYE 2Ox5gI+59j2bA+VUbH8KvL3QtDraHibwXp9jv9/vdnAS0kB3UMMS0qycgQfsFz1JnqOuG3 4UHjKNJaP1qZWWu6jg4Um4n6HKIMFxtH/w7qDWh7TIoJAIwr1itJMNrEEfx4ub4Ulot3/y Avq8qm3onP27UgfXpt+mnmdlSsTe9Cau8RuEMr7iRmeLk0sZLx/moBZMCpGG9Knq1CC6Hn 9L2pn23c5RlpPjyi6y3foRmJ5MHlVKgN9mGRTOOOLNKLV57CoTeiQg46VBFjFw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=L+zaEuQM; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1719430129; a=rsa-sha256; cv=none; b=Wi5zXtTBAinHjDgWDa/I95/gnMrUlXsTSh1wy01QMVffgigwsqA93xKeyXeaBI8fYM+kW2 rVy8CKk5rLlS3D9+T1wPAOitMwgkwXrgFYfDQ1iVhdkzHYXTkvYWGsEVa3t1Rtxz6IQ6xQ iCY7Fu3SjtbhN2anOSkQMX1VUaV/QHAiOsZZZjDrrqkZ9107UPRlxnCjtdNdc3Ck369nGF KwscIMuuuhbUFpQH3tBjKOBSl0KEEuKVBMNF1Q4zMfdyjPm0pOuwyeaDp63w7fPUBEhBh5 yXPV2eZimT9HmmTWM2JHJ3IbumgF8i+9QZwa8tnwW8KbgUiI9Dmjpbum/JrcGQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5DC5876642 for ; Wed, 26 Jun 2024 21:28:49 +0200 (CEST) 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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: 3.93 X-Migadu-Queue-Id: 5DC5876642 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: 3.93 X-TUID: Fw5pAAAH/UiZ * 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