[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#65806] [PATCH 4/4] gnu: Add pdf-crop-margins-cli.
From: |
Nicolas Graves |
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