From ce1ed97c338d249868ade7be815879eb3a55c311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl=20Thom=C3=A9?= Date: Sat, 13 May 2023 16:16:39 +0200 Subject: [PATCH] jupyter: make sure `nix run` starts notebook server (#231657) --- .../python-modules/notebook/default.nix | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/notebook/default.nix b/pkgs/development/python-modules/notebook/default.nix index 5e0d4a1b064a..37cc248a20a1 100644 --- a/pkgs/development/python-modules/notebook/default.nix +++ b/pkgs/development/python-modules/notebook/default.nix @@ -39,10 +39,22 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook glibcLocales ]; propagatedBuildInputs = [ - jinja2 tornado ipython_genutils traitlets jupyter-core send2trash - jupyter-client nbformat nbclassic - nbconvert ipykernel terminado requests pexpect - prometheus-client argon2-cffi + jinja2 + tornado + ipython_genutils + traitlets + jupyter-core + send2trash + jupyter-client + nbformat + nbclassic + nbconvert + ipykernel + terminado + requests + pexpect + prometheus-client + argon2-cffi ]; postPatch = '' @@ -82,5 +94,6 @@ buildPythonPackage rec { homepage = "https://jupyter.org/"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ fridh ]; + mainProgram = "jupyter-notebook"; }; }