[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 08/10] gnu: python-ipython: Use 'python2-variant'.
From: |
Ben Woodcroft |
Subject: |
[PATCH 08/10] gnu: python-ipython: Use 'python2-variant'. |
Date: |
Thu, 21 Apr 2016 23:21:59 +1000 |
* gnu/packages/python.scm (python-ipython)[properties]: New field.
(python2-ipython): Use 'strip-python2-variant'.
---
gnu/packages/python.scm | 26 +++++++++-----------------
1 file changed, 9 insertions(+), 17 deletions(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index f26592e..ea9f47a 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -4359,29 +4359,21 @@ without using the configuration machinery.")
Powerful interactive shells, a browser-based notebook, support for interactive
data visualization, embeddable interpreters and tools for parallel
computing.")
- (license bsd-3)))
+ (license bsd-3)
+ (properties `((python2-variant . ,(delay python2-ipython))))))
(define-public python2-ipython
- (let ((ipython (package-with-python2 python-ipython)))
+ (let ((base (package-with-python2
+ (strip-python2-variant python-ipython))))
(package
- (inherit ipython)
+ (inherit base)
;; FIXME: some tests are failing
- (arguments
- `(#:tests? #f ,@(package-arguments ipython)))
- ;; Make sure we use custom python2-NAME packages.
;; FIXME: add pyreadline once available.
- (propagated-inputs
- `(("python2-terminado" ,python2-terminado)
- ,@(alist-delete "python-terminado"
- (package-propagated-inputs ipython))))
+ (arguments
+ `(#:tests? #f ,@(package-arguments base)))
(inputs
- `(("python2-jsonschema" ,python2-jsonschema)
- ("python2-mock" ,python2-mock)
- ("python2-matplotlib" ,python2-matplotlib)
- ("python2-numpy" ,python2-numpy)
- ("python2-requests" ,python2-requests)
- ,@(fold alist-delete (package-inputs ipython)
- '("python-jsonschema" "python-matplotlib" "python-numpy"
"python-requests")))))))
+ `(("python2-mock" ,python2-mock)
+ ,@(package-inputs base))))))
(define-public python-isodate
(package
--
2.5.0
- [PATCH 03/10] gnu: Add python-pytest-pep8., (continued)
- [PATCH 03/10] gnu: Add python-pytest-pep8., Ben Woodcroft, 2016/04/21
- [PATCH 02/10] gnu: Add python-bz2file., Ben Woodcroft, 2016/04/21
- [PATCH 01/10] gnu: Add python2-pytest-cache., Ben Woodcroft, 2016/04/21
- [PATCH 05/10] gnu: Add python-future., Ben Woodcroft, 2016/04/21
- [PATCH 07/10] gnu: python-tornado: Use 'python2-variant'., Ben Woodcroft, 2016/04/21
- [PATCH 08/10] gnu: python-ipython: Use 'python2-variant'.,
Ben Woodcroft <=
- [PATCH 09/10] gnu: Add python-natsort., Ben Woodcroft, 2016/04/21
- [PATCH 10/10] gnu: Add python-scikit-bio., Ben Woodcroft, 2016/04/21
- [PATCH 04/10] gnu: Add python-pytest-flakes., Ben Woodcroft, 2016/04/21