summaryrefslogtreecommitdiff
path: root/gnu/packages/jupyter.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-11-23 21:00:03 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-11-27 19:41:28 +0000
commitc7e4c24a6477effdd7e769f0d2caefc83d8a40af (patch)
tree6b0e0e433787e4eb6284ce2ca6c43b340432ab91 /gnu/packages/jupyter.scm
parent60745b6fa1618e2674259c2b1811f260ce39ac94 (diff)
gnu: python-bash-kernel: Update to 0.10.0.
* gnu/packages/jupyter.scm (python-bash-kernel): Update to 0.10.0. [build-system]: Switch to pyproject-build-system. [arguments]: Refresh style. [native-inputs]: Add python-flit-core. [inputs]: Add python-filetype. Change-Id: I4c1518a40c5cff7213697e357d0517f624d0e9eb Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/jupyter.scm')
-rw-r--r--gnu/packages/jupyter.scm62
1 files changed, 32 insertions, 30 deletions
diff --git a/gnu/packages/jupyter.scm b/gnu/packages/jupyter.scm
index 347dae91466..7663e1916ce 100644
--- a/gnu/packages/jupyter.scm
+++ b/gnu/packages/jupyter.scm
@@ -1225,42 +1225,44 @@ Docker registry.")
(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
+ (name "python-bash-kernel")
+ (version "0.10.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "bash_kernel" version))
+ (sha256
+ (base32 "1ji8bivxm1d6hx10rda4fhai57l8djyha5g7a7bx26642sja1m9f"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:tests? #f ; No tests.
#: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")))
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'bash-references
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((bash (search-input-file inputs "bin/bash")))
+ (substitute* "bash_kernel/kernel.py"
+ (("\"bash\"")
+ (format #f "~s" bash))
+ (("\\['bash', ")
+ (format #f "['~a', " bash))))))
+ (add-after 'install 'install-kernelspec
+ (lambda _
(setenv "HOME" "/tmp")
- (invoke "python" "-m" "bash_kernel.install" "--prefix" out)
- #t))))))
- (inputs
+ (invoke "python" "-m" "bash_kernel.install"
+ "--prefix" #$output))))))
+ (native-inputs (list python-flit-core))
+ (inputs
(list bash
+ python-filetype
python-pexpect
python-ipykernel
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)))
+ (home-page "https://github.com/takluyver/bash_kernel")
+ (synopsis "Jupyter kernel for Bash")
+ (description "A bash shell kernel for Jupyter.")
+ (license license:expat)))
(define-public python-sparqlkernel
(package