587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
71 lines
1.3 KiB
Nix
71 lines
1.3 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, hatchling
|
|
, aiosqlite
|
|
, anyio
|
|
, channels
|
|
, pycrdt
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, uvicorn
|
|
, websockets
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pycrdt-websocket";
|
|
version = "0.12.7";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jupyter-server";
|
|
repo = "pycrdt-websocket";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-e4VEEudsdtfC2ek8wODxxoFuaOwl4GKS1cX3QeshuD8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
hatchling
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiosqlite
|
|
anyio
|
|
pycrdt
|
|
];
|
|
|
|
passthru.optional-dependencies = {
|
|
django = [
|
|
channels
|
|
];
|
|
};
|
|
|
|
pythonImportsCheck = [
|
|
"pycrdt_websocket"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
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;
|
|
};
|
|
}
|