mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-30 12:14:55 +00:00
Diff: https://github.com/jupyter-server/jupyter_ydoc/compare/v3.4.1...v4.1.0 Changelog: https://github.com/jupyter-server/jupyter_ydoc/blob/v4.1.0/CHANGELOG.md
65 lines
1.2 KiB
Nix
65 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
hatch-nodejs-version,
|
|
hatchling,
|
|
|
|
# dependencies
|
|
anyio,
|
|
pycrdt,
|
|
|
|
# tests
|
|
pycrdt-websocket,
|
|
pytestCheckHook,
|
|
websockets,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "jupyter-ydoc";
|
|
version = "4.1.1";
|
|
pyproject = true;
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jupyter-server";
|
|
repo = "jupyter_ydoc";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-8hGe8a4kA8fAqsR9hN5NK7BKhtw0HnsN14uWcc1239M=";
|
|
};
|
|
|
|
build-system = [
|
|
hatch-nodejs-version
|
|
hatchling
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"pycrdt"
|
|
];
|
|
dependencies = [
|
|
anyio
|
|
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/${finalAttrs.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 ];
|
|
};
|
|
})
|