diff options
author | Hanketsu <hanketsu@egregore.fun> | 2025-03-04 11:54:54 +0100 |
---|---|---|
committer | Hanketsu <hanketsu@egregore.fun> | 2025-06-13 00:04:45 +0200 |
commit | 8944a60d4767dde88165619c22a758bb95f78819 (patch) | |
tree | af953b8d9aff8fb9fc1389c185dd8e7ac35f99b0 | |
parent | e5aa707dc14c4dbf1128c2f6cbc4f5d0d4da5a89 (diff) |
battering: Add python-xhtml2pdf.
* battering/packages/python-xyz.scm (python-xhtml2pdf): New variable.
-rw-r--r-- | battering/packages/python-xyz.scm | 32 |
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))) |