[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55104] [PATCH 101/232] gnu: Add python-ipyparallel-bootstrap.
From: |
Maxim Cournoyer |
Subject: |
[bug#55104] [PATCH 101/232] gnu: Add python-ipyparallel-bootstrap. |
Date: |
Sun, 24 Apr 2022 23:57:07 -0400 |
* 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 @@ (define-public python-ipython-genutils
(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 @@ (define-public python-ipyparallel
@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 @@ (define-public python-ipykernel-bootstrap
(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
--
2.34.0
- [bug#55104] [PATCH 080/232] gnu: Add skia., (continued)
- [bug#55104] [PATCH 080/232] gnu: Add skia., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 078/232] gnu: Add python-afdko., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 087/232] gnu: Add font-sil-ezra., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 090/232] gnu: python-click: Update to 8.1.2 and honor TESTS?., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 091/232] gnu: python-flask: Update to 2.1.1., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 088/232] gnu: Add texlive-bidi., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 095/232] gnu: python-trio: Update to 0.20.0., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 098/232] gnu: python-greenlet: Update to 1.1.2., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 099/232] gnu: Add python-pytest-forked-next., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 100/232] gnu: python-pytest-xdist-next: Update to 2.5.0., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 101/232] gnu: Add python-ipyparallel-bootstrap.,
Maxim Cournoyer <=
- [bug#55104] [PATCH 070/232] gnu: python-pytest-shutil: Adjust to use python-path., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 074/232] gnu: python-scipy: Move input fields below arguments field., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 082/232] gnu: Add python-ufolib2., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 076/232] gnu: Add java-antlr4-runtime-cpp., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 084/232] gnu: Add python-ufo2ft., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 097/232] gnu: Add python-debugpy., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 030/232] gnu: Add python-fontpens., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 031/232] gnu: Add python-defcon., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 052/232] gnu: Add python-jaraco-classes., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 072/232] gnu: Add python-scikit-build., Maxim Cournoyer, 2022/04/25