nixpkgs/pkgs/development/python-modules/jupyter_console/default.nix
2021-04-03 17:48:38 +02:00

46 lines
839 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, nose
, jupyter_client
, ipython
, ipykernel
, prompt_toolkit
, pygments
, pythonOlder
}:
buildPythonPackage rec {
pname = "jupyter_console";
version = "6.4.0";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "242248e1685039cd8bff2c2ecb7ce6c1546eb50ee3b08519729e6e881aec19c7";
};
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;
};
}