{ lib, buildPythonPackage, fetchPypi, hatchling, hatch-jupyter-builder, jupyter-collaboration, }: buildPythonPackage rec { pname = "jupyter-docprovider"; version = "2.0.2"; pyproject = true; src = fetchPypi { pname = "jupyter_docprovider"; inherit version; hash = "sha256-vWgNlg6Ydw4va3DlEx3A/M9uE0t54GTrV1ljmlX44TU="; }; 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; 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; teams = [ lib.teams.jupyter ]; }; }