2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
|
|
|
hatchling,
|
|
|
|
aiosqlite,
|
|
|
|
anyio,
|
|
|
|
y-py,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
uvicorn,
|
|
|
|
websockets,
|
2023-03-15 16:39:30 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ypy-websocket";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.12.4";
|
2023-03-30 22:05:00 +00:00
|
|
|
format = "pyproject";
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "y-crdt";
|
|
|
|
repo = "ypy-websocket";
|
|
|
|
rev = "refs/tags/v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-48x+MUhev9dErC003XOP3oGKd5uOghlBFgcR8Nm/0xs=";
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonRelaxDeps = [ "aiofiles" ];
|
2023-03-30 22:05:00 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiosqlite
|
2023-07-15 17:15:38 +00:00
|
|
|
anyio
|
2023-03-15 16:39:30 +00:00
|
|
|
y-py
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "ypy_websocket" ];
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
2023-08-04 22:07:22 +00:00
|
|
|
uvicorn
|
2023-03-15 16:39:30 +00:00
|
|
|
websockets
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# requires installing yjs Node.js module
|
|
|
|
"tests/test_ypy_yjs.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/y-crdt/ypy-websocket/blob/${src.rev}/CHANGELOG.md";
|
2023-03-15 16:39:30 +00:00
|
|
|
description = "WebSocket Connector for Ypy";
|
|
|
|
homepage = "https://github.com/y-crdt/ypy-websocket";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|