[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
105/242: gnu: python-ipykernel: Update to 6.13.0.
From: |
guix-commits |
Subject: |
105/242: gnu: python-ipykernel: Update to 6.13.0. |
Date: |
Wed, 11 May 2022 18:02:59 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit be6948c1cdfa2e429abf8536841985be49d24e26
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Tue Apr 12 23:36:01 2022 -0400
gnu: python-ipykernel: Update to 6.13.0.
* gnu/packages/python-xyz.scm (python-ipykernel): Update to 6.13.0.
[origin]: Fix indentation.
[phases]: Use gexps.
{check}: Invoke pytest via tini
{set-python-file-name}: Adjust to use search-input-file.
[propagated-inputs]: Add python-debugpy, python-matplotlib-inline and
python-psutil.
[native-inputs]{python-nose}: Delete.
{python-ipyrallel-bootstrap}: New native input.
{python-pytest}: Replace with...
{python-pytest-bootstrap}: ... this.
{python-pytest-timeout, tini}: New native inputs.
---
gnu/packages/python-xyz.scm | 94 ++++++++++++++++++++++++++++++---------------
1 file changed, 64 insertions(+), 30 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 1061dfb751..693067eb8e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -9083,42 +9083,76 @@ installing @code{kernelspec}s for use with Jupyter
frontends.")
(define-public python-ipykernel
(package
(name "python-ipykernel")
- (version "5.5.3")
+ (version "6.13.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "ipykernel" version))
- (sha256
- (base32 "02f55cjkp5q64x7ikjxznbxwjpkdmfy237b9kg7dk1pxmzvy90m6"))))
+ (method url-fetch)
+ (uri (pypi-uri "ipykernel" version))
+ (sha256
+ (base32 "0q5yni8h08nadsn53f957p0pjsjhwl2b2lp1hqz3jn0854z2fa0f"))))
(build-system python-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (setenv "HOME" "/tmp")
- (invoke "pytest" "-v"))))
- (add-after 'install 'set-python-file-name
- (lambda* (#:key outputs #:allow-other-keys)
- ;; Record the absolute file name of the 'python' executable in
- ;; 'kernel.json'.
- (let ((out (assoc-ref outputs "out")))
- (substitute* (string-append out "/share/jupyter"
- "/kernels/python3/kernel.json")
- (("\"python\"")
- (string-append "\"" (which "python") "\"")))
- #t))))))
- (propagated-inputs
- (list python-ipython python-tornado-6 python-traitlets
- ;; imported at runtime during connect
- python-jupyter-client))
- (native-inputs
- (list python-flaky python-nose python-pytest))
+ (list
+ #:imported-modules `(,@%python-build-system-modules
+ (guix build syscalls))
+ #:modules '((guix build python-build-system)
+ (guix build syscalls)
+ (guix build utils)
+ (ice-9 match))
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (match (primitive-fork)
+ (0 ;child process
+ (set-child-subreaper!)
+ ;; XXX: Tini provides proper PID1-like signal handling that
+ ;; reaps zombie processes, necessary for the
+ ;; 'test_shutdown_subprocesses' test to pass.
+
+ ;; TODO: Complete https://issues.guix.gnu.org/30948.
+ (setenv "HOME" "/tmp")
+ (execlp "tini" "--" "pytest" "-vv"))
+ (pid
+ (match (waitpid pid)
+ ((_ . status)
+ (unless (zero? status)
+ (error "`pytest' exited with status"
+ status)))))))))
+ (add-after 'install 'set-python-file-name
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; Record the absolute file name of the 'python' executable in
+ ;; 'kernel.json'.
+ (substitute* (string-append #$output "/share/jupyter"
+ "/kernels/python3/kernel.json")
+ (("\"python\"")
+ (format #f "~s" (search-input-file inputs
+ "/bin/python3")))))))))
+ (propagated-inputs
+ (list python-debugpy
+ python-ipython
+ python-jupyter-client ;imported at runtime during connect
+ python-matplotlib-inline
+ ;;python-nest-asyncio
+ ;;python-packaging
+ python-psutil
+ python-tornado-6
+ python-traitlets))
+ (inputs (list python)) ;for cross compilation
+ (native-inputs
+ (list python-flaky
+ python-ipyparallel-bootstrap
+ ;; XXX: Our Pytest package captures its native inputs in its
+ ;; wrapper script (such as python-nose), which is used in the code
+ ;; and causes deprecation warnings. Using the bootstrap variant
+ ;; avoids that.
+ python-pytest-bootstrap
+ python-pytest-timeout
+ tini))
(home-page "https://ipython.org")
(synopsis "IPython Kernel for Jupyter")
- (description
- "This package provides the IPython kernel for Jupyter.")
+ (description "This package provides the IPython kernel for Jupyter.")
(license license:bsd-3)))
;; Bootstrap variant of ipykernel, which uses the bootstrap jupyter-client to
- 91/242: gnu: python-flask: Update to 2.1.1., (continued)
- 91/242: gnu: python-flask: Update to 2.1.1., guix-commits, 2022/05/11
- 94/242: gnu: pylint: Run tests in parallel., guix-commits, 2022/05/11
- 90/242: gnu: python-click: Update to 8.1.2 and honor TESTS?., guix-commits, 2022/05/11
- 76/242: gnu: Add java-antlr4-runtime-cpp., guix-commits, 2022/05/11
- 85/242: gnu: Add python-sfdlib., guix-commits, 2022/05/11
- 97/242: gnu: Add python-debugpy., guix-commits, 2022/05/11
- 100/242: gnu: python-pytest-xdist-next: Update to 2.5.0., guix-commits, 2022/05/11
- 102/242: gnu: python-nest-asyncio: Update to 1.5.5., guix-commits, 2022/05/11
- 103/242: gnu: python-jupyter-core: Update to 4.10.0., guix-commits, 2022/05/11
- 104/242: gnu: python-jupyter-client: Update to 7.2.2., guix-commits, 2022/05/11
- 105/242: gnu: python-ipykernel: Update to 6.13.0.,
guix-commits <=
- 107/242: gnu: python-ipyparallel: Update to 8.2.1., guix-commits, 2022/05/11
- 108/242: gnu: python-anyio: Replace python-pytest-trio with python-trio., guix-commits, 2022/05/11
- 115/242: gnu: python-nbval: Fix build., guix-commits, 2022/05/11
- 120/242: gnu: python-sphinx: Propagate TexLive dependencies., guix-commits, 2022/05/11
- 125/242: gnu: texlive-polyglossia: Rename and fix package., guix-commits, 2022/05/11
- 126/242: gnu: Add texlive-cbfonts-fd., guix-commits, 2022/05/11
- 127/242: gnu: Add texlive-cbfonts., guix-commits, 2022/05/11
- 128/242: download: Add a mirror for CTAN., guix-commits, 2022/05/11
- 129/242: gnu: texlive-latex-geometry: Propagate texlive-latex-graphics., guix-commits, 2022/05/11
- 134/242: gnu: Add python-strict-rfc3339., guix-commits, 2022/05/11