Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.0.2"; 15 16 format = "pyproject"; 17 18 src = fetchPypi { 19 pname = "jupyter_ydoc"; 20 inherit version; 21 hash = "sha256-D5W+3j8eCB4H1cV8A8ZY46Ukfg7xiIkHT776IN0+ylM="; 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}