[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/13: gnu: Add python-bash-kernel.
From: |
guix-commits |
Subject: |
11/13: gnu: Add python-bash-kernel. |
Date: |
Wed, 21 Jul 2021 07:52:06 -0400 (EDT) |
lbraun pushed a commit to branch master
in repository guix.
commit d57c34d26b8b5a7d17a5b8811742c5f291567209
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Wed Jul 21 11:48:07 2021 +0200
gnu: Add python-bash-kernel.
* gnu/packages/jupyter.scm (python-bash-kernel): New variable.
---
gnu/packages/jupyter.scm | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/gnu/packages/jupyter.scm b/gnu/packages/jupyter.scm
index 2fb0b03..ede2236 100644
--- a/gnu/packages/jupyter.scm
+++ b/gnu/packages/jupyter.scm
@@ -25,6 +25,7 @@
#:use-module (guix git-download)
#:use-module (guix build-system cmake)
#:use-module (guix build-system python)
+ #:use-module (gnu packages bash)
#:use-module (gnu packages check)
#:use-module (gnu packages cpp)
#:use-module (gnu packages linux)
@@ -382,3 +383,43 @@ used to explore a repository locally by building and
executing the constructed
image of the repository, or as a means of building images that are pushed to a
Docker registry.")
(license license:bsd-3)))
+
+(define-public python-bash-kernel
+ (package
+ (name "python-bash-kernel")
+ (version "0.7.2")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "bash_kernel" version))
+ (sha256
+ (base32
+ "0w0nbr3iqqsgpk83rgd0f5b02462bkyj2n0h6i9dwyc1vpnq9350"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'bash-references
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "bash_kernel/kernel.py"
+ (("\"bash\"")
+ (string-append "\"" (assoc-ref inputs "bash") "/bin/bash\""))
+ (("\\['bash', ")
+ (string-append "['" (assoc-ref inputs "bash") "/bin/bash', ")))
+ #t))
+ (add-after 'install 'install-kernelspec
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (setenv "HOME" "/tmp")
+ (invoke "python" "-m" "bash_kernel.install" "--prefix" out)
+ #t))))))
+ (inputs
+ `(("bash" ,bash)))
+ (propagated-inputs
+ `(("python-pexpect" ,python-pexpect)
+ ("python-ipykernel" ,python-ipykernel)
+ ("python-jupyter-client" ,python-jupyter-client)))
+ (home-page "https://github.com/takluyver/bash_kernel")
+ (synopsis "Jupyter kernel for Bash")
+ (description "A bash shell kernel for Jupyter.")
+ (license license:expat)))
- 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 <=
- 13/13: gnu: Add python-sparqlkernel., guix-commits, 2021/07/21
- 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