[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
101/204: gnu: Add python-ipyparallel-bootstrap.
From: |
guix-commits |
Subject: |
101/204: gnu: Add python-ipyparallel-bootstrap. |
Date: |
Wed, 20 Apr 2022 02:03:27 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit a06a33d286d82f676595d2ec4a4bcf890803150b
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Tue Apr 12 16:21:56 2022 -0400
gnu: Add python-ipyparallel-bootstrap.
* gnu/packages/python-xyz.scm (python-ipyparallel): Morph into...
(python-ipyparallel-bootstrap): ... this, moving native inputs to a new
definition of...
(python-ipyparallel): ... this.
---
gnu/packages/python-xyz.scm | 97 +++++++++++++++++++++++++++------------------
1 file changed, 58 insertions(+), 39 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ce0172e59f..6a8eb11f64 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8740,47 +8740,41 @@ away.")
(define-public python2-ipython-genutils
(package-with-python2 python-ipython-genutils))
-(define-public python-ipyparallel
- (package
- (name "python-ipyparallel")
- (version "6.2.4")
- (source
+;;; Variant used to break a cycle with python-ipykernel.
+(define-public python-ipyparallel-bootstrap
+ (hidden-package
+ (package
+ (name "python-ipyparallel-bootstrap")
+ (version "6.2.4")
+ (source
(origin
(method url-fetch)
(uri (pypi-uri "ipyparallel" version))
(sha256
(base32
"0rf0dbpxf5z82bw8lsjj45r3wdd4wc74anz4wiiaf2rbjqlb1ivn"))))
- (build-system python-build-system)
- (arguments
- `(#:tests? #f ; RuntimeError: IO Loop failed to start
- #:phases
- (modify-phases %standard-phases
- (add-before 'check 'prepare-for-tests
- (lambda _
- (setenv "HOME" (getcwd))
- #t)))))
- (propagated-inputs
- (list python-dateutil
- python-decorator
- python-ipykernel
- python-ipython
- python-ipython-genutils
- python-jupyter-client
- python-pyzmq
- python-tornado
- python-traitlets))
- (native-inputs
- (list python-ipython
- python-mock
- python-nose
- python-pytest
- python-pytest-cov
- python-testpath))
- (home-page "https://ipython.org/")
- (synopsis "Interactive Parallel Computing with IPython")
- (description
- "@code{ipyparallel} is a Python package and collection of CLI scripts for
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:tests? #f
+ #:phases #~(modify-phases %standard-phases
+ ;; The python-ipykernel is normally propagated but is
+ ;; removed from this package to break the cycle.
+ (delete 'sanity-check))))
+ (propagated-inputs
+ (list python-dateutil
+ python-decorator
+ ;; python-ipykernel is omitted here to avoid a cycle.
+ python-ipython
+ python-ipython-genutils
+ python-jupyter-client-bootstrap
+ python-pyzmq
+ python-tornado
+ python-traitlets))
+ (home-page "https://ipython.org/")
+ (synopsis "Interactive Parallel Computing with IPython")
+ (description
+ "@code{ipyparallel} is a Python package and collection of CLI scripts for
controlling clusters for Jupyter. @code{ipyparallel} contains the following
CLI scripts:
@enumerate
@@ -8788,7 +8782,26 @@ CLI scripts:
@item ipcontroller - start a scheduler
@item ipengine - start an engine
@end enumerate")
- (license license:bsd-3)))
+ (license license:bsd-3))))
+
+(define-public python-ipyparallel
+ (package
+ (inherit python-ipyparallel-bootstrap)
+ (name "python-ipyparallel")
+ (arguments (list #:tests? #t))
+ (native-inputs
+ (list python-ipython
+ python-mock
+ python-nose
+ python-pytest
+ python-pytest-cov
+ python-testpath))
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs python-ipyparallel-bootstrap)
+ (replace "python-jupyter-client-bootstrap" python-jupyter-client)
+ (append python-ipykernel)))
+ (properties (alist-delete 'hidden? (package-properties
+ python-ipyparallel-bootstrap)))))
(define-public python-ipython-cluster-helper
(package
@@ -9077,10 +9090,16 @@ installing @code{kernelspec}s for use with Jupyter
frontends.")
(package
(inherit parent)
(name "python-ipykernel-bootstrap")
+ (arguments (list #:tests? #f
+ ;; The package should normally propagate ipykernel,
+ ;; left out here to break the cycle.
+ #:phases #~(modify-phases %standard-phases
+ (delete 'sanity-check))))
+ (native-inputs '())
(propagated-inputs
- `(("python-jupyter-client" ,python-jupyter-client-bootstrap)
- ,@(fold alist-delete (package-propagated-inputs parent)
- '("python-jupyter-client"))))))))
+ (modify-inputs (package-propagated-inputs parent)
+ (replace "python-jupyter-client" python-jupyter-client-bootstrap)
+ (append python-ipyparallel-bootstrap)))))))
(define-public python-pari-jupyter
(package
- 195/204: gnu: markets: Add python-wrapper to fix build., (continued)
- 195/204: gnu: markets: Add python-wrapper to fix build., guix-commits, 2022/04/20
- 70/204: gnu: python-pytest-shutil: Adjust to use python-path., guix-commits, 2022/04/20
- 90/204: gnu: python-click: Update to 8.1.2 and honor TESTS?., guix-commits, 2022/04/20
- 108/204: gnu: python-anyio: Update to 3.5.0., guix-commits, 2022/04/20
- 143/204: gnu: python-fakeredis: Update to 1.7.1., guix-commits, 2022/04/20
- 145/204: gnu: Add python-dictpath., guix-commits, 2022/04/20
- 146/204: gnu: Add python-openapi-core., guix-commits, 2022/04/20
- 147/204: gnu: Add python-jupyterlab-server., guix-commits, 2022/04/20
- 148/204: gnu: python-hypothesis-6.23: Update to 6.43.3., guix-commits, 2022/04/20
- 93/204: gnu: python-black: Update to 22.3.0., guix-commits, 2022/04/20
- 101/204: gnu: Add python-ipyparallel-bootstrap.,
guix-commits <=
- 111/204: gnu: Add texlive-unicode-math., guix-commits, 2022/04/20
- 114/204: gnu: Add python-jupyter-server-mathjax., guix-commits, 2022/04/20
- 115/204: gnu: python-nbval: Fix build., guix-commits, 2022/04/20
- 126/204: gnu: python-ipython-documentation: Also build info and pdf targets., guix-commits, 2022/04/20
- 150/204: gnu: python-llvmlite: Update to 0.38.0., guix-commits, 2022/04/20
- 175/204: gnu: Add python-argparse-addons., guix-commits, 2022/04/20
- 180/204: gnu: Add python-mergedeep., guix-commits, 2022/04/20
- 198/204: gnu: emacsy: Use webkitgtk-with-libsoup2., guix-commits, 2022/04/20
- 203/204: gnu: python-flask-login: Update to 0.6.0., guix-commits, 2022/04/20
- 113/204: gnu: python-nbconvert: Update to 6.5.0., guix-commits, 2022/04/20