diff --git a/pkgs/development/python-modules/ipython/default.nix b/pkgs/development/python-modules/ipython/default.nix index 06829aefe412..09935bb1bc06 100644 --- a/pkgs/development/python-modules/ipython/default.nix +++ b/pkgs/development/python-modules/ipython/default.nix @@ -19,6 +19,16 @@ , traitlets , typing-extensions +# Optional dependencies +, ipykernel +, ipyparallel +, ipywidgets +, matplotlib +, nbconvert +, nbformat +, notebook +, qtconsole + # Test dependencies , pickleshare , pytest-asyncio @@ -28,20 +38,20 @@ buildPythonPackage rec { pname = "ipython"; - version = "8.22.2"; + version = "8.23.0"; pyproject = true; disabled = pythonOlder "3.10"; src = fetchPypi { inherit pname version; - hash = "sha256-LcqtkEn5BW8f72NRTxdsfUH5MNqnjQW4KhdiAoGPLBQ="; + hash = "sha256-dGjtr09t4+G5EuV/ZsJB5v08cJny7CE24jnhQugAJ00="; }; - nativeBuildInputs = [ + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ decorator jedi matplotlib-inline @@ -52,10 +62,23 @@ buildPythonPackage rec { traitlets ] ++ lib.optionals (pythonOlder "3.11") [ exceptiongroup - ] ++ lib.optionals (pythonOlder "3.10") [ + ] ++ lib.optionals (pythonOlder "3.12") [ typing-extensions ]; + optional-dependencies = { + kernel = [ ipykernel ]; + nbconvert = [ nbconvert ]; + nbformat = [ nbformat ]; + notebook = [ + ipywidgets + notebook + ]; + parallel = [ ipyparallel ]; + qtconsole = [ qtconsole ]; + matplotlib = [ matplotlib ]; + }; + pythonImportsCheck = [ "IPython" ];