Something went wrong. Try again.
lol
Something went wrong. Try again.
1.8 kB · 81 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182{ lib, buildPythonPackage, fetchFromGitHub,
# build-system hatchling,
# dependencies jupyter-collaboration-ui, jupyter-docprovider, jupyter-server-ydoc, jupyterlab,
# tests dirty-equals, httpx-ws, pytest-jupyter, pytest-timeout, pytestCheckHook, writableTmpDirAsHomeHook,}:
buildPythonPackage (finalAttrs: { pname = "jupyter-collaboration"; version = "4.3.0"; pyproject = true;
src = fetchFromGitHub { owner = "jupyterlab"; repo = "jupyter-collaboration"; tag = "v${finalAttrs.version}"; hash = "sha256-m9ABwJFZgoVZ5tqOh8q5qYA8F4V/aTL+9cjjTpldf8o="; };
sourceRoot = "${finalAttrs.src.name}/projects/jupyter-collaboration";
build-system = [ hatchling ];
dependencies = [ jupyter-collaboration-ui jupyter-docprovider jupyter-server-ydoc jupyterlab ];
pythonImportsCheck = [ "jupyter_collaboration" ];
nativeCheckInputs = [ dirty-equals httpx-ws pytest-jupyter pytest-timeout pytestCheckHook writableTmpDirAsHomeHook ];
pytestFlags = [ # pytest.PytestCacheWarning: could not create cache path /build/source/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/build/source/pytest-cache-files-plraagdr' "-pno:cacheprovider" ];
preCheck = '' appendToVar enabledTestPaths "$src/tests" '';
disabledTests = [ # Failed: Timeout (>300.0s) from pytest-timeout "test_document_ttl_from_settings" ];
__darwinAllowLocalNetworking = true;
meta = { description = "JupyterLab Extension enabling Real-Time Collaboration"; homepage = "https://github.com/jupyterlab/jupyter_collaboration"; changelog = "https://github.com/jupyterlab/jupyter_collaboration/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.bsd3; teams = [ lib.teams.jupyter ]; };})