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.1.0";
16 disabled = pythonOlder "3.5";
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "06s3kr5vx0l1y1b7fxb04dmrppscl7q69sl9yyfr0d057d1ssvkg";
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}