guix_mirror_bot pushed a commit to branch master
in repository guix.

commit c77a394072ff2ef4077d333251f1bd9f767c925f
Author: Nicolas Graves <[email protected]>
AuthorDate: Sun Nov 23 21:10:19 2025 +0100

    gnu: python-sparqlkernel: Switch to pyproject.
    
    * gnu/packages/jupyter.scm (python-sparqlkernel):
    [build-system]: Switch to pyproject-build-system.
    [arguments]<#:phases>: Relocate phase 'install-kernelspec.
    [native-inputs]: Add python-setuptools.
    [description]: Improve style.
    
    Change-Id: I2b65b4e23f212ef654d0efcb9a8a2e28bed343e1
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/jupyter.scm | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/jupyter.scm b/gnu/packages/jupyter.scm
index 7663e1916c..3d67885a76 100644
--- a/gnu/packages/jupyter.scm
+++ b/gnu/packages/jupyter.scm
@@ -1274,7 +1274,7 @@ Docker registry.")
               (sha256
                (base32
                 "004v22nyi5cnpxq4fiws89p7i5wcnzv45n3n70axdd6prh6rkapx"))))
-    (build-system python-build-system)
+    (build-system pyproject-build-system)
     (arguments
      (list
       #:tests? #f                       ;no test suite
@@ -1285,13 +1285,14 @@ Docker registry.")
               (substitute* "sparqlkernel/install.py"
                 (("notebook.DEFAULT_STATIC_FILES_PATH") "\"/does-not-matter\"")
                 (("install_custom_css\\( destd, PKGNAME \\)") ""))))
-          (add-after 'add-install-to-pythonpath 'install-kernelspec
+          (add-after 'wrap 'install-kernelspec
             (lambda _
               (setenv "HOME" "/tmp")
               (invoke
                (string-append #$output "/bin/jupyter-sparqlkernel")
                "install"
                (string-append "--InstallKernelSpec.prefix=" #$output)))))))
+    (native-inputs (list python-setuptools))
     (propagated-inputs
      (list python-ipykernel
            python-notebook
@@ -1301,9 +1302,10 @@ Docker registry.")
            python-traitlets))
     (home-page "https://github.com/paulovn/sparql-kernel";)
     (synopsis "Jupyter kernel for SPARQL")
-    (description "This module installs a Jupyter kernel for SPARQL.  It allows
-sending queries to an SPARQL endpoint, fetching and presenting the results in
-a notebook.")
+    (description
+     "This module installs a Jupyter kernel for SPARQL.  It allows sending
+queries to an SPARQL endpoint, fetching and presenting the results in a
+notebook.")
     (license license:bsd-3)))
 
 (define-public python-ipympl

Reply via email to