mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
56 lines
1 KiB
Nix
56 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
hatch-nodejs-version,
|
|
hatchling,
|
|
|
|
# dependencies
|
|
pycrdt,
|
|
pytestCheckHook,
|
|
|
|
# tests
|
|
websockets,
|
|
ypy-websocket,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jupyter-ydoc";
|
|
version = "3.0.5";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jupyter-server";
|
|
repo = "jupyter_ydoc";
|
|
tag = "v${version}";
|
|
hash = "sha256-bOSlP16Wt/HpIXpkDurJByqYd0YV8gktUiVTHYkfbNc=";
|
|
};
|
|
|
|
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/${src.tag}/CHANGELOG.md";
|
|
description = "Document structures for collaborative editing using Ypy";
|
|
homepage = "https://github.com/jupyter-server/jupyter_ydoc";
|
|
license = lib.licenses.bsd3;
|
|
teams = [ lib.teams.jupyter ];
|
|
};
|
|
}
|