From: Federico Beffa <beffa@ieee.org>
To: Guix-devel <guix-devel@gnu.org>
Subject: [PATCH] gnu: Add IPython
Date: Thu, 15 Jan 2015 18:35:44 +0100 [thread overview]
Message-ID: <CAKrPhPM=Dd7fiXLnCrrL7LGnEsRQoQgw8H4EpibkX1xuXwcy0Q@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 57 bytes --]
Please find attached a patch for ipython.
Regards,
Fede
[-- Attachment #2: 0001-gnu-Add-IPython.patch --]
[-- Type: text/x-patch, Size: 4465 bytes --]
From 9e2cf5788e613e28086c4c5430d5820e912ab840 Mon Sep 17 00:00:00 2001
From: Federico Beffa <beffa@fbengineering.ch>
Date: Fri, 19 Dec 2014 17:29:39 +0100
Subject: [PATCH] gnu: Add IPython.
* gnu/packages/python.scm (python-ipython, python2-ipython): New variable.
---
gnu/packages/python.scm | 85 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 85 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index f81ab69..ad41973 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -2688,3 +2688,88 @@ PNG, PostScript, PDF, and SVG file output.")
(define-public python2-cairocffi
(package-with-python2 python-cairocffi))
+(define-public python-ipython
+ (package
+ (name "python-ipython")
+ (version "2.3.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://pypi.python.org/packages/source/i/"
+ "ipython/ipython-" version ".tar.gz"))
+ (sha256
+ (base32 "1764gi5m3ff481rjk336cw6i2h4zlc0nxam9rc5m8m7yl9m4d61y"))))
+ (build-system python-build-system)
+ (outputs '("out" "doc"))
+ ;; FIXME: add optional dependencies when available: pyzmq, tornado, ...
+ (inputs
+ `(("readline" ,readline)
+ ("python-matplotlib" ,python-matplotlib)
+ ("python-numpy" ,python-numpy-bootstrap)
+ ("python-numpydoc" ,python-numpydoc)
+ ("python-nose" ,python-nose)))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)
+ ("python-sphinx" ,python-sphinx)
+ ("texlive" ,texlive)
+ ("texinfo" ,texinfo)
+ ("python-setuptools" ,python-setuptools)))
+ (arguments
+ `(#:phases
+ (alist-cons-after
+ 'install 'install-doc
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
+ (doc (string-append data "/doc/" ,name "-" ,version))
+ (html (string-append doc "/html"))
+ (man1 (string-append data "/man/man1"))
+ (info (string-append data "/info"))
+ (examples (string-append doc "/examples")))
+ (setenv "LANG" "en_US.UTF-8")
+ (with-directory-excursion "docs"
+ ;; FIXME: html and pdf fail to build without optional pyzmq
+ ;(system* "make" "html")
+ ;(system* "make" "pdf" "PAPER=a4")
+ (system* "make" "info"))
+ (copy-recursively "docs/man" man1)
+ (copy-recursively "examples" examples)
+ ;; (copy-recursively "docs/build/html" html)
+ ;; (copy-file "docs/build/latex/ipython.pdf"
+ ;; (string-append doc "/ipython.pdf"))
+ (mkdir-p info)
+ (copy-file "docs/build/texinfo/ipython.info"
+ (string-append info "/ipython.info"))
+ (copy-file "COPYING.rst" (string-append doc "/COPYING.rst"))))
+ ;; Tests can only be run after the library has been installed and not
+ ;; within the source directory.
+ (alist-cons-after
+ 'install 'check
+ (lambda* (#:key outputs #:allow-other-keys)
+ ;; The test procedure appears to miss the fact that some optional
+ ;; dependencies are missing.
+ ;; (with-directory-excursion "/tmp"
+ ;; (zero? (system* (string-append (assoc-ref outputs "out")
+ ;; "/bin/iptest"))))
+ #t)
+ (alist-delete
+ 'check
+ %standard-phases)))))
+ (home-page "http://ipython.org")
+ (synopsis "IPython is a tool for interactive computing in Python")
+ (description
+ "IPython provides a rich architecture for interactive computing with:
+Powerful interactive shells, a browser-based notebook, support for interactive
+data visualization, embeddable interpreters and tools for parallel
+computing.")
+ (license bsd-3)))
+
+(define-public python2-ipython
+ (let ((ipython (package-with-python2 python-ipython)))
+ (package (inherit ipython)
+ ;; Make sure we use custom python2-NAME packages.
+ (inputs
+ `(("python2-numpydoc" ,python2-numpydoc)
+ ("python2-matplotlib" ,python2-matplotlib)
+ ,@(alist-delete "python-numpydoc"
+ (alist-delete "python-matplotlib"
+ (package-inputs ipython))))))))
--
1.8.4
next reply other threads:[~2015-01-15 17:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-15 17:35 Federico Beffa [this message]
2015-01-15 20:23 ` [PATCH] gnu: Add IPython Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKrPhPM=Dd7fiXLnCrrL7LGnEsRQoQgw8H4EpibkX1xuXwcy0Q@mail.gmail.com' \
--to=beffa@ieee.org \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.