From 3803d4ebbd285143676a951f9e77d481fd5a4bb7 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Fri, 21 Nov 2025 22:27:45 +0100 Subject: [PATCH] gnu: python-json2html: Switch to pyproject. * gnu/packages/python-xyz.scm (python-json2html): [build-system]: Switch to pyproject-build-system. [arguments]: Run tests with <#:test-backend, #:test-flags> instead of <#:phases>. [native-inputs]: Add python-setuptools. [description]: Improve style. Change-Id: Ie92e5e618ffb33f27747b0ed72d51b0b44c37af0 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 393aa8cf2f93931345a3aa5cbf5e4e85df6bfd2c..ed23e25c3bda2e0f442b43b9abda59bc5fd12fb9 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -33604,7 +33604,6 @@ platform-specific directories, e.g. the ``user data dir''.") (name "python-json2html") (version "1.3.0") (source - ;; There are no tests in the PyPI tarball. (origin (method git-fetch) (uri (git-reference @@ -33613,19 +33612,17 @@ platform-specific directories, e.g. the ``user data dir''.") (file-name (git-file-name name version)) (sha256 (base32 "1ncypljnl5y8lsxy6ibcqy412kx3mzxl4ajg67568hvq98kv1sb3")))) - (build-system python-build-system) + (build-system pyproject-build-system) (arguments - '(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? inputs outputs #:allow-other-keys) - (when tests? - (add-installed-pythonpath inputs outputs) - (invoke "python" "test/run_tests.py"))))))) + (list + #:test-backend #~'custom + #:test-flags #~(list "test/run_tests.py"))) + (native-inputs (list python-setuptools)) (home-page "https://github.com/softvar/json2html") (synopsis "Convert JSON to HTML table") - (description "@code{python-json2html} is a python module to convert JSON -into a human readable HTML table representation.") + (description + "@code{python-json2html} is a python module to convert JSON into a human +readable HTML table representation.") (license license:expat))) (define-public python-face