{ lib, buildPythonPackage, fetchPypi, hatchling, hatch-jupyter-builder, jupyter-collaboration, }: buildPythonPackage rec { pname = "jupyter-docprovider"; version = "2.1.0"; pyproject = true; src = fetchPypi { pname = "jupyter_docprovider"; inherit version; hash = "sha256-ivZhxlMAM0V3+i4mpltghvv2Z01ilt3rv6/XTUGMlNM="; }; 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 ]; }; }