2017-09-13 09:24:13 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, nose
|
|
|
|
, jupyter_client
|
|
|
|
, ipython
|
|
|
|
, ipykernel
|
|
|
|
, prompt_toolkit
|
|
|
|
, pygments
|
2018-11-04 02:12:45 +00:00
|
|
|
, pythonOlder
|
2017-09-13 09:24:13 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyter_console";
|
2020-01-22 11:30:28 +00:00
|
|
|
version = "6.1.0";
|
2018-11-04 02:12:45 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
2017-09-13 09:24:13 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-01-22 11:30:28 +00:00
|
|
|
sha256 = "06s3kr5vx0l1y1b7fxb04dmrppscl7q69sl9yyfr0d057d1ssvkg";
|
2017-09-13 09:24:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
jupyter_client
|
|
|
|
ipython
|
|
|
|
ipykernel
|
|
|
|
prompt_toolkit
|
|
|
|
pygments
|
|
|
|
];
|
2019-12-22 20:37:58 +00:00
|
|
|
checkInputs = [ nose ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "prompt_toolkit>=2.0.0,<2.1.0" "prompt_toolkit"
|
|
|
|
'';
|
2017-09-13 09:24:13 +01:00
|
|
|
|
|
|
|
# ValueError: underlying buffer has been detached
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Jupyter terminal console";
|
2019-04-22 09:14:28 +01:00
|
|
|
homepage = "https://jupyter.org/";
|
2017-09-13 09:24:13 +01:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
2018-11-04 02:12:45 +00:00
|
|
|
}
|