diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-12-27 16:58:48 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-31 17:10:54 +0000 |
| commit | 37ef605f51796edd8a22bfd72a7ec3a44ed6981a (patch) | |
| tree | ebdd1cdba875b9aea16bf6d1f63e2fe9b32d2595 | |
| parent | fbde1b305402aae707e9570d45982aac851c5ed9 (diff) | |
gnu: python-reportlab: Update to 4.4.7.
* gnu/packages/pdf.scm (python-reportlab): Update to 4.4.7.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:test-target>: Migrate to <#:phases, #:test-backend, #:test-flags>.
<#:configure-flags>: Refresh them.
[native-inputs]: Add python-setuptools.
[propagated-inputs]: Remove python-chardet. Add
python-charset-normalizer.
Change-Id: I941ee2c6dc3c893a0ab3f537a1d898c0a859a0c9
Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
| -rw-r--r-- | gnu/packages/pdf.scm | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm index c3a97fee525..1b5cbc28d9f 100644 --- a/gnu/packages/pdf.scm +++ b/gnu/packages/pdf.scm @@ -1248,18 +1248,20 @@ optimize toolbar for portrait / landscape (define-public python-reportlab (package (name "python-reportlab") - (version "4.0.8") + (version "4.4.7") (source (origin (method url-fetch) (uri (pypi-uri "reportlab" version)) (sha256 (base32 - "0lq8fibbgp7bfasxjf33s4hzqr405y655bkxggxmjxqsga0lb68n")))) - (build-system python-build-system) + "0w5isxc1ds19jhpigfjjyavc6qzkwxskwgwkcikrkrb5z5x2is21")))) + (build-system pyproject-build-system) (arguments (list - #:test-target "tests" - #:configure-flags '(list "--no-download-t1-files") + ;; tests: 386 passed + #:test-backend #~'custom + #:test-flags #~(list "runAll.py") + #:configure-flags #~'(("--no-download-t1-files" . "")) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'find-libraries @@ -1267,7 +1269,14 @@ optimize toolbar for portrait / landscape (let ((dlt1 (assoc-ref inputs "font-curve-files"))) (substitute* "setup.py" (("http://www.reportlab.com/ftp/pfbfer-20180109.zip") - (string-append "file://" dlt1))))))))) + (string-append "file://" dlt1)))))) + (replace 'check + (lambda args + ;; KeyError: 'Vera' + (delete-file "tests/test_graphics_charts.py") + (with-directory-excursion "tests" + (apply (assoc-ref %standard-phases 'check) args))))))) + (native-inputs (list python-setuptools)) (inputs `(("font-curve-files" ,(origin @@ -1277,7 +1286,7 @@ optimize toolbar for portrait / landscape (base32 "1v0gy4mbx02ys96ssx89420y0njknlrxs2bx64bv4rp8a0al66w5")))))) (propagated-inputs - (list python-chardet python-pillow)) + (list python-charset-normalizer python-pillow)) (home-page "https://www.reportlab.com") (synopsis "Python library for generating PDFs and graphics") (description "This is the ReportLab PDF Toolkit. It allows rapid creation |
