python312Packages.jupyter-docprovider: init at 1.0.0

https://github.com/jupyterlab/jupyter-collaboration/tree/main/projects/jupyter-docprovider
This commit is contained in:
natsukium 2024-11-02 09:56:27 +09:00
parent ab133a3158
commit 3e566da3a7
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,44 @@
{
lib,
buildPythonPackage,
fetchPypi,
hatchling,
hatch-jupyter-builder,
jupyter-collaboration,
}:
buildPythonPackage rec {
pname = "jupyter-docprovider";
version = "1.0.0";
pyproject = true;
src = fetchPypi {
pname = "jupyter_docprovider";
inherit version;
hash = "sha256-EcO3GqdbhRxawHwfSnjOHfFmYjpZy2NuuGc5CSW/xlY=";
};
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.tests;
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;
maintainers = lib.teams.jupyter.members;
};
}

View File

@ -6642,6 +6642,8 @@ self: super: with self; {
jupyter-core = callPackage ../development/python-modules/jupyter-core { };
jupyter-docprovider = callPackage ../development/python-modules/jupyter-docprovider { };
jupyter-events = callPackage ../development/python-modules/jupyter-events { };
jupyter-highlight-selected-word = callPackage ../development/python-modules/jupyter-highlight-selected-word { };