My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/jupyter_console/default.nix

45 lines
826 B

{ lib
, buildPythonPackage
, fetchPypi
, nose
, jupyter-client
, ipython
, ipykernel
, prompt-toolkit
, pygments
, pythonOlder
}:
buildPythonPackage rec {
pname = "jupyter_console";
version = "6.4.3";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-VfMmJrC+ZHqF4yF93Nsi22nvx56LQDuXceuezGlgGbU=";
};
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;
};
}