git.iko.soy/typeable/nixpkgs
on master help sign in
python-packages ipython: 3.2 -> 4.0
commit3ccedc7630a12429016f1ec2c5ee447bb659bfa8 authorFrederik Rietdijk <fridh@fridh.nl> dateFri 14 Aug 2015, 23:31 (11 years ago) parent2669bf2
2 files changed+23−74
pkgs/shells/ipython/default.nix−58 pkgs/top-level/python-packages.nix+23−16
pkgs/shells/ipython/default.nixdeleted−58
@@ -1,58 +0,0 @@
1−{ stdenv, fetchurl, buildPythonPackage, pythonPackages, pyqt4 ? null
2−, notebookSupport ? true # ipython notebook
3−, qtconsoleSupport ? true # ipython qtconsole
4−, pylabSupport ? true # '%pylab' magic (backend: agg - no gui, just file)
5−, pylabQtSupport ? true # '%pylab qt' (backend: Qt4Agg - plot to window)
6−}:
7−
8−# ipython qtconsole works with both pyside and pyqt4. But ipython --pylab=qt
9−# only works with pyqt4 (at least this is true for ipython 0.13.1). So just use
10−# pyqt4 for both.
11−
12−assert qtconsoleSupport == true -> pyqt4 != null;
13−assert pylabQtSupport == true -> pyqt4 != null;
14−
15−buildPythonPackage rec {
16− name = "ipython-${version}";
17− version = "3.2.1";
18− namePrefix = "";
19−
20− src = fetchurl {
21− url = "https://pypi.python.org/packages/source/i/ipython/${name}.tar.gz";
22− sha256 = "c913adee7ae5b338055274c51a7d2b3cea468b5b316046fa520cd8a434b09177";
23− };
24−
25− propagatedBuildInputs = [
26− pythonPackages.readline
27− pythonPackages.sqlite3 # required for history support
28− ] ++ stdenv.lib.optionals notebookSupport [
29− pythonPackages.tornado
30− pythonPackages.pyzmq
31− pythonPackages.jinja2
32− pythonPackages.jsonschema
33− ] ++ stdenv.lib.optionals qtconsoleSupport [
34− pythonPackages.pygments
35− pythonPackages.pyzmq
36− pyqt4
37− ] ++ stdenv.lib.optionals pylabSupport [
38− pythonPackages.matplotlib
39− ] ++ stdenv.lib.optionals pylabQtSupport [
40− pythonPackages.matplotlib
41− pyqt4
42− ];
43−
44− doCheck = false;
45−
46− meta = {
47− homepage = http://ipython.scipy.org/;
48− description = "An interactive computing environment for Python";
49− license = stdenv.lib.licenses.bsd3;
50− longDescription = ''
51− The goal of IPython is to create a comprehensive environment
52− for interactive and exploratory computing. It consists of an
53− enhanced interactive Python shell and an architecture for
54− interactive parallel computing.
55− '';
56− maintainers = with stdenv.lib.maintainers; [ bjornfor jgeerds ];
57− };
58−}
pkgs/top-level/python-packages.nix+23−16
@@ -120,20 +120,6 @@ let
120120 hdf5 = pkgs.hdf5.override { mpi = pkgs.openmpi; enableShared = true; };
121121 };
122122
123− ipython = callPackage ../shells/ipython {
124− inherit pythonPackages;
125−
126− qtconsoleSupport = !pkgs.stdenv.isDarwin; # qt is not supported on darwin
127− pylabQtSupport = !pkgs.stdenv.isDarwin;
128− pylabSupport = !pkgs.stdenv.isDarwin; # cups is not supported on darwin
129− };
130−
131− ipythonLight = lowPrio (self.ipython.override {
132− qtconsoleSupport = false;
133− pylabSupport = false;
134− pylabQtSupport = false;
135− });
136−
137123 mpi4py = callPackage ../development/python-modules/mpi4py {
138124 mpi = pkgs.openmpi;
139125 };
@@ -6912,6 +6898,27 @@ let
69126898 };
69136899 };
69146900
6901+ ipython = buildPythonPackage rec {
6902+ version = "4.0.0";
6903+ name = "ipython-${version}";
6904+
6905+ src = pkgs.fetchurl {
6906+ url = "https://pypi.python.org/packages/source/i/ipython/${name}.tar.gz";
6907+ sha256 = "2fd276c407fb0b29e5d4884a7029a2c27fef0a06fd7a34924cce69b7cc43f4da";
6908+ };
6909+
6910+ buildInputs = with self; [nose] ++ optionals isPy27 [mock];
6911+
6912+ propagatedBuildInputs = with self; [decorator pickleshare simplegeneric traitlets requests pexpect sqlite3];
6913+
6914+ meta = {
6915+ description = "IPython: Productive Interactive Computing";
6916+ homepage = http://ipython.org/;
6917+ license = licenses.bsd3;
6918+ maintainers = with maintainers; [ bjornfor jgeerds ];
6919+ };
6920+ };
6921+
69156922 ipython_genutils = buildPythonPackage rec {
69166923 version = "0.1.0";
69176924 name = "ipython_genutils-${version}";
@@ -6967,7 +6974,7 @@ let
69676974 url = "http://pypi.python.org/packages/source/i/ipdb/${name}.zip";
69686975 md5 = "96dca0712efa01aa5eaf6b22071dd3ed";
69696976 };
6970− propagatedBuildInputs = with self; [ self.ipythonLight ];
6977+ propagatedBuildInputs = with self; [ self.ipython ];
69716978 };
69726979
69736980 ipdbplugin = buildPythonPackage {
@@ -6976,7 +6983,7 @@ let
69766983 url = "https://pypi.python.org/packages/source/i/ipdbplugin/ipdbplugin-1.4.tar.gz";
69776984 md5 = "f9a41512e5d901ea0fa199c3f648bba7";
69786985 };
6979− propagatedBuildInputs = with self; [ self.nose self.ipythonLight ];
6986+ propagatedBuildInputs = with self; [ self.nose self.ipython ];
69806987 };
69816988
69826989 iso8601 = buildPythonPackage {