1{ lib
2, buildPythonPackage
3, fetchPypi
4, nose
5, jupyter-client
6, ipython
7, ipykernel
8, prompt-toolkit
9, pygments
10, pythonOlder
11}:
12
13buildPythonPackage rec {
14 pname = "jupyter_console";
15 version = "6.4.0";
16 disabled = pythonOlder "3.5";
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "242248e1685039cd8bff2c2ecb7ce6c1546eb50ee3b08519729e6e881aec19c7";
21 };
22
23 propagatedBuildInputs = [
24 jupyter-client
25 ipython
26 ipykernel
27 prompt-toolkit
28 pygments
29 ];
30 checkInputs = [ nose ];
31
32 postPatch = ''
33 substituteInPlace setup.py \
34 --replace "prompt_toolkit>=2.0.0,<2.1.0" "prompt_toolkit"
35 '';
36
37 # ValueError: underlying buffer has been detached
38 doCheck = false;
39
40 meta = {
41 description = "Jupyter terminal console";
42 homepage = "https://jupyter.org/";
43 license = lib.licenses.bsd3;
44 };
45}