2014-12-23 07:42:30 +00:00
|
|
|
{ stdenv, fetchurl, buildPythonPackage, pythonPackages, pyqt4 ? null
|
2013-03-27 12:35:39 +00:00
|
|
|
, notebookSupport ? true # ipython notebook
|
|
|
|
, qtconsoleSupport ? true # ipython qtconsole
|
2015-05-19 14:31:37 +01:00
|
|
|
, pylabSupport ? true # '%pylab' magic (backend: agg - no gui, just file)
|
|
|
|
, pylabQtSupport ? true # '%pylab qt' (backend: Qt4Agg - plot to window)
|
2013-03-27 12:35:39 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
# 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 07:42:30 +00:00
|
|
|
assert pylabQtSupport == true -> pyqt4 != null;
|
2010-11-29 18:04:56 +00:00
|
|
|
|
2011-10-16 13:46:47 +01:00
|
|
|
buildPythonPackage rec {
|
2015-05-02 21:04:26 +01:00
|
|
|
name = "ipython-3.1.0";
|
2011-03-28 14:13:15 +01:00
|
|
|
namePrefix = "";
|
2010-11-29 18:04:56 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-05-02 21:04:26 +01:00
|
|
|
url = "https://pypi.python.org/packages/source/i/ipython/${name}.tar.gz";
|
|
|
|
sha256 = "092nilrkr76l1mklnslgbw1cz7z1xabp1hz5s7cb30kgy39r482k";
|
2010-11-29 18:04:56 +00:00
|
|
|
};
|
|
|
|
|
2013-03-27 12:35:39 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pythonPackages.readline
|
|
|
|
pythonPackages.sqlite3 # required for history support
|
|
|
|
] ++ stdenv.lib.optionals notebookSupport [
|
|
|
|
pythonPackages.tornado
|
|
|
|
pythonPackages.pyzmq
|
|
|
|
pythonPackages.jinja2
|
2015-05-02 21:04:26 +01:00
|
|
|
pythonPackages.jsonschema
|
2013-03-27 12:35:39 +00:00
|
|
|
] ++ 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 13:40:53 +01:00
|
|
|
|
2010-11-29 18:04:56 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://ipython.scipy.org/;
|
|
|
|
description = "An interactive computing environment for Python";
|
2014-12-20 23:00:35 +00:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2010-11-29 18:04:56 +00: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.
|
|
|
|
'';
|
2015-06-22 07:25:07 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ bjornfor jgeerds ];
|
2010-11-29 18:04:56 +00:00
|
|
|
};
|
|
|
|
}
|