Loading pkgs/development/python-modules/jupyter-collaboration-ui/default.nix 0 → 100644 +44 −0 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchPypi, hatchling, hatch-jupyter-builder, jupyter-collaboration, }: buildPythonPackage rec { pname = "jupyter-collaboration-ui"; version = "1.0.0"; pyproject = true; src = fetchPypi { pname = "jupyter_collaboration_ui"; inherit version; hash = "sha256-hTyUmLzRvexNTZxTv4Mbflm+OTW9j0HReLpAJuk/WnY="; }; postPatch = '' substituteInPlace pyproject.toml \ --replace-fail ', "jupyterlab>=4.0.0"' "" ''; build-system = [ hatchling hatch-jupyter-builder ]; pythonImportsCheck = [ "jupyter_collaboration_ui" ]; # no tests doCheck = false; passthru.tests = jupyter-collaboration.tests; meta = { description = "JupyterLab/Jupyter Notebook 7+ extension providing user interface integration for real time collaboration"; homepage = "https://github.com/jupyterlab/jupyter-collaboration/tree/main/projects/jupyter-collaboration-ui"; license = lib.licenses.bsd3; maintainers = lib.teams.jupyter.members; }; } pkgs/development/python-modules/jupyter-collaboration/default.nix +13 −44 Original line number Diff line number Diff line Loading @@ -4,73 +4,42 @@ fetchPypi, # build-system hatch-jupyter-builder, hatch-nodejs-version, hatchling, jupyterlab, # dependencies jsonschema, jupyter-events, jupyter-server, jupyter-server-fileid, jupyter-ydoc, pycrdt, pycrdt-websocket, jupyter-collaboration-ui, jupyter-docprovider, jupyter-server-ydoc, # tests pytest-jupyter, pytestCheckHook, websockets, callPackage, }: buildPythonPackage rec { pname = "jupyter-collaboration"; version = "2.1.4"; version = "3.0.0"; pyproject = true; src = fetchPypi { pname = "jupyter_collaboration"; inherit version; hash = "sha256-YT3wrTQ8imuTK8zeJbwscHtawtqspf1oItGzMMfg5io="; hash = "sha256-eewAsh/EI8DV4FNWgjEhT61RUbaYE6suOAny4bf1CCw="; }; postPatch = '' sed -i "/^timeout/d" pyproject.toml ''; build-system = [ hatch-jupyter-builder hatch-nodejs-version hatchling jupyterlab ]; build-system = [ hatchling ]; dependencies = [ jsonschema jupyter-events jupyter-server jupyter-server-fileid jupyter-ydoc pycrdt pycrdt-websocket ]; nativeCheckInputs = [ pytest-jupyter pytestCheckHook websockets jupyter-collaboration-ui jupyter-docprovider jupyter-server-ydoc ]; pythonImportsCheck = [ "jupyter_collaboration" ]; preCheck = '' export HOME=$TEMP ''; pytestFlagsArray = [ "-Wignore::DeprecationWarning" ]; # no tests doCheck = false; __darwinAllowLocalNetworking = true; passthru.tests = callPackage ./test.nix { }; meta = { description = "JupyterLab Extension enabling Real-Time Collaboration"; Loading pkgs/development/python-modules/jupyter-collaboration/test.nix 0 → 100644 +39 −0 Original line number Diff line number Diff line { stdenvNoCC, fetchFromGitHub, jupyter-collaboration, pytest-jupyter, pytestCheckHook, websockets, }: stdenvNoCC.mkDerivation (finalAttrs: { pname = "jupyter-collaboration-test"; inherit (jupyter-collaboration) version; src = fetchFromGitHub { owner = "jupyterlab"; repo = "jupyter-collaboration"; rev = "refs/tags/v${finalAttrs.version}"; hash = "sha256-6hDYB1uC0WraB37s9EKLJF7jyFu0B3xLocuLYyKj4hs="; }; postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "timeout = 300" "" ''; installPhase = '' touch $out ''; env.HOME = "$TMPDIR"; doCheck = true; nativeCheckInputs = [ jupyter-collaboration pytest-jupyter pytestCheckHook websockets ]; }) pkgs/development/python-modules/jupyter-docprovider/default.nix 0 → 100644 +44 −0 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchPypi, hatchling, hatch-jupyter-builder, jupyter-collaboration, }: buildPythonPackage rec { pname = "jupyter-docprovider"; version = "1.0.0"; pyproject = true; src = fetchPypi { pname = "jupyter_docprovider"; inherit version; hash = "sha256-EcO3GqdbhRxawHwfSnjOHfFmYjpZy2NuuGc5CSW/xlY="; }; postPatch = '' substituteInPlace pyproject.toml \ --replace-fail ', "jupyterlab>=4.0.0"' "" ''; build-system = [ hatchling hatch-jupyter-builder ]; pythonImportsCheck = [ "jupyter_docprovider" ]; # no tests doCheck = false; passthru.tests = jupyter-collaboration.tests; meta = { description = "JupyterLab/Jupyter Notebook 7+ extension integrating collaborative shared models"; homepage = "https://github.com/jupyterlab/jupyter-collaboration/tree/main/projects/jupyter-docprovider"; license = lib.licenses.bsd3; maintainers = lib.teams.jupyter.members; }; } pkgs/development/python-modules/jupyter-server-ydoc/default.nix 0 → 100644 +52 −0 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchPypi, hatchling, jsonschema, jupyter-events, jupyter-server, jupyter-server-fileid, jupyter-ydoc, pycrdt, pycrdt-websocket, jupyter-collaboration, }: buildPythonPackage rec { pname = "jupyter-server-ydoc"; version = "1.0.0"; pyproject = true; src = fetchPypi { pname = "jupyter_server_ydoc"; inherit version; hash = "sha256-MBdSTB2gaIFbdIyPHr5+wI7aBH/Fl85ywSWxgAmjkek="; }; build-system = [ hatchling ]; dependencies = [ jsonschema jupyter-events jupyter-server jupyter-server-fileid jupyter-ydoc pycrdt pycrdt-websocket ]; pythonImportsCheck = [ "jupyter_server_ydoc" ]; # no tests doCheck = false; passthru.tests = jupyter-collaboration.tests; meta = { description = "Jupyter-server extension integrating collaborative shared models"; homepage = "https://github.com/jupyterlab/jupyter-collaboration/tree/main/projects/jupyter-server-ydoc"; license = lib.licenses.bsd3; maintainers = lib.teams.jupyter.members; }; } Loading
pkgs/development/python-modules/jupyter-collaboration-ui/default.nix 0 → 100644 +44 −0 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchPypi, hatchling, hatch-jupyter-builder, jupyter-collaboration, }: buildPythonPackage rec { pname = "jupyter-collaboration-ui"; version = "1.0.0"; pyproject = true; src = fetchPypi { pname = "jupyter_collaboration_ui"; inherit version; hash = "sha256-hTyUmLzRvexNTZxTv4Mbflm+OTW9j0HReLpAJuk/WnY="; }; postPatch = '' substituteInPlace pyproject.toml \ --replace-fail ', "jupyterlab>=4.0.0"' "" ''; build-system = [ hatchling hatch-jupyter-builder ]; pythonImportsCheck = [ "jupyter_collaboration_ui" ]; # no tests doCheck = false; passthru.tests = jupyter-collaboration.tests; meta = { description = "JupyterLab/Jupyter Notebook 7+ extension providing user interface integration for real time collaboration"; homepage = "https://github.com/jupyterlab/jupyter-collaboration/tree/main/projects/jupyter-collaboration-ui"; license = lib.licenses.bsd3; maintainers = lib.teams.jupyter.members; }; }
pkgs/development/python-modules/jupyter-collaboration/default.nix +13 −44 Original line number Diff line number Diff line Loading @@ -4,73 +4,42 @@ fetchPypi, # build-system hatch-jupyter-builder, hatch-nodejs-version, hatchling, jupyterlab, # dependencies jsonschema, jupyter-events, jupyter-server, jupyter-server-fileid, jupyter-ydoc, pycrdt, pycrdt-websocket, jupyter-collaboration-ui, jupyter-docprovider, jupyter-server-ydoc, # tests pytest-jupyter, pytestCheckHook, websockets, callPackage, }: buildPythonPackage rec { pname = "jupyter-collaboration"; version = "2.1.4"; version = "3.0.0"; pyproject = true; src = fetchPypi { pname = "jupyter_collaboration"; inherit version; hash = "sha256-YT3wrTQ8imuTK8zeJbwscHtawtqspf1oItGzMMfg5io="; hash = "sha256-eewAsh/EI8DV4FNWgjEhT61RUbaYE6suOAny4bf1CCw="; }; postPatch = '' sed -i "/^timeout/d" pyproject.toml ''; build-system = [ hatch-jupyter-builder hatch-nodejs-version hatchling jupyterlab ]; build-system = [ hatchling ]; dependencies = [ jsonschema jupyter-events jupyter-server jupyter-server-fileid jupyter-ydoc pycrdt pycrdt-websocket ]; nativeCheckInputs = [ pytest-jupyter pytestCheckHook websockets jupyter-collaboration-ui jupyter-docprovider jupyter-server-ydoc ]; pythonImportsCheck = [ "jupyter_collaboration" ]; preCheck = '' export HOME=$TEMP ''; pytestFlagsArray = [ "-Wignore::DeprecationWarning" ]; # no tests doCheck = false; __darwinAllowLocalNetworking = true; passthru.tests = callPackage ./test.nix { }; meta = { description = "JupyterLab Extension enabling Real-Time Collaboration"; Loading
pkgs/development/python-modules/jupyter-collaboration/test.nix 0 → 100644 +39 −0 Original line number Diff line number Diff line { stdenvNoCC, fetchFromGitHub, jupyter-collaboration, pytest-jupyter, pytestCheckHook, websockets, }: stdenvNoCC.mkDerivation (finalAttrs: { pname = "jupyter-collaboration-test"; inherit (jupyter-collaboration) version; src = fetchFromGitHub { owner = "jupyterlab"; repo = "jupyter-collaboration"; rev = "refs/tags/v${finalAttrs.version}"; hash = "sha256-6hDYB1uC0WraB37s9EKLJF7jyFu0B3xLocuLYyKj4hs="; }; postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "timeout = 300" "" ''; installPhase = '' touch $out ''; env.HOME = "$TMPDIR"; doCheck = true; nativeCheckInputs = [ jupyter-collaboration pytest-jupyter pytestCheckHook websockets ]; })
pkgs/development/python-modules/jupyter-docprovider/default.nix 0 → 100644 +44 −0 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchPypi, hatchling, hatch-jupyter-builder, jupyter-collaboration, }: buildPythonPackage rec { pname = "jupyter-docprovider"; version = "1.0.0"; pyproject = true; src = fetchPypi { pname = "jupyter_docprovider"; inherit version; hash = "sha256-EcO3GqdbhRxawHwfSnjOHfFmYjpZy2NuuGc5CSW/xlY="; }; postPatch = '' substituteInPlace pyproject.toml \ --replace-fail ', "jupyterlab>=4.0.0"' "" ''; build-system = [ hatchling hatch-jupyter-builder ]; pythonImportsCheck = [ "jupyter_docprovider" ]; # no tests doCheck = false; passthru.tests = jupyter-collaboration.tests; meta = { description = "JupyterLab/Jupyter Notebook 7+ extension integrating collaborative shared models"; homepage = "https://github.com/jupyterlab/jupyter-collaboration/tree/main/projects/jupyter-docprovider"; license = lib.licenses.bsd3; maintainers = lib.teams.jupyter.members; }; }
pkgs/development/python-modules/jupyter-server-ydoc/default.nix 0 → 100644 +52 −0 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchPypi, hatchling, jsonschema, jupyter-events, jupyter-server, jupyter-server-fileid, jupyter-ydoc, pycrdt, pycrdt-websocket, jupyter-collaboration, }: buildPythonPackage rec { pname = "jupyter-server-ydoc"; version = "1.0.0"; pyproject = true; src = fetchPypi { pname = "jupyter_server_ydoc"; inherit version; hash = "sha256-MBdSTB2gaIFbdIyPHr5+wI7aBH/Fl85ywSWxgAmjkek="; }; build-system = [ hatchling ]; dependencies = [ jsonschema jupyter-events jupyter-server jupyter-server-fileid jupyter-ydoc pycrdt pycrdt-websocket ]; pythonImportsCheck = [ "jupyter_server_ydoc" ]; # no tests doCheck = false; passthru.tests = jupyter-collaboration.tests; meta = { description = "Jupyter-server extension integrating collaborative shared models"; homepage = "https://github.com/jupyterlab/jupyter-collaboration/tree/main/projects/jupyter-server-ydoc"; license = lib.licenses.bsd3; maintainers = lib.teams.jupyter.members; }; }