1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 hatchling,
6 hatch-jupyter-builder,
7 jupyter-collaboration,
8}:
9
10buildPythonPackage rec {
11 pname = "jupyter-docprovider";
12 version = "2.1.1";
13 pyproject = true;
14
15 src = fetchPypi {
16 pname = "jupyter_docprovider";
17 inherit version;
18 hash = "sha256-cwPzUoU0d9ipbj3mEADzCpt97n98AjfVUsrupPRER3k=";
19 };
20
21 postPatch = ''
22 substituteInPlace pyproject.toml \
23 --replace-fail ', "jupyterlab>=4.0.0"' ""
24 '';
25
26 build-system = [
27 hatchling
28 hatch-jupyter-builder
29 ];
30
31 pythonImportsCheck = [ "jupyter_docprovider" ];
32
33 # no tests
34 doCheck = false;
35
36 passthru.tests = jupyter-collaboration;
37
38 meta = {
39 description = "JupyterLab/Jupyter Notebook 7+ extension integrating collaborative shared models";
40 homepage = "https://github.com/jupyterlab/jupyter-collaboration/tree/main/projects/jupyter-docprovider";
41 license = lib.licenses.bsd3;
42 teams = [ lib.teams.jupyter ];
43 };
44}