GNU bug report logs -
#65806
[PATCH 0/4 pdf-crop-margins python package]
Previous Next
Full log
View this message in rfc822 format
* 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.