depot/third_party/nixpkgs/pkgs/development/python-modules/jupyter_console/default.nix
Default email d0d8e8fc71 Project import generated by Copybara.
GitOrigin-RevId: d3f7e969b9860fb80750147aeb56dab1c730e756
2021-03-23 19:22:30 +00:00

45 lines
839 B
Nix

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