5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
77 lines
1.3 KiB
Nix
77 lines
1.3 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, hatchling
|
|
, anyio
|
|
, channels
|
|
, httpx-ws
|
|
, hypercorn
|
|
, pycrdt
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, sqlite-anyio
|
|
, trio
|
|
, uvicorn
|
|
, websockets
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pycrdt-websocket";
|
|
version = "0.13.4";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jupyter-server";
|
|
repo = "pycrdt-websocket";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-nkm1ZQ6bYBRDDoREovhEthDZoHApYxzAnwVgDgpWW/s=";
|
|
};
|
|
|
|
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
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# requires nodejs and installed js modules
|
|
"tests/test_pycrdt_yjs.py"
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = with lib; {
|
|
description = "WebSocket Connector for pycrdt";
|
|
homepage = "https://github.com/jupyter-server/pycrdt-websocket";
|
|
changelog = "https://github.com/jupyter-server/pycrdt-websocket/blob/${src.rev}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = teams.jupyter.members;
|
|
};
|
|
}
|