aboutsummaryrefslogtreecommitdiff
path: root/battering
diff options
context:
space:
mode:
Diffstat (limited to 'battering')
-rw-r--r--battering/packages/python-xyz.scm32
1 files changed, 32 insertions, 0 deletions
diff --git a/battering/packages/python-xyz.scm b/battering/packages/python-xyz.scm
index 6b056aa..3bd68ac 100644
--- a/battering/packages/python-xyz.scm
+++ b/battering/packages/python-xyz.scm
@@ -631,3 +631,35 @@ support Arabic.")
"This library reconstructs Arabic sentences to be used in applications
that do not support Arabic text.")
(license license:expat)))
+
+(define-public python-xhtml2pdf
+ (package
+ (name "python-xhtml2pdf")
+ (version "0.2.16")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/xhtml2pdf/xhtml2pdf")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1hgn9wjasgs28dhmxr3i907pg2f6sn1z0c0czzrw45pqmhxbbxmj"))))
+ (build-system pyproject-build-system)
+ (propagated-inputs (list python-arabic-reshaper
+ python-html5lib
+ python-pillow
+ python-pyhanko
+ python-pyhanko-certvalidator
+ python-pypdf
+ python-bidi
+ python-reportlab
+ python-svglib))
+ (native-inputs (list python-coverage python-setuptools python-tomli
+ python-tox python-wheel))
+ ;; Tests require an internet connection.
+ (arguments `(#:tests? #f))
+ (home-page "https://github.com/xhtml2pdf/xhtml2pdf")
+ (synopsis "PDF generator using HTML and CSS")
+ (description "A library for converting HTML into PDFs using ReportLab.")
+ (license license:asl2.0)))