git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #9254 from FRidh/jupyter

ipython: 3.2 -> 4.0

commitc11dc40d09682405d4ae4ca9a59d7c80c0c0e706 authorPascal Wittmann <PascalWittmann@gmx.net> dateTue 8 Sep 2015, 17:43 (11 years ago) parent7d12a0afb5f783
3 files changed+293−80
pkgs/desktops/gnome-3/3.16/apps/accerciser/default.nix+1−1 pkgs/shells/ipython/default.nix−58 pkgs/top-level/python-packages.nix+292−21
pkgs/desktops/gnome-3/3.16/apps/accerciser/default.nix+1−1
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
1212
1313 buildInputs = [
1414 pkgconfig gtk3 wrapGAppsHook itstool libxml2 python3 pyatspi
15− python3Packages.pygobject3 python3Packages.ipythonLight
15+ python3Packages.pygobject3 python3Packages.ipython
1616 at_spi2_core dbus intltool libwnck3 gnome3.defaultIconTheme
1717 ];
1818
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+292−21
@@ -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 };
@@ -2625,6 +2611,27 @@ let
26252611 license = licenses.mit;
26262612 };
26272613 };
2614+
2615+ pytestrunner = buildPythonPackage rec {
2616+ version = "2.6.2";
2617+ name = "pytest-runner-${version}";
2618+
2619+ src = pkgs.fetchurl {
2620+ url = "https://pypi.python.org/packages/source/p/pytest-runner/${name}.tar.gz";
2621+ sha256 = "e775a40ee4a3a1d45018b199c44cc20bbe7f3df2dc8882f61465bb4141c78cdb";
2622+ };
2623+
2624+ buildInputs = with self; [setuptools_scm pytest];
2625+
2626+ meta = {
2627+ description = "Invoke py.test as distutils command with dependency resolution";
2628+ homepage = https://bitbucket.org/pytest-dev/pytest-runner;
2629+ license = licenses.mit;
2630+ };
2631+
2632+ # Trying to run tests fails with # RuntimeError: dictionary changed size during iteration
2633+ doCheck = false;
2634+ };
26282635
26292636 pytestquickcheck = buildPythonPackage rec {
26302637 name = "pytest-quickcheck-0.8.2";
@@ -7110,6 +7117,81 @@ let
71107117 homepage = http://pypi.python.org/pypi/IPy;
71117118 };
71127119 };
7120+
7121+ ipykernel = buildPythonPackage rec {
7122+ version = "4.0.3";
7123+ name = "ipykernel-${version}";
7124+
7125+ src = pkgs.fetchurl {
7126+ url = "https://pypi.python.org/packages/source/i/ipykernel/${name}.tar.gz";
7127+ sha256 = "a4d7d2d35a0af432c8391872cb4dae727d77031212f32ca858b5c84cd0ea821f";
7128+ };
7129+
7130+ buildInputs = with self; [] ++ optionals isPy27 [mock];
7131+ propagatedBuildInputs = with self; [ipython traitlets jupyter_client pexpect];
7132+
7133+ meta = {
7134+ description = "IPython Kernel for Jupyter";
7135+ homepage = http://ipython.org/;
7136+ license = licenses.bsd3;
7137+ };
7138+ };
7139+
7140+ ipyparallel = buildPythonPackage rec {
7141+ version = "4.0.2";
7142+ name = "ipyparallel-${version}";
7143+
7144+ src = pkgs.fetchurl {
7145+ url = "https://pypi.python.org/packages/source/i/ipyparallel/${name}.tar.gz";
7146+ sha256 = "6b9e09ca441a45e055b97cb8e3e1dd30de85b935fae3aa0d97f138352fd3089b";
7147+ };
7148+
7149+ propagatedBuildInputs = with self; [ipython_genutils decorator pyzmq ipython jupyter_client ipykernel];
7150+
7151+ meta = {
7152+ description = "Interactive Parallel Computing with IPython";
7153+ homepage = http://ipython.org/;
7154+ license = licenses.bsd3;
7155+ };
7156+
7157+ };
7158+
7159+ ipython = buildPythonPackage rec {
7160+ version = "4.0.0";
7161+ name = "ipython-${version}";
7162+
7163+ src = pkgs.fetchurl {
7164+ url = "https://pypi.python.org/packages/source/i/ipython/${name}.tar.gz";
7165+ sha256 = "2fd276c407fb0b29e5d4884a7029a2c27fef0a06fd7a34924cce69b7cc43f4da";
7166+ };
7167+
7168+ buildInputs = with self; [nose] ++ optionals isPy27 [mock];
7169+
7170+ propagatedBuildInputs = with self; [decorator pickleshare simplegeneric traitlets requests pexpect sqlite3];
7171+
7172+ meta = {
7173+ description = "IPython: Productive Interactive Computing";
7174+ homepage = http://ipython.org/;
7175+ license = licenses.bsd3;
7176+ maintainers = with maintainers; [ bjornfor jgeerds ];
7177+ };
7178+ };
7179+
7180+ ipython_genutils = buildPythonPackage rec {
7181+ version = "0.1.0";
7182+ name = "ipython_genutils-${version}";
7183+
7184+ src = pkgs.fetchurl {
7185+ url = "https://pypi.python.org/packages/source/i/ipython_genutils/${name}.tar.gz";
7186+ sha256 = "3a0624a251a26463c9dfa0ffa635ec51c4265380980d9a50d65611c3c2bd82a6";
7187+ };
7188+
7189+ meta = {
7190+ description = "Vestigial utilities from IPython";
7191+ homepage = http://ipython.org/;
7192+ license = licenses.bsd3;
7193+ };
7194+ };
71137195
71147196
71157197 ipaddr = buildPythonPackage rec {
@@ -7150,7 +7232,7 @@ let
71507232 url = "http://pypi.python.org/packages/source/i/ipdb/${name}.zip";
71517233 md5 = "96dca0712efa01aa5eaf6b22071dd3ed";
71527234 };
7153− propagatedBuildInputs = with self; [ self.ipythonLight ];
7235+ propagatedBuildInputs = with self; [ self.ipython ];
71547236 };
71557237
71567238 ipdbplugin = buildPythonPackage {
@@ -7159,7 +7241,7 @@ let
71597241 url = "https://pypi.python.org/packages/source/i/ipdbplugin/ipdbplugin-1.4.tar.gz";
71607242 md5 = "f9a41512e5d901ea0fa199c3f648bba7";
71617243 };
7162− propagatedBuildInputs = with self; [ self.nose self.ipythonLight ];
7244+ propagatedBuildInputs = with self; [ self.nose self.ipython ];
71637245 };
71647246
71657247 iso8601 = buildPythonPackage {
@@ -7321,6 +7403,42 @@ let
73217403 license = licenses.mit;
73227404 };
73237405 };
7406+
7407+ jupyter_client = buildPythonPackage rec {
7408+ version = "4.0.0";
7409+ name = "jupyter_client-${version}";
7410+
7411+ src = pkgs.fetchurl {
7412+ url = "https://pypi.python.org/packages/source/j/jupyter_client/${name}.tar.gz";
7413+ sha256 = "a39a4181ea2021daf6e821acae836999ef6e0fefe603813a7a7d4658d2ffa2ac";
7414+ };
7415+
7416+ propagatedBuildInputs = with self; [traitlets jupyter_core pyzmq] ++ optional isPyPy py;
7417+
7418+ meta = {
7419+ description = "Jupyter protocol implementation and client libraries";
7420+ homepage = http://jupyter.org/;
7421+ license = licenses.bsd3;
7422+ };
7423+ };
7424+
7425+ jupyter_core = buildPythonPackage rec {
7426+ version = "4.0.4";
7427+ name = "jupyter_core-${version}";
7428+
7429+ src = pkgs.fetchurl {
7430+ url = "https://pypi.python.org/packages/source/j/jupyter_core/${name}.tar.gz";
7431+ sha256 = "fcf45478025f34174943993947f51a41ad871ac998a14bf1cb87d8eb61e75c6d";
7432+ };
7433+
7434+ propagatedBuildInputs = with self; [traitlets];
7435+
7436+ meta = {
7437+ description = "Jupyter core package. A base package on which Jupyter projects rely";
7438+ homepage = http://jupyter.org/;
7439+ license = licenses.bsd3;
7440+ };
7441+ };
73247442
73257443
73267444 jsonpath_rw = buildPythonPackage rec {
@@ -8043,6 +8161,24 @@ let
80438161 maintainers = with maintainers; [ thoughtpolice ];
80448162 };
80458163 };
8164+
8165+ mistune = buildPythonPackage rec {
8166+ version = "0.7.1";
8167+ name = "mistune-${version}";
8168+
8169+ src = pkgs.fetchurl {
8170+ url = "https://pypi.python.org/packages/source/m/mistune/${name}.tar.gz";
8171+ sha256 = "6076dedf768348927d991f4371e5a799c6a0158b16091df08ee85ee231d929a7";
8172+ };
8173+
8174+ buildInputs = with self; [nose];
8175+
8176+ meta = {
8177+ decription = "The fastest markdown parser in pure Python";
8178+ homepage = https://github.com/lepture/mistune;
8179+ license = licenses.bsd3;
8180+ };
8181+ };
80468182
80478183 mitmproxy = buildPythonPackage rec {
80488184 baseName = "mitmproxy";
@@ -8526,6 +8662,44 @@ let
85268662 license = licenses.lgpl21Plus;
85278663 };
85288664 };
8665+
8666+ nbconvert = buildPythonPackage rec {
8667+ version = "4.0.0";
8668+ name = "nbconvert-${version}";
8669+
8670+ src = pkgs.fetchurl {
8671+ url = "https://pypi.python.org/packages/source/n/nbconvert/${name}.tar.gz";
8672+ sha256 = "472ad15d1a71f1ef00c4094c11bb93638858fc89fb2c5838b3aa6b67d981b437";
8673+ };
8674+
8675+ buildInputs = with self; [nose];
8676+
8677+ propagatedBuildInputs = with self; [mistune jinja2 pygments traitlets jupyter_core nbformat ipykernel tornado jupyter_client];
8678+
8679+ meta = {
8680+ description = "Converting Jupyter Notebooks";
8681+ homepage = http://jupyter.org/;
8682+ license = licenses.bsd3;
8683+ };
8684+ };
8685+
8686+ nbformat = buildPythonPackage rec {
8687+ version = "4.0.0";
8688+ name = "nbformat-${version}";
8689+
8690+ src = pkgs.fetchurl {
8691+ url = "https://pypi.python.org/packages/source/n/nbformat/${name}.tar.gz";
8692+ sha256 = "daf9b990e96863d120aff123361156a316757757b81a8070eb6945e4a9774b2d";
8693+ };
8694+
8695+ propagatedBuildInputs = with self; [ipython_genutils traitlets jsonschema jupyter_core];
8696+
8697+ meta = {
8698+ description = "The Jupyter Notebook format";
8699+ homepage = "http://jupyter.org/";
8700+ license = licenses.bsd3;
8701+ };
8702+ };
85298703
85308704 nbxmpp = buildPythonPackage rec {
85318705 name = "nbxmpp-0.5.3";
@@ -8855,7 +9029,26 @@ let
88559029
88569030 buildInputs = with self; [ nose ];
88579031 };
8858−
9032+
9033+ notebook = buildPythonPackage rec {
9034+ version = "4.0.4";
9035+ name = "notebook-${version}";
9036+
9037+ src = pkgs.fetchurl {
9038+ url = "https://pypi.python.org/packages/source/n/notebook/${name}.tar.gz";
9039+ sha256 = "a57852514bce1b1cf41fa0311f6cf894960cf68b083b55e6c408316b598d5648";
9040+ };
9041+
9042+ buildInputs = with self; [nose] ++ optionals isPy27 [mock];
9043+
9044+ propagatedBuildInputs = with self; [jinja2 tornado ipython_genutils traitlets jupyter_core jupyter_client nbformat nbconvert ipykernel terminado requests pexpect];
9045+
9046+ meta = {
9047+ description = "The Jupyter HTML notebook is a web-based notebook environment for interactive computing";
9048+ homepage = http://jupyter.org/;
9049+ license = licenses.bsd3;
9050+ };
9051+ };
88599052
88609053 notify = pkgs.stdenv.mkDerivation (rec {
88619054 name = "python-notify-0.1.1";
@@ -9557,19 +9750,27 @@ let
95579750 };
95589751
95599752 pathpy = buildPythonPackage rec {
9560− name = "path.py-5.2";
9753+ version = "7.6";
9754+ name = "path.py-${version}";
95619755
95629756 src = pkgs.fetchurl {
9563− url = "https://pypi.python.org/packages/source/p/path.py/${name}.zip";
9564− sha256 = "0n1kpbbm1dg5f484yzxr7gb3ak6vjp92j70nw3bgjzsj9fh26afq";
9757+ url = "https://pypi.python.org/packages/source/p/path.py/${name}.tar.gz";
9758+ sha256 = "5cdf60f359f1add18f8556c9a1855cbd1d517f0780e3d386c256515f698ba0e0";
95659759 };
9566−
9760+
9761+ buildInputs = with self; [setuptools_scm pytestrunner pytest];
9762+
95679763 meta = {
95689764 description = "A module wrapper for os.path";
95699765 homepage = http://github.com/jaraco/path.py;
95709766 license = licenses.mit;
95719767 platforms = platforms.linux;
95729768 };
9769+
9770+ # Test fails with python 2.7: TestUnicodePaths.test_walkdirs_with_unicode_name
9771+ # Also during tests with python 3.4: RuntimeError: dictionary changed size during iteration
9772+ # Caused by pytestrunner
9773+ doCheck = false;
95739774 };
95749775
95759776 paypalrestsdk = buildPythonPackage rec {
@@ -9814,6 +10015,24 @@ let
981410015 };
981510016 };
981610017
10018+ pickleshare = buildPythonPackage rec {
10019+ version = "0.5";
10020+ name = "pickleshare-${version}";
10021+
10022+ src = pkgs.fetchurl {
10023+ url = "https://pypi.python.org/packages/source/p/pickleshare/${name}.tar.gz";
10024+ sha256 = "c0be5745035d437dbf55a96f60b7712345b12423f7d0951bd7d8dc2141ca9286";
10025+ };
10026+
10027+ propagatedBuildInputs = with self; [pathpy];
10028+
10029+ meta = {
10030+ description = "Tiny 'shelve'-like database with concurrency support";
10031+ homepage = https://github.com/vivainio/pickleshare;
10032+ license = licenses.mit;
10033+ };
10034+ };
10035+
981710036 pip = buildPythonPackage rec {
981810037 version = "1.5.6";
981910038 name = "pip-${version}";
@@ -12193,6 +12412,25 @@ let
1219312412 license = licenses.bsd3;
1219412413 };
1219512414 };
12415+
12416+ qtconsole = buildPythonPackage rec {
12417+ version = "4.0.1";
12418+ name = "qtconsole-${version}";
12419+
12420+ src = pkgs.fetchurl {
12421+ url = "https://pypi.python.org/packages/source/q/qtconsole/${name}.tar.gz";
12422+ sha256 = "7d2cf976bb960df11f413709b5b5b809365c48426110e946d0c12117e6ced3a5";
12423+ };
12424+
12425+ buildInputs = with self; [] ++ optionals isPy27 [mock];
12426+ propagatedBuildInputs = with self; [traitlets jupyter_core jupyter_client pygments ipykernel pyqt4];
12427+
12428+ meta = {
12429+ description = "Jupyter Qt console";
12430+ homepage = http://jupyter.org/;
12431+ license = licenses.bsd3;
12432+ };
12433+ };
1219612434
1219712435 quantities = buildPythonPackage rec {
1219812436 name = "quantities-0.10.1";
@@ -12947,6 +13185,22 @@ let
1294713185 license = "unspecified"; # !
1294813186 };
1294913187 };
13188+
13189+ simplegeneric = buildPythonPackage rec {
13190+ version = "0.8.1";
13191+ name = "simplegeneric-${version}";
13192+
13193+ src = pkgs.fetchurl {
13194+ url = "https://pypi.python.org/packages/source/s/simplegeneric/${name}.zip";
13195+ sha256 = "dc972e06094b9af5b855b3df4a646395e43d1c9d0d39ed345b7393560d0b9173";
13196+ };
13197+
13198+ meta = {
13199+ description = "Simple generic functions";
13200+ homepage = http://cheeseshop.python.org/pypi/simplegeneric;
13201+ license = licenses.zpt21;
13202+ };
13203+ };
1295013204
1295113205
1295213206 simplejson = buildPythonPackage (rec {
@@ -14191,6 +14445,23 @@ let
1419114445 };
1419214446 };
1419314447
14448+ traitlets = buildPythonPackage rec {
14449+ version = "4.0.0";
14450+ name = "traitlets-${version}";
14451+
14452+ src = pkgs.fetchurl {
14453+ url = "https://pypi.python.org/packages/source/t/traitlets/${name}.tar.gz";
14454+ sha256 = "0b140b4a94a4f1951887d9bce4650da211f79600fc9fdb422acc90c5bbe0233b";
14455+ };
14456+
14457+ propagatedBuildInputs = with self; [ipython_genutils decorator];
14458+
14459+ meta = {
14460+ description = "Traitlets Python config system";
14461+ homepage = http://ipython.org/;
14462+ license = licenses.bsd3;
14463+ };
14464+ };
1419414465
1419514466 python_mimeparse = buildPythonPackage rec {
1419614467 name = "python-mimeparse-${version}";