From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id znEgJuO0MGAcHQAA0tVLHw (envelope-from ) for ; Sat, 20 Feb 2021 07:06:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id +BSLIeO0MGAFPAAA1q6Kng (envelope-from ) for ; Sat, 20 Feb 2021 07:06:11 +0000 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 D1E5420941 for ; Sat, 20 Feb 2021 08:06:10 +0100 (CET) Received: from localhost ([::1]:60454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lDMLB-0007k8-VG for larch@yhetil.org; Sat, 20 Feb 2021 02:06:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36788) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDML4-0007jz-LR for guix-patches@gnu.org; Sat, 20 Feb 2021 02:06:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39309) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lDML4-0000Mq-1j for guix-patches@gnu.org; Sat, 20 Feb 2021 02:06:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lDML3-0003uW-TO for guix-patches@gnu.org; Sat, 20 Feb 2021 02:06:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46654] [PATCH 1/2] gnu: Add python-pdfminer.six. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 20 Feb 2021 07:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46654 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46654@debbugs.gnu.org Cc: Vinicius Monego X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161380473414985 (code B ref -1); Sat, 20 Feb 2021 07:06:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Feb 2021 07:05:34 +0000 Received: from localhost ([127.0.0.1]:50855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lDMKc-0003td-96 for submit@debbugs.gnu.org; Sat, 20 Feb 2021 02:05:34 -0500 Received: from lists.gnu.org ([209.51.188.17]:33830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lDMKa-0003tV-7l for submit@debbugs.gnu.org; Sat, 20 Feb 2021 02:05:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDMKa-0007jM-3a for guix-patches@gnu.org; Sat, 20 Feb 2021 02:05:32 -0500 Received: from mout02.posteo.de ([185.67.36.66]:40425) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDMKX-0008Uw-Ol for guix-patches@gnu.org; Sat, 20 Feb 2021 02:05:31 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id AF45F2400FC for ; Sat, 20 Feb 2021 08:05:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1613804726; bh=y7FJ8FefS66wOlkktJO8Oyt9vsMszxKpEvSwug8cMtI=; h=From:To:Cc:Subject:Date:From; b=hI3RcEDTZUVCsHs0v43I/jScSGgTEipLbqtvjCol9Bkr8iJs33MJ5uqlkYGZL3RSW Vv0sAMcCQylYe/iHr27jObAMflquWBmuWm0Mk2sUmguio0VHClvSYL6v7qO1BKDVWv kkENMn4fqfRj/J58Fw+cd8+OvF1lETVk+44/wm9xY+k8sEb8xGcwM5hx9HLDXQs5DE tZAwLSyUvMZDUKwZmWKjNvJgUCLNuct4smSFE7WlVyp0k0g2MEKXkrnPCGjEMuBwgD 80mGhDWdDupIkVFnBVZlkL0InKEjYkv9Ca/ADryfjB00L/Q1wGT6yduLp2yO04Qmnl 3fkPC8mN/JUog== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4DjKGF2VJtz6tmG; Sat, 20 Feb 2021 08:05:25 +0100 (CET) From: Vinicius Monego Date: Sat, 20 Feb 2021 04:05:03 -0300 Message-Id: <20210220070503.36250-1-monego@posteo.net> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.66; envelope-from=monego@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 3.73 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=hI3RcEDT; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: D1E5420941 X-Spam-Score: 3.73 X-Migadu-Scanner: scn0.migadu.com X-TUID: uKtClmIAXbA7 * gnu/packages/python-xyz.scm (python-pdfminer.six): 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 a504bb521b..fe55d9b74e 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -12251,6 +12251,55 @@ encoding algorithms to do fuzzy string matching.") module, adding support for Unicode strings.") (license license:bsd-2))) +(define-public python-pdfminer.six + (package + (name "python-pdfminer.six") + (version "20201018") + ;; There are no tests in the PyPI tarball. + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pdfminer/pdfminer.six") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1a2fxxnnjqbx344znpvx7cnv1881dk6585ibw01inhfq3w6yj2lr")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; Tests write to the source tree. + (add-after 'unpack 'make-git-checkout-writable + (lambda _ + (for-each make-file-writable (find-files ".")) + #t)) + (replace 'check + (lambda _ + (invoke "make" "test"))) + (add-before 'reset-gzip-timestamps 'make-files-writable + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (for-each make-file-writable + (find-files out "\\.gz$")) + #t)))))) + (propagated-inputs + `(("python-chardet" ,python-chardet) + ("python-cryptography" ,python-cryptography) + ("python-sortedcontainers" + ,python-sortedcontainers))) + (native-inputs + `(("python-nose" ,python-nose) + ("python-tox" ,python-tox))) + (home-page "https://github.com/pdfminer/pdfminer.six") + (synopsis "PDF parser and analyzer") + (description "@code{pdfminer.six} is a community maintained fork of +the original PDFMiner. It is a tool for extracting information from PDF +documents. It focuses on getting and analyzing text data. Pdfminer.six +extracts the text from a page directly from the sourcecode of the PDF. It +can also be used to get the exact location, font or color of the text.") + (license license:expat))) + (define-public python-rarfile (package (name "python-rarfile") -- 2.30.1