gnu: python-sparqlkernel: Use gexps and fix inputs.
[arguments]: Use gexps. [tests?]: Add comment. [phases]: Delete trailing #t. {no-custom-css}: Use a regular lambda. {install-kernelspec}: Move after the add-installed-pythonpath phase. Remove now extraneous add-installed-pythonpath call. Adjust for gexps. [native-inputs]: Delete field. [propagated-inputs]: Add python-ipykernel, python-notebook, python-rdflib and pythopython-traitlets. [description]: Avoid '&' in description.
This commit is contained in:
parent
2c30237809
commit
7fc8e9ea90
|
@ -620,33 +620,32 @@ (define-public python-sparqlkernel
|
||||||
"004v22nyi5cnpxq4fiws89p7i5wcnzv45n3n70axdd6prh6rkapx"))))
|
"004v22nyi5cnpxq4fiws89p7i5wcnzv45n3n70axdd6prh6rkapx"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f
|
(list
|
||||||
#:phases
|
#:tests? #f ;no test suite
|
||||||
(modify-phases %standard-phases
|
#:phases
|
||||||
(add-after 'unpack 'no-custom-css
|
#~(modify-phases %standard-phases
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(add-after 'unpack 'no-custom-css
|
||||||
|
(lambda _
|
||||||
(substitute* "sparqlkernel/install.py"
|
(substitute* "sparqlkernel/install.py"
|
||||||
(("install_custom_css\\( destd, PKGNAME \\)") ""))
|
(("install_custom_css\\( destd, PKGNAME \\)") ""))))
|
||||||
#t))
|
(add-after 'add-install-to-pythonpath 'install-kernelspec
|
||||||
(add-after 'install 'install-kernelspec
|
(lambda _
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(setenv "HOME" "/tmp")
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(invoke
|
||||||
(setenv "HOME" "/tmp")
|
(string-append #$output "/bin/jupyter-sparqlkernel")
|
||||||
(add-installed-pythonpath inputs outputs)
|
"install"
|
||||||
(invoke
|
(string-append "--InstallKernelSpec.prefix=" #$output)))))))
|
||||||
(string-append out "/bin/jupyter-sparqlkernel")
|
|
||||||
"install"
|
|
||||||
(string-append "--InstallKernelSpec.prefix=" out))
|
|
||||||
#t))))))
|
|
||||||
(native-inputs
|
|
||||||
(list python-traitlets python-jupyter-client python-notebook
|
|
||||||
python-ipykernel python-html5lib-0.9))
|
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-sparqlwrapper python-pygments))
|
(list python-ipykernel
|
||||||
|
python-notebook
|
||||||
|
python-pygments
|
||||||
|
python-rdflib
|
||||||
|
python-sparqlwrapper
|
||||||
|
python-traitlets))
|
||||||
(home-page "https://github.com/paulovn/sparql-kernel")
|
(home-page "https://github.com/paulovn/sparql-kernel")
|
||||||
(synopsis "Jupyter kernel for SPARQL")
|
(synopsis "Jupyter kernel for SPARQL")
|
||||||
(description "This module installs a Jupyter kernel for SPARQL. It allows
|
(description "This module installs a Jupyter kernel for SPARQL. It allows
|
||||||
sending queries to an SPARQL endpoint and fetching & presenting the results in
|
sending queries to an SPARQL endpoint, fetching and presenting the results in
|
||||||
a notebook.")
|
a notebook.")
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue