ae2dc6aea6
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
55 lines
1 KiB
Nix
55 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
|
|
# build-system
|
|
hatch-nodejs-version,
|
|
hatchling,
|
|
|
|
# dependencies
|
|
pycrdt,
|
|
pytestCheckHook,
|
|
|
|
# tests
|
|
websockets,
|
|
ypy-websocket,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jupyter-ydoc";
|
|
version = "2.1.2";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "jupyter_ydoc";
|
|
inherit version;
|
|
hash = "sha256-yYnIm0s9ljtYQJVzKJcimNTVSDTtjzz3Zo3WE9OfKsw=";
|
|
};
|
|
|
|
build-system = [
|
|
hatch-nodejs-version
|
|
hatchling
|
|
];
|
|
|
|
dependencies = [ pycrdt ];
|
|
|
|
pythonImportsCheck = [ "jupyter_ydoc" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
websockets
|
|
ypy-websocket
|
|
];
|
|
|
|
# requires a Node.js environment
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
changelog = "https://github.com/jupyter-server/jupyter_ydoc/blob/v${version}/CHANGELOG.md";
|
|
description = "Document structures for collaborative editing using Ypy";
|
|
homepage = "https://github.com/jupyter-server/jupyter_ydoc";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = lib.teams.jupyter.members;
|
|
};
|
|
}
|