From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OCjEA54A11/CSwAA0tVLHw (envelope-from ) for ; Mon, 14 Dec 2020 06:05:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id OJ0cO50A119+WAAAB5/wlQ (envelope-from ) for ; Mon, 14 Dec 2020 06:05:17 +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 B78439403E8 for ; Mon, 14 Dec 2020 06:05:17 +0000 (UTC) Received: from localhost ([::1]:41258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kogyy-0007iP-Hd for larch@yhetil.org; Mon, 14 Dec 2020 01:05:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kogyk-0007cc-RT for guix-patches@gnu.org; Mon, 14 Dec 2020 01:05:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39324) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kogyk-0003wC-KT for guix-patches@gnu.org; Mon, 14 Dec 2020 01:05:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kogyk-000720-Ed for guix-patches@gnu.org; Mon, 14 Dec 2020 01:05:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45232] [PATCH] gnu: Add python-pdftotext. Resent-From: Z572 <873216071@qq.com> Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 14 Dec 2020 06:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45232 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 45232@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160792585726965 (code B ref -1); Mon, 14 Dec 2020 06:05:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Dec 2020 06:04:17 +0000 Received: from localhost ([127.0.0.1]:50870 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kogxx-00070o-Kb for submit@debbugs.gnu.org; Mon, 14 Dec 2020 01:04:17 -0500 Received: from lists.gnu.org ([209.51.188.17]:42902) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <873216071@qq.com>) id 1koeen-0003V9-2g for submit@debbugs.gnu.org; Sun, 13 Dec 2020 22:36:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <873216071@qq.com>) id 1koeem-0004Zg-SA for guix-patches@gnu.org; Sun, 13 Dec 2020 22:36:16 -0500 Received: from out203-205-221-202.mail.qq.com ([203.205.221.202]:54666 helo=qq.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <873216071@qq.com>) id 1koeef-00072T-EJ for guix-patches@gnu.org; Sun, 13 Dec 2020 22:36:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1607916955; bh=pBKiVi2QdJdjxbcfbebBdk6Y145TMoew4nXYTAhEpRI=; h=From:To:Subject:Date; b=NYMCysUtz24TIlqPPT3MjbetkfgwzP8qufRMGU5fx9FaaXTclOQ1Altkhgexp8hrY TwVbpXqp5VlqyFCXRiMG3uXdpvEjnLg2lxFnKgto4TWw4BF7o/Yl225861Qbcs0bLl igobvsYeOxDSkIC8aOaAmHm9ttjGKmjkCknucnI8= Received: from Z572 ([2409:8928:13a0:e48:c0b9:ef6c:5e55:ea1a]) by newxmesmtplogicsvrsza9.qq.com (NewEsmtp) with SMTP id 8AA25822; Mon, 14 Dec 2020 11:34:42 +0800 X-QQ-mid: xmsmtpt1607916882t01f82jc8 Message-ID: X-QQ-XMAILINFO: Md1+5jvuxHHtzIqvW82S76tS6MxxWMtWTb4x2s1vJw9O/sIH++YtiIDH8Rg0Gw cSfwke1sZc3bpeC1vAl45PH8pxZSUM6Yy5WmqkRAXP3Gh5rhmgbExT13Nz0LQMGXIapoRR12WPus jQh0hiAcqQLdxcsjka3ciae9RzYc3R8L9y/2NdFMh0mlap9Y0NodICpkjiCfb7JUustjOgniwSNp OgLEc0GNnAXbu+marHner7dnGZTIWEkpxQjs3vzj3tP7rN1AUtExXcUloq1MKQgmI8EInukzKnyF hB+uCFj651XMCGNqeCVTISdBnCLlTzxphol4C5s8ZBL+Hl4JAAAWb8AHJBFqXLR54FkQsC+vEHYQ c4vIroBezzeNB9kljSfRg8908BebyEpH7INfuGNP0dlkPPwFdTVWLYqA4u3/y3AFCbERFeai7zQZ tDntcn0J3jcO9KcL79uybp6I0vxlIPb6uCVoVcn5gZztFBYf7GuRpEelf2ik1pfcL37AsLejCgAV 1o+BvhNOKwwc8YbnmnQ7mcF9HH9R56FbgS0HyubL8NEnbXLchY64DR2KtqSJfp4Z0RevumwsEXl8 Q7/cP5w0PDl8NuwgiMxkevH6GGtv+kNcQ0gUbIFKTWHZgcNiKN+8ri6Ct1eQGpnyr4qZo4Qyh3Op fkiOCNAP7k1ZPgRz1zYl/E8MZXsthR+Vq8IBWWswfdBalK6xdSzmQZzMxm2CMlOb+5EQ== From: Z572 <873216071@qq.com> Date: Mon, 14 Dec 2020 11:34:41 +0800 Message-ID: <875z55qcvi.fsf@qq.com> MIME-Version: 1.0 Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=python-pdftotext.patch Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=203.205.221.202; envelope-from=873216071@qq.com; helo=qq.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 14 Dec 2020 01:04:12 -0500 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.70 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=qq.com header.s=s201512 header.b=NYMCysUt; dmarc=fail reason="SPF not aligned (relaxed)" header.from=qq.com (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: B78439403E8 X-Spam-Score: 3.70 X-Migadu-Scanner: scn1.migadu.com X-TUID: OAcQgn4UuN2f diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm index a06f351aae..817c6a27c8 100644 --- a/gnu/packages/pdf.scm +++ b/gnu/packages/pdf.scm @@ -21,6 +21,7 @@ ;;; Copyright =C2=A9 2020 Michael Rohleder ;;; Copyright =C2=A9 2020 Timotej Lazar ;;; Copyright =C2=A9 2020 Maxim Cournoyer +;;; Copyright =C2=A9 2020 Zheng Junjie <873216071@qq.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -309,6 +310,25 @@ When present, Poppler is able to correctly render CJK = and Cyrillic text.") Poppler PDF rendering library.") (license license:lgpl2.1+))) =20 +(define python-pdftotext + (package + (name "python-pdftotext") + (version "2.1.5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pdftotext" version)) + (sha256 + (base32 + "19la1cw1hmkcr8big04gm2dd5fw0y0z97g930aiy29s1gaqbiblq")))) + (build-system python-build-system) + (propagated-inputs + `(("poppler" ,poppler))) + (home-page "https://github.com/jalan/pdftotext") + (synopsis "Simple PDF text extraction") + (description "Simple PDF text extraction") + (license license:expat))) + (define-public libharu (package (name "libharu")