[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
13/13: gnu: Add python-sparqlkernel.
From: |
guix-commits |
Subject: |
13/13: gnu: Add python-sparqlkernel. |
Date: |
Wed, 21 Jul 2021 07:52:07 -0400 (EDT) |
lbraun pushed a commit to branch master
in repository guix.
commit 403a689625f15ef94c559b3f1d46c91aac07151e
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Wed Jul 21 13:31:08 2021 +0200
gnu: Add python-sparqlkernel.
* gnu/packages/jupyter.scm (python-sparqlkernel): New variable.
---
gnu/packages/jupyter.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/gnu/packages/jupyter.scm b/gnu/packages/jupyter.scm
index ede2236..8cb95f4 100644
--- a/gnu/packages/jupyter.scm
+++ b/gnu/packages/jupyter.scm
@@ -36,6 +36,7 @@
#:use-module (gnu packages python-check)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages python-web)
+ #:use-module (gnu packages rdf)
#:use-module (gnu packages time)
#:use-module (gnu packages xml)
#:use-module (gnu packages tls)
@@ -423,3 +424,49 @@ Docker registry.")
(synopsis "Jupyter kernel for Bash")
(description "A bash shell kernel for Jupyter.")
(license license:expat)))
+
+(define-public python-sparqlkernel
+ (package
+ (name "python-sparqlkernel")
+ (version "1.3.0")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "sparqlkernel" version))
+ (sha256
+ (base32
+ "004v22nyi5cnpxq4fiws89p7i5wcnzv45n3n70axdd6prh6rkapx"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'no-custom-css
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "sparqlkernel/install.py"
+ (("install_custom_css\\( destd, PKGNAME \\)") ""))
+ #t))
+ (add-after 'install 'install-kernelspec
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (setenv "HOME" "/tmp")
+ (add-installed-pythonpath inputs outputs)
+ (invoke
+ (string-append out "/bin/jupyter-sparqlkernel")
+ "install"
+ (string-append "--InstallKernelSpec.prefix=" out))
+ #t))))))
+ (native-inputs
+ `(("python-traitlets" ,python-traitlets)
+ ("python-jupyter-client" ,python-jupyter-client)
+ ("python-notebook" ,python-notebook)
+ ("python-ipykernel" ,python-ipykernel)
+ ("python-html5lib" ,python-html5lib-0.9)))
+ (propagated-inputs
+ `(("python-sparqlwrapper" ,python-sparqlwrapper)
+ ("python-pygments" ,python-pygments)))
+ (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 and fetching & presenting the results in
+a notebook.")
+ (license license:bsd-3)))
- branch master updated (ce27cde -> 403a689), guix-commits, 2021/07/21
- 02/13: gnu: Add r-naniar., guix-commits, 2021/07/21
- 01/13: gnu: Add r-norm., guix-commits, 2021/07/21
- 04/13: gnu: Add r-rmisc., guix-commits, 2021/07/21
- 07/13: gnu: Add python-pyvcf., guix-commits, 2021/07/21
- 08/13: gnu: Add nanosv., guix-commits, 2021/07/21
- 03/13: gnu: Add r-glinternet., guix-commits, 2021/07/21
- 11/13: gnu: Add python-bash-kernel., guix-commits, 2021/07/21
- 13/13: gnu: Add python-sparqlkernel.,
guix-commits <=
- 06/13: gnu: checkm: Rename and update to 1.1.3., guix-commits, 2021/07/21
- 12/13: gnu: Add python-sparqlwrapper., guix-commits, 2021/07/21
- 10/13: gnu: Add r-battenberg., guix-commits, 2021/07/21
- 05/13: gnu: Add tombo., guix-commits, 2021/07/21
- 09/13: gnu: Add r-ascat., guix-commits, 2021/07/21