1{ lib
2, buildPythonPackage
3, fetchPypi
4, hatch-nodejs-version
5, hatchling
6, y-py
7, pytestCheckHook
8, websockets
9, ypy-websocket
10}:
11
12buildPythonPackage rec {
13 pname = "jupyter-ydoc";
14 version = "1.1.1";
15
16 format = "pyproject";
17
18 src = fetchPypi {
19 pname = "jupyter_ydoc";
20 inherit version;
21 hash = "sha256-APizOm59VcvhK5G4emqGtnPikz13w6EmG7qLJHU2Rd0=";
22 };
23
24 nativeBuildInputs = [
25 hatch-nodejs-version
26 hatchling
27 ];
28
29 propagatedBuildInputs = [
30 y-py
31 ];
32
33 pythonImportsCheck = [ "jupyter_ydoc" ];
34
35 nativeCheckInputs = [
36 pytestCheckHook
37 websockets
38 ypy-websocket
39 ];
40
41 # requires a Node.js environment
42 doCheck = false;
43
44 meta = {
45 changelog = "https://github.com/jupyter-server/jupyter_ydoc/blob/v${version}/CHANGELOG.md";
46 description = "Document structures for collaborative editing using Ypy";
47 homepage = "https://github.com/jupyter-server/jupyter_ydoc";
48 license = lib.licenses.bsd3;
49 maintainers = lib.teams.jupyter.members;
50 };
51}