46 lines
1.0 KiB
Nix
46 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
hatchling,
|
|
hatch-jupyter-builder,
|
|
jupyter-collaboration,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "jupyter-collaboration-ui";
|
|
version = "2.4.1";
|
|
pyproject = true;
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "jupyter_collaboration_ui";
|
|
inherit (finalAttrs) version;
|
|
hash = "sha256-DEoBl0qGRch6VDzubqIQ4480/G2Nz0G4pG/RMpr5fr4=";
|
|
};
|
|
|
|
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;
|
|
|
|
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;
|
|
teams = [ lib.teams.jupyter ];
|
|
};
|
|
})
|