@@ -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")