1{ lib
2, buildPythonPackage
3, fetchPypi
4, nose
5, isPy27
6, mock
7, ipython
8, jupyter_client
9, pexpect
10, traitlets
11, tornado
12}:
13
14buildPythonPackage rec {
15 pname = "ipykernel";
16 version = "4.8.1";
17 name = "${pname}-${version}";
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "fe2837622a4121cbe42b354db1e2ab46c91e807ffcb92f4c2cfd323a75f8737f";
22 };
23
24 buildInputs = [ nose ] ++ lib.optional isPy27 mock;
25 propagatedBuildInputs = [
26 ipython
27 jupyter_client
28 pexpect
29 traitlets
30 tornado
31 ];
32
33 # Tests require backends.
34 # I don't want to add all supported backends as propagatedBuildInputs
35 doCheck = false;
36
37 meta = {
38 description = "IPython Kernel for Jupyter";
39 homepage = http://ipython.org/;
40 license = lib.licenses.bsd3;
41 maintainers = with lib.maintainers; [ fridh ];
42 };
43}