2023-03-15 16:39:30 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
2023-08-10 07:59:29 +00:00
|
|
|
, fetchPypi
|
|
|
|
, hatch-jupyter-builder
|
|
|
|
, hatch-nodejs-version
|
2023-03-15 16:39:30 +00:00
|
|
|
, hatchling
|
2023-07-15 17:15:38 +00:00
|
|
|
, pythonRelaxDepsHook
|
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
|
|
|
|
, ypy-websocket
|
2023-08-10 07:59:29 +00:00
|
|
|
, pytest-asyncio
|
2023-03-15 16:39:30 +00:00
|
|
|
, pytest-jupyter
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-08-10 07:59:29 +00:00
|
|
|
pname = "jupyter-collaboration";
|
|
|
|
version = "1.0.1";
|
2023-03-15 16:39:30 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
pname = "jupyter_collaboration";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-cf7BpF6WSoHQJQW0IXdpCAGTdkX9RNWZ4JovTHvcPho=";
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i "/^timeout/d" pyproject.toml
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2023-08-10 07:59:29 +00:00
|
|
|
hatch-jupyter-builder
|
|
|
|
hatch-nodejs-version
|
2023-03-15 16:39:30 +00:00
|
|
|
hatchling
|
2023-07-15 17:15:38 +00:00
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"ypy-websocket"
|
2023-03-15 16:39:30 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
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
|
|
|
|
ypy-websocket
|
|
|
|
];
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
pythonImportsCheck = [ "jupyter_collaboration" ];
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
nativeCheckInputs = [
|
2023-08-10 07:59:29 +00:00
|
|
|
pytest-asyncio
|
2023-03-15 16:39:30 +00:00
|
|
|
pytest-jupyter
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"-W" "ignore::DeprecationWarning"
|
|
|
|
];
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$TEMP
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2023-08-10 07:59:29 +00:00
|
|
|
changelog = "https://github.com/jupyterlab/jupyter_collaboration/blob/v${version}/CHANGELOG.md";
|
|
|
|
description = "JupyterLab Extension enabling Real-Time Collaboration";
|
2023-03-15 16:39:30 +00:00
|
|
|
homepage = "https://github.com/jupyterlab/jupyter_collaboration";
|
|
|
|
license = lib.licenses.bsd3;
|
2023-08-10 07:59:29 +00:00
|
|
|
maintainers = lib.teams.jupyter.members;
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
}
|