mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
3e566da3a7
https://github.com/jupyterlab/jupyter-collaboration/tree/main/projects/jupyter-docprovider
45 lines
975 B
Nix
45 lines
975 B
Nix
{
|
|
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;
|
|
};
|
|
}
|