Patchwork [v2,2/3] gnu: Add python-pypdf.

login
register
mail settings
Submitter Hartmut Goebel
Date Nov. 9, 2016, 10:39 p.m.
Message ID <1478731153-27023-2-git-send-email-h.goebel@crazy-compilers.com>
Download mbox | patch
Permalink /patch/17361/
State New
Headers show

Comments

Hartmut Goebel - Nov. 9, 2016, 10:39 p.m.
* gnu/packages/pdf.scm(python2-pypdf): New variable.
---
 gnu/packages/pdf.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
Ludovic Courtès - Nov. 10, 2016, 10:47 a.m.
Hartmut Goebel <h.goebel@crazy-compilers.com> skribis:

> * gnu/packages/pdf.scm(python2-pypdf): New variable.
                        ^
Space.

> +    (synopsis "Pure Python PDF toolkit")
> +    (description "A pure Python library built as a PDF toolkit.

Please turn this into a sentence.

OK with these changes, thanks!

Ludo’.

Patch

diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index e243006..e0279c6 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -829,3 +829,25 @@  is therefore a useful tool for websites that manage or manipulate PDFs.")
          (replace 'check
            (lambda _
              (zero? (system* "python" "-m" "unittest" "Tests.tests")))))))))
+
+(define-public python2-pypdf
+  (package
+    (name "python2-pypdf")
+    (version "1.13")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "pyPdf" version))
+              (sha256
+               (base32
+                "0fqfvamir7k41w84c73rghzkiv891gdr17q5iz4hgbf6r71y9v9s"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:tests? #f  ; no tests
+       #:python ,python-2))
+    (home-page "http://pybrary.net/pyPdf/")
+    (synopsis "Pure Python PDF toolkit")
+    (description "A pure Python library built as a PDF toolkit.
+
+Note: This module isn't maintained anymore.  For new projects please use
+python-pypdf2 instead.")
+    (license license:bsd-3)))