2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
2024-10-11 05:15:48 +00:00
|
|
|
|
|
|
|
# build-system
|
2024-06-05 15:53:02 +00:00
|
|
|
hatch-jupyter-builder,
|
|
|
|
hatch-nodejs-version,
|
|
|
|
hatchling,
|
2024-10-11 05:15:48 +00:00
|
|
|
jupyterlab,
|
|
|
|
|
|
|
|
# dependencies
|
2024-06-05 15:53:02 +00:00
|
|
|
jsonschema,
|
|
|
|
jupyter-events,
|
|
|
|
jupyter-server,
|
|
|
|
jupyter-server-fileid,
|
|
|
|
jupyter-ydoc,
|
2024-10-11 05:15:48 +00:00
|
|
|
pycrdt,
|
2024-06-05 15:53:02 +00:00
|
|
|
pycrdt-websocket,
|
2024-10-11 05:15:48 +00:00
|
|
|
|
|
|
|
# tests
|
2024-06-05 15:53:02 +00:00
|
|
|
pytest-jupyter,
|
|
|
|
pytestCheckHook,
|
|
|
|
websockets,
|
2023-03-15 16:39:30 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-08-10 07:59:29 +00:00
|
|
|
pname = "jupyter-collaboration";
|
2024-10-11 05:15:48 +00:00
|
|
|
version = "2.1.4";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2023-03-15 16:39:30 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
pname = "jupyter_collaboration";
|
|
|
|
inherit version;
|
2024-10-11 05:15:48 +00:00
|
|
|
hash = "sha256-YT3wrTQ8imuTK8zeJbwscHtawtqspf1oItGzMMfg5io=";
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i "/^timeout/d" pyproject.toml
|
|
|
|
'';
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
2023-08-10 07:59:29 +00:00
|
|
|
hatch-jupyter-builder
|
|
|
|
hatch-nodejs-version
|
2023-03-15 16:39:30 +00:00
|
|
|
hatchling
|
2023-10-09 19:29:22 +00:00
|
|
|
jupyterlab
|
2023-03-15 16:39:30 +00:00
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2024-01-02 11:29:13 +00:00
|
|
|
jsonschema
|
2023-08-10 07:59:29 +00:00
|
|
|
jupyter-events
|
|
|
|
jupyter-server
|
2023-03-15 16:39:30 +00:00
|
|
|
jupyter-server-fileid
|
|
|
|
jupyter-ydoc
|
2024-10-11 05:15:48 +00:00
|
|
|
pycrdt
|
2024-01-02 11:29:13 +00:00
|
|
|
pycrdt-websocket
|
2023-03-15 16:39:30 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytest-jupyter
|
|
|
|
pytestCheckHook
|
2024-01-02 11:29:13 +00:00
|
|
|
websockets
|
2023-03-15 16:39:30 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "jupyter_collaboration" ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$TEMP
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestFlagsArray = [ "-Wignore::DeprecationWarning" ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
meta = {
|
2023-08-10 07:59:29 +00:00
|
|
|
description = "JupyterLab Extension enabling Real-Time Collaboration";
|
2023-03-15 16:39:30 +00:00
|
|
|
homepage = "https://github.com/jupyterlab/jupyter_collaboration";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/jupyterlab/jupyter_collaboration/blob/v${version}/CHANGELOG.md";
|
2024-10-11 05:15:48 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = lib.teams.jupyter.members;
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
}
|