Message ID | 1478641022-30723-2-git-send-email-h.goebel@crazy-compilers.com |
---|---|
State | New |
Headers | show |
On Tue, Nov 08, 2016 at 10:37:01PM +0100, Hartmut Goebel wrote: > * gnu/packages/pdf.scm(python2-pypdf): New variable. Same feedback as for python-pypdf2... > + (home-page "http://mstamy2.github.com/PyPDF2") Also, does it have its own home-page?
On Tue, Nov 08, 2016 at 10:37:01PM +0100, Hartmut Goebel wrote: > * gnu/packages/pdf.scm(python2-pypdf): New variable. > --- > + (uri (string-append "https://pypi.python.org/packages/source/p" > + "/pyPdf/pyPdf-" version ".tar.gz")) ^^^^^^^ One of the things I've picked up is that this will work with the pypi importer if you feed it "pyPdf"
Am 09.11.2016 um 00:57 schrieb Leo Famulari: >> > + (home-page "http://mstamy2.github.com/PyPDF2") > Also, does it have its own home-page? Well spotted :-)
Am 09.11.2016 um 08:19 schrieb Efraim Flashner: > One of the things I've picked up is that this will work with the pypi > importer if you feed it "pyPdf" Fixed. I tries some combinations but obviously missed the obvious one :-)
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm index 558ea89..ca3f830 100644 --- a/gnu/packages/pdf.scm +++ b/gnu/packages/pdf.scm @@ -821,3 +821,37 @@ is therefore a useful tool for websites that manage or manipulate PDFs.") (define-public python2-pypdf2 (package-with-python2 python-pypdf2)) + +(define-public python2-pypdf + (package + (name "python2-pypdf") + (version "1.13") + (source (origin + (method url-fetch) + (uri (string-append "https://pypi.python.org/packages/source/p" + "/pyPdf/pyPdf-" version ".tar.gz")) + (sha256 + (base32 + "0fqfvamir7k41w84c73rghzkiv891gdr17q5iz4hgbf6r71y9v9s")))) + (build-system python-build-system) + (arguments + `(#:tests? #f ; no tests + #:python ,python-2)) + (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 + +Note: This module isn't maintained anymore. For new projects please use +python-pypdf2 instead.") + (license license:bsd-3)))