depot/pkgs/development/python-modules/jupyter-server-ydoc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1 KiB
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
fetchPypi,
hatchling,
jsonschema,
jupyter-events,
jupyter-server,
jupyter-server-fileid,
jupyter-ydoc,
pycrdt,
pycrdt-websocket,
jupyter-collaboration,
}:
buildPythonPackage rec {
pname = "jupyter-server-ydoc";
version = "1.0.0";
pyproject = true;
src = fetchPypi {
pname = "jupyter_server_ydoc";
inherit version;
hash = "sha256-MBdSTB2gaIFbdIyPHr5+wI7aBH/Fl85ywSWxgAmjkek=";
};
build-system = [ hatchling ];
dependencies = [
jsonschema
jupyter-events
jupyter-server
jupyter-server-fileid
jupyter-ydoc
pycrdt
pycrdt-websocket
];
pythonImportsCheck = [ "jupyter_server_ydoc" ];
# no tests
doCheck = false;
passthru.tests = jupyter-collaboration.tests;
meta = {
description = "Jupyter-server extension integrating collaborative shared models";
homepage = "https://github.com/jupyterlab/jupyter-collaboration/tree/main/projects/jupyter-server-ydoc";
license = lib.licenses.bsd3;
maintainers = lib.teams.jupyter.members;
};
}