mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
Diff: https://github.com/y-crdt/pycrdt-websocket/compare/0.16.2...0.16.3 Changelog: https://github.com/jupyter-server/pycrdt-websocket/blob/0.16.3/CHANGELOG.md
87 lines
1.6 KiB
Nix
87 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
hatchling,
|
|
|
|
# dependencies
|
|
anyio,
|
|
pycrdt,
|
|
pycrdt-store,
|
|
sqlite-anyio,
|
|
|
|
# optional-dependencies
|
|
channels,
|
|
|
|
# tests
|
|
httpx-ws,
|
|
hypercorn,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
trio,
|
|
uvicorn,
|
|
websockets,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "pycrdt-websocket";
|
|
version = "0.16.3";
|
|
pyproject = true;
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "y-crdt";
|
|
repo = "pycrdt-websocket";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-VGEMsy/UNowGuj9XnjU82H+48QOhqzjI76tqTuYjNlM=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
anyio
|
|
pycrdt
|
|
pycrdt-store
|
|
sqlite-anyio
|
|
];
|
|
|
|
optional-dependencies = {
|
|
django = [ channels ];
|
|
};
|
|
|
|
pythonImportsCheck = [ "pycrdt.websocket" ];
|
|
|
|
nativeCheckInputs = [
|
|
httpx-ws
|
|
hypercorn
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
trio
|
|
uvicorn
|
|
websockets
|
|
];
|
|
|
|
disabledTests = [
|
|
# Looking for a certfile
|
|
# FileNotFoundError: [Errno 2] No such file or directory
|
|
"test_asgi"
|
|
"test_yroom_restart"
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# requires nodejs and installed js modules
|
|
"tests/test_pycrdt_yjs.py"
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = {
|
|
description = "WebSocket Connector for pycrdt";
|
|
homepage = "https://github.com/jupyter-server/pycrdt-websocket";
|
|
changelog = "https://github.com/jupyter-server/pycrdt-websocket/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
teams = [ lib.teams.jupyter ];
|
|
};
|
|
})
|