5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
51 lines
999 B
Nix
51 lines
999 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, hatch-nodejs-version
|
|
, hatchling
|
|
, y-py
|
|
, pytestCheckHook
|
|
, websockets
|
|
, ypy-websocket
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jupyter-ydoc";
|
|
version = "1.1.1";
|
|
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
pname = "jupyter_ydoc";
|
|
inherit version;
|
|
hash = "sha256-APizOm59VcvhK5G4emqGtnPikz13w6EmG7qLJHU2Rd0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
hatch-nodejs-version
|
|
hatchling
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
y-py
|
|
];
|
|
|
|
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;
|
|
};
|
|
}
|