unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#37356] [PATCH] gnu: Add stapler.
@ 2019-09-09 15:01 Arun Isaac
  2019-09-26  9:40 ` Ludovic Courtès
  2019-09-28  6:51 ` bug#37356: " Arun Isaac
  0 siblings, 2 replies; 3+ messages in thread
From: Arun Isaac @ 2019-09-09 15:01 UTC (permalink / raw)
  To: 37356

* gnu/packages/pdf.scm (stapler): New variable.
---
 gnu/packages/pdf.scm | 36 +++++++++++++++++++++++++++++++++++-
 1 file changed, 35 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index d45a78222c..af915422de 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -9,7 +9,7 @@
 ;;; Copyright © 2016, 2017 Marius Bakke <mbakke@fastmail.com>
 ;;; Copyright © 2016, 2017 Ludovic Courtès <ludo@gnu.org>
 ;;; Copyright © 2016 Julien Lepiller <julien@lepiller.eu>
-;;; Copyright © 2016 Arun Isaac <arunisaac@systemreboot.net>
+;;; Copyright © 2016, 2019 Arun Isaac <arunisaac@systemreboot.net>
 ;;; Copyright © 2017, 2018 Leo Famulari <leo@famulari.name>
 ;;; Copyright © 2017 Alex Vong <alexvong1995@gmail.com>
 ;;; Copyright © 2017, 2018 Rene Saavedra <pacoon@protonmail.com>
@@ -1116,3 +1116,37 @@ presentation.  The input files processed by pdfpc are PDF documents.")
 rendering of the file.  The rendering is done by creating outline curves
 through the Pango @code{ft2} backend.")
       (license license:lgpl2.0+))))
+
+(define-public stapler
+  (package
+    (name "stapler")
+    (version "0.3.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/hellerbarde/stapler")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "06w7xanzr7cicqik62g7zqs57j4y6fc7hflrc1rlmphxx40hkg6r"))))
+    (build-system python-build-system)
+    (inputs
+     `(("python2-pypdf2" ,python2-pypdf2)))
+    (arguments
+     `(#:python ,python-2
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-pypdf-version-requirement
+           ;; A PyPDF2 version requirement of 1.25.1 is hard-coded in
+           ;; setup.py. Relax it to work with any version of PyPDF2.
+           (lambda _
+             (substitute* "setup.py"
+               (("PyPDF2==1.25.1") "PyPDF2"))
+             #t)))))
+    (home-page "https://github.com/hellerbarde/stapler")
+    (synopsis "PDF manipulation tool")
+    (description "Stapler is a pure Python alternative to PDFtk, a tool for
+manipulating PDF documents from the command line.")
+    (license license:bsd-3)))
-- 
2.23.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#37356] [PATCH] gnu: Add stapler.
  2019-09-09 15:01 [bug#37356] [PATCH] gnu: Add stapler Arun Isaac
@ 2019-09-26  9:40 ` Ludovic Courtès
  2019-09-28  6:51 ` bug#37356: " Arun Isaac
  1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2019-09-26  9:40 UTC (permalink / raw)
  To: Arun Isaac; +Cc: 37356

Hello,

Arun Isaac <arunisaac@systemreboot.net> skribis:

> * gnu/packages/pdf.scm (stapler): New variable.

[...]

> +    (home-page "https://github.com/hellerbarde/stapler")
> +    (synopsis "PDF manipulation tool")
> +    (description "Stapler is a pure Python alternative to PDFtk, a tool for
> +manipulating PDF documents from the command line.")

Perhaps add a few words on the kind of PDF manipulations it supports.

Otherwise LGTM, thanks!

Ludo’.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#37356: [PATCH] gnu: Add stapler.
  2019-09-09 15:01 [bug#37356] [PATCH] gnu: Add stapler Arun Isaac
  2019-09-26  9:40 ` Ludovic Courtès
@ 2019-09-28  6:51 ` Arun Isaac
  1 sibling, 0 replies; 3+ messages in thread
From: Arun Isaac @ 2019-09-28  6:51 UTC (permalink / raw)
  To: 37356-done; +Cc: Ludovic Courtès

[-- Attachment #1: Type: text/plain, Size: 101 bytes --]


Thanks for the review! I added a complete list of features to the
description and pushed to master.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-09-28  6:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-09 15:01 [bug#37356] [PATCH] gnu: Add stapler Arun Isaac
2019-09-26  9:40 ` Ludovic Courtès
2019-09-28  6:51 ` bug#37356: " Arun Isaac

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).