GNU bug report logs - #65806
[PATCH 0/4 pdf-crop-margins python package]

Previous Next

Package: guix-patches;

Reported by: Nicolas Graves <ngraves <at> ngraves.fr>

Date: Thu, 7 Sep 2023 15:20:02 UTC

Owned by: Steve George <steve <at> futurile.net>

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: 65806 <at> debbugs.gnu.org
Cc: ngraves <at> ngraves.fr
Subject: [bug#65806] [PATCH 4/4] gnu: Add pdf-crop-margins-cli.
Date: Fri,  8 Sep 2023 01:32:13 +0200
* gnu/packages/pdf.scm (pdf-crop-margins-cli): New variable.
---
 gnu/packages/pdf.scm | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 2266296621..7b224746db 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -1021,6 +1021,21 @@ (define-public pdf-crop-margins
 @end itemize")
       (license license:gpl3+))))
 
+(define-public pdf-crop-margins-cli
+  (package
+    (inherit pdf-crop-margins)
+    (name "pdf-crop-margins-cli")
+    (arguments
+     (list #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'delete-gui-dependencies
+                 (lambda _
+                   (substitute* "setup.py"
+                     (("\"pillow[><=0-9\\.,]*\",")      "")
+                     (("\"PySimpleGUI[><=0-9\\.,]*\",") "")))))))
+    (native-inputs (list python-wheel python-setuptools))
+    (propagated-inputs (list ghostscript python-pymupdf))))
+
 (define-public qpdf
   (package
     (name "qpdf")
-- 
2.41.0





This bug report was last modified 1 year and 44 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.