02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
45 lines
826 B
Nix
45 lines
826 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, nose
|
|
, jupyter-client
|
|
, ipython
|
|
, ipykernel
|
|
, prompt-toolkit
|
|
, pygments
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jupyter_console";
|
|
version = "6.4.4";
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-Fy9TNeMdYA32FhOpe38DUvLIJQu9EJLvLWWPdySfifs=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
jupyter-client
|
|
ipython
|
|
ipykernel
|
|
prompt-toolkit
|
|
pygments
|
|
];
|
|
checkInputs = [ nose ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "prompt_toolkit>=2.0.0,<2.1.0" "prompt_toolkit"
|
|
'';
|
|
|
|
# ValueError: underlying buffer has been detached
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Jupyter terminal console";
|
|
homepage = "https://jupyter.org/";
|
|
license = lib.licenses.bsd3;
|
|
};
|
|
}
|