guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 3803d4ebbd285143676a951f9e77d481fd5a4bb7
Author: Nicolas Graves <[email protected]>
AuthorDate: Fri Nov 21 22:27:45 2025 +0100

    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 <[email protected]>
---
 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 393aa8cf2f..ed23e25c3b 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

Reply via email to