2014-12-23 08:42:30 +01:00
|
|
|
{ stdenv, fetchurl, buildPythonPackage, pythonPackages, pyqt4 ? null
|
2013-03-27 13:35:39 +01:00
|
|
|
, notebookSupport ? true # ipython notebook
|
|
|
|
, qtconsoleSupport ? true # ipython qtconsole
|
|
|
|
, pylabSupport ? true # ipython --pylab (backend: agg - no gui, just file)
|
|
|
|
, pylabQtSupport ? true # ipython --pylab=qt (backend: Qt4Agg - plot to window)
|
|
|
|
}:
|
|
|
|
|
|
|
|
# ipython qtconsole works with both pyside and pyqt4. But ipython --pylab=qt
|
|
|
|
# only works with pyqt4 (at least this is true for ipython 0.13.1). So just use
|
|
|
|
# pyqt4 for both.
|
|
|
|
|
|
|
|
assert qtconsoleSupport == true -> pyqt4 != null;
|
2014-12-23 08:42:30 +01:00
|
|
|
assert pylabQtSupport == true -> pyqt4 != null;
|
2010-11-29 19:04:56 +01:00
|
|
|
|
2011-10-16 14:46:47 +02:00
|
|
|
buildPythonPackage rec {
|
2014-12-06 15:14:52 +01:00
|
|
|
name = "ipython-2.3.1";
|
2011-03-28 15:13:15 +02:00
|
|
|
namePrefix = "";
|
2010-11-29 19:04:56 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-10-16 14:46:47 +02:00
|
|
|
url = "http://pypi.python.org/packages/source/i/ipython/${name}.tar.gz";
|
2014-12-06 15:14:52 +01:00
|
|
|
sha256 = "1764gi5m3ff481rjk336cw6i2h4zlc0nxam9rc5m8m7yl9m4d61y";
|
2010-11-29 19:04:56 +01:00
|
|
|
};
|
|
|
|
|
2013-03-27 13:35:39 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pythonPackages.readline
|
|
|
|
pythonPackages.sqlite3 # required for history support
|
|
|
|
] ++ stdenv.lib.optionals notebookSupport [
|
|
|
|
pythonPackages.tornado
|
|
|
|
pythonPackages.pyzmq
|
|
|
|
pythonPackages.jinja2
|
|
|
|
] ++ stdenv.lib.optionals qtconsoleSupport [
|
|
|
|
pythonPackages.pygments
|
|
|
|
pythonPackages.pyzmq
|
|
|
|
pyqt4
|
|
|
|
] ++ stdenv.lib.optionals pylabSupport [
|
|
|
|
pythonPackages.matplotlib
|
|
|
|
] ++ stdenv.lib.optionals pylabQtSupport [
|
|
|
|
pythonPackages.matplotlib
|
|
|
|
pyqt4
|
|
|
|
];
|
2011-03-28 14:40:53 +02:00
|
|
|
|
2010-11-29 19:04:56 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://ipython.scipy.org/;
|
|
|
|
description = "An interactive computing environment for Python";
|
2014-12-21 00:00:35 +01:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2010-11-29 19:04:56 +01:00
|
|
|
longDescription = ''
|
|
|
|
The goal of IPython is to create a comprehensive environment
|
|
|
|
for interactive and exploratory computing. It consists of an
|
|
|
|
enhanced interactive Python shell and an architecture for
|
|
|
|
interactive parallel computing.
|
|
|
|
'';
|
2013-05-21 09:27:35 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.bjornfor ];
|
2010-11-29 19:04:56 +01:00
|
|
|
};
|
|
|
|
}
|