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

53 lines
1.0 KiB
Nix

{
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.1.0";
pyproject = true;
src = fetchPypi {
pname = "jupyter_server_ydoc";
inherit version;
hash = "sha256-Jw7FFBilQegSSTVXgWM7ccEw4r9KCQXIjqI7bOUIDW8=";
};
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;
};
}