From patchwork Tue Nov 8 21:37:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hartmut Goebel X-Patchwork-Id: 17320 Received: (qmail 83713 invoked by uid 89); 8 Nov 2016 21:37:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=websites, 7843, more, Hx-languages-length:1736 X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: lists.gnu.org Received: from lists.gnu.org (HELO lists.gnu.org) (208.118.235.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 08 Nov 2016 21:37:22 +0000 Received: from localhost ([::1]:35647 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4E52-0001ow-Ch for patchwork@sourceware.org; Tue, 08 Nov 2016 16:37:20 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4E4r-0001o6-3S for guix-devel@gnu.org; Tue, 08 Nov 2016 16:37:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4E4n-00059Y-TW for guix-devel@gnu.org; Tue, 08 Nov 2016 16:37:09 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:50195) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c4E4n-00059H-Nh for guix-devel@gnu.org; Tue, 08 Nov 2016 16:37:05 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3tD2hJ0zT0z3hj1D for ; Tue, 8 Nov 2016 22:37:03 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3tD2hH6Vmbzvkx5 for ; Tue, 8 Nov 2016 22:37:03 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id sR7u5C-gbr-w for ; Tue, 8 Nov 2016 22:37:02 +0100 (CET) Received: from hermia.goebel-consult.de (ppp-188-174-133-41.dynamic.mnet-online.de [188.174.133.41]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Tue, 8 Nov 2016 22:37:02 +0100 (CET) Received: from lenashee.goebel-consult.de (lenashee.goebel-consult.de [192.168.110.2]) by hermia.goebel-consult.de (Postfix) with ESMTP id 3056F60378 for ; Tue, 8 Nov 2016 22:37:02 +0100 (CET) From: Hartmut Goebel To: guix-devel@gnu.org Subject: [PATCH 1/3] gnu: Add python-pypdf2. Date: Tue, 8 Nov 2016 22:37:00 +0100 Message-Id: <1478641022-30723-1-git-send-email-h.goebel@crazy-compilers.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 212.18.0.9 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+patchwork=sourceware.org@gnu.org Sender: "Guix-devel" * gnu/packages/pdf.scm(python-pypdf2, python2-pypdf2): New variables. --- gnu/packages/pdf.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm index ee33e3c..558ea89 100644 --- a/gnu/packages/pdf.scm +++ b/gnu/packages/pdf.scm @@ -784,3 +784,40 @@ the framebuffer.") (description "@command{pdf2svg} is a simple command-line PDF to SVG converter using the Poppler and Cairo libraries.") (license license:gpl2+))) + +(define-public python-pypdf2 + (package + (name "python-pypdf2") + (version "1.26.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "PyPDF2" version)) + (sha256 + (base32 + "11a3aqljg4sawjijkvzhs3irpw0y67zivqpbjpm065ha5wpr13z2")))) + (build-system python-build-system) + (arguments + '(#:tests? #f)) ; no tests + (home-page "http://mstamy2.github.com/PyPDF2") + (synopsis "Pure-Python PDF toolkit") + (description "A Pure-Python library built as a PDF toolkit. It is capable +of: + +@itemize +@item extracting document information (title, author, …) +@item splitting documents page by page +@item merging documents page by page +@item cropping pages +@item merging multiple pages into a single page +@item encrypting and decrypting PDF files +@item and more! +@end itemize + +By being Pure-Python, it should run on any Python platform without any +dependencies on external libraries. It can also work entirely on StringIO +objects rather than file streams, allowing for PDF manipulation in memory. It +is therefore a useful tool for websites that manage or manipulate PDFs.") + (license license:bsd-3))) + +(define-public python2-pypdf2 + (package-with-python2 python-pypdf2))