Files
nixpkgs/pkgs/development/python-modules/pycrdt-websocket/default.nix
Martin Weinelt bed1841135 python3Packages.pycrdt-websocket: 0.15.5 -> 0.16.0
https://github.com/jupyter-server/pycrdt-websocket/blob/0.16.0/CHANGELOG.md

This commit was automatically generated using update-python-libraries.
2025-08-09 19:02:28 +02:00

85 lines
1.5 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
hatchling,
# dependencies
anyio,
pycrdt,
sqlite-anyio,
# optional-dependencies
channels,
# tests
httpx-ws,
hypercorn,
pytest-asyncio,
pytestCheckHook,
trio,
uvicorn,
websockets,
}:
buildPythonPackage rec {
pname = "pycrdt-websocket";
version = "0.16.0";
pyproject = true;
src = fetchFromGitHub {
owner = "jupyter-server";
repo = "pycrdt-websocket";
tag = version;
hash = "sha256-Qux8IxJR1nGbdpGz7RZBKJjYN0qfwfEpd2UDlduOna0=";
};
build-system = [ hatchling ];
dependencies = [
anyio
pycrdt
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/${src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
teams = [ lib.teams.jupyter ];
};
}