blob: 421e16fbe59d6272e130a626172db4c8b682fbfa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
hatch-nodejs-version,
hatchling,
# dependencies
pycrdt,
pytestCheckHook,
# tests
pycrdt-websocket,
websockets,
}:
buildPythonPackage rec {
pname = "jupyter-ydoc";
version = "3.3.4";
pyproject = true;
src = fetchFromGitHub {
owner = "jupyter-server";
repo = "jupyter_ydoc";
tag = "v${version}";
hash = "sha256-hcIBLhwRLyDdl7LemK8Et10aS2AVPM0wmHAcnmpA9Zg=";
};
build-system = [
hatch-nodejs-version
hatchling
];
dependencies = [ pycrdt ];
pythonImportsCheck = [ "jupyter_ydoc" ];
nativeCheckInputs = [
pytestCheckHook
pycrdt-websocket
websockets
];
# requires a Node.js environment
doCheck = false;
meta = {
changelog = "https://github.com/jupyter-server/jupyter_ydoc/blob/${src.tag}/CHANGELOG.md";
description = "Document structures for collaborative editing using Yjs/pycrdt";
homepage = "https://github.com/jupyter-server/jupyter_ydoc";
license = lib.licenses.bsd3;
teams = [ lib.teams.jupyter ];
};
}
|