depot/third_party/nixpkgs/pkgs/development/python-modules/jupyter-ydoc/default.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 = "3.0.1";
pyproject = true;
src = fetchPypi {
pname = "jupyter_ydoc";
inherit version;
hash = "sha256-ztrp8+4KdyiDF/IbuBhI7WFnTRukaLDDlsFgomSiEGs=";
};
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;
};
}