[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
104/242: gnu: python-jupyter-client: Update to 7.2.2.
From: |
guix-commits |
Subject: |
104/242: gnu: python-jupyter-client: Update to 7.2.2. |
Date: |
Wed, 11 May 2022 18:02:59 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit 75c6eb66cffeb9af0122bc4c5f6ec37cd9ca0429
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Tue Apr 12 17:33:51 2022 -0400
gnu: python-jupyter-client: Update to 7.2.2.
* gnu/packages/python-xyz.scm (python-jupyter-client-bootstrap): Make the
base
package definition, moving most fields. Update to 7.2.2.
[propagated-inputs]: Add python-entrypoints and python-nest-asyncio.
(python-jupyter-client): Inherit from python-jupyter-client-bootstrap,
adjusting accordingly.
[native-inputs]: Add python-pytest-asyncio.
---
gnu/packages/python-xyz.scm | 120 +++++++++++++++++++++++---------------------
1 file changed, 63 insertions(+), 57 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 712307e7d5..1061dfb751 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -9010,69 +9010,75 @@ without using the configuration machinery.")
"Jupyter core is the base package on which Jupyter projects rely.")
(license license:bsd-3)))
-(define-public python-jupyter-client
- (package
- (name "python-jupyter-client")
- (version "6.1.12")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "jupyter_client" version))
- (sha256
- (base32
- "10p7fcgvv9hvz9zical9wk68ks5ssak2ykbzx65wm1k1hk8a3g64"))))
- (build-system python-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'set-tool-file-names
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((iproute (assoc-ref inputs "iproute")))
+;; Bootstrap variant of jupyter-client, which breaks the loop between ipykernel
+;; and jupyter-client by removing the former from its native-inputs and
+;; disabling tests.
+(define-public python-jupyter-client-bootstrap
+ (hidden-package
+ (package
+ (name "python-jupyter-client-bootstrap")
+ (version "7.2.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "jupyter_client" version))
+ (sha256
+ (base32
+ "12pbp177bfb3710y1a5598mwn8ffhyzmpll67m0nmalb98savnwg"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:tests? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-tool-file-names
+ (lambda* (#:key inputs #:allow-other-keys)
(substitute* "jupyter_client/localinterfaces.py"
(("'ip'")
- (string-append "'" iproute "/sbin/ip'")))
- #t)))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- ;; Some tests try to write to $HOME.
- (setenv "HOME" "/tmp")
- (invoke "pytest" "-vv")))))))
- (inputs
- `(("iproute" ,iproute)))
- (propagated-inputs
- (list python-dateutil python-jupyter-core python-pyzmq
- python-tornado-6 python-traitlets))
- (native-inputs
- `(("python-pytest" ,python-pytest)
- ("python-pytest-timeout" ,python-pytest-timeout)
- ("python-async-generator" ,python-async-generator)
- ("python-mock" ,python-mock)
- ("python-msgpack" ,python-msgpack)
- ("python-ipython" ,python-ipython)
- ("python-ipykernel" ,python-ipykernel-bootstrap)))
- (home-page "https://jupyter.org/")
- (synopsis "Jupyter protocol implementation and client libraries")
- (description
- "The @code{jupyter_client} package contains the reference implementation
+ (format #f "'~a'" (search-input-file inputs
"sbin/ip")))))))))
+ (inputs (list iproute))
+ (propagated-inputs
+ (list python-dateutil
+ python-entrypoints
+ python-jupyter-core
+ python-nest-asyncio
+ python-pyzmq
+ python-tornado-6
+ python-traitlets))
+ (home-page "https://jupyter.org/")
+ (synopsis "Jupyter protocol implementation and client libraries")
+ (description
+ "The @code{jupyter_client} package contains the reference implementation
of the Jupyter protocol. It also provides client and kernel management APIs
for working with kernels, and the @code{jupyter kernelspec} entrypoint for
installing @code{kernelspec}s for use with Jupyter frontends.")
- (license license:bsd-3)))
+ (license license:bsd-3))))
-;; Bootstrap variant of jupyter-client, which breaks the loop between ipykernel
-;; and jupyter-client by removing the former from its native-inputs and
-;; disabling tests.
-(define-public python-jupyter-client-bootstrap
- (let ((base python-jupyter-client))
- (hidden-package
- (package
- (inherit base)
- (name "python-jupyter-client-bootstrap")
- (arguments
- `(#:tests? #f
- ,@(package-arguments base)))
- (native-inputs `())))))
+(define-public python-jupyter-client
+ (let ((base python-jupyter-client-bootstrap))
+ (package
+ (inherit base)
+ (name "python-jupyter-client")
+ (arguments
+ (substitute-keyword-arguments (package-arguments base)
+ ((#:tests? _ #f)
+ #t)
+ ((#:phases phases #~%standard-phases)
+ #~(modify-phases #$phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; Some tests try to write to $HOME.
+ (setenv "HOME" "/tmp")
+ (invoke "pytest" "-vv"))))))))
+ (native-inputs
+ (list python-pytest
+ python-pytest-asyncio
+ python-pytest-timeout
+ python-async-generator
+ python-ipython
+ python-ipykernel-bootstrap))
+ (properties (alist-delete 'hidden? (package-properties base))))))
(define-public python-ipykernel
(package
- 84/242: gnu: Add python-ufo2ft., (continued)
- 84/242: gnu: Add python-ufo2ft., guix-commits, 2022/05/11
- 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 <=
- 105/242: gnu: python-ipykernel: Update to 6.13.0., guix-commits, 2022/05/11
- 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