diff --git a/pkgs/development/python-modules/jupyter_console/5.nix b/pkgs/development/python-modules/jupyter_console/5.nix new file mode 100644 index 00000000000..57c4a9c96d9 --- /dev/null +++ b/pkgs/development/python-modules/jupyter_console/5.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonPackage +, fetchPypi +, nose +, jupyter_client +, ipython +, ipykernel +, prompt_toolkit_1 +, pygments +}: + +buildPythonPackage rec { + pname = "jupyter_console"; + version = "5.2.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "545dedd3aaaa355148093c5609f0229aeb121b4852995c2accfa64fe3e0e55cd"; + }; + + checkInputs = [ nose ]; + propagatedBuildInputs = [ + jupyter_client + ipython + ipykernel + prompt_toolkit_1 + pygments + ]; + + # ValueError: underlying buffer has been detached + doCheck = false; + + meta = { + description = "Jupyter terminal console"; + homepage = "http://jupyter.org/"; + license = lib.licenses.bsd3; + }; +} diff --git a/pkgs/development/python-modules/jupyter_console/default.nix b/pkgs/development/python-modules/jupyter_console/default.nix index 26b52c41c23..aa028785013 100644 --- a/pkgs/development/python-modules/jupyter_console/default.nix +++ b/pkgs/development/python-modules/jupyter_console/default.nix @@ -7,15 +7,17 @@ , ipykernel , prompt_toolkit , pygments +, pythonOlder }: buildPythonPackage rec { pname = "jupyter_console"; - version = "5.2.0"; + version = "6.0.0"; + disabled = pythonOlder "3.5"; src = fetchPypi { inherit pname version; - sha256 = "545dedd3aaaa355148093c5609f0229aeb121b4852995c2accfa64fe3e0e55cd"; + sha256 = "308ce876354924fb6c540b41d5d6d08acfc946984bf0c97777c1ddcb42e0b2f5"; }; checkInputs = [ nose ]; @@ -34,6 +36,5 @@ buildPythonPackage rec { description = "Jupyter terminal console"; homepage = "http://jupyter.org/"; license = lib.licenses.bsd3; - platforms = lib.platforms.all; }; -} \ No newline at end of file +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8b5dce2605d..49d87320934 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1796,7 +1796,10 @@ in { jupyter = callPackage ../development/python-modules/jupyter { }; - jupyter_console = callPackage ../development/python-modules/jupyter_console { }; + jupyter_console = if pythonOlder "3.5" then + callPackage ../development/python-modules/jupyter_console/5.nix { } + else + callPackage ../development/python-modules/jupyter_console { }; jupyterlab_launcher = callPackage ../development/python-modules/jupyterlab_launcher { };