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>
This commit is contained in:
Nicolas Graves 2025-12-27 16:58:48 +01:00 committed by Sharlatan Hellseher
parent fbde1b3054
commit 37ef605f51
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

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