ed0c4a69f0
GitOrigin-RevId: e3652e0735fbec227f342712f180f4f21f0594f2
66 lines
1.2 KiB
Nix
66 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, hatchling
|
|
, aiofiles
|
|
, aiosqlite
|
|
, y-py
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonRelaxDepsHook
|
|
, websockets
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ypy-websocket";
|
|
version = "0.8.4";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "y-crdt";
|
|
repo = "ypy-websocket";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-jl2ciIA3enJRfPgcu96MZN+BmNL+bBet54AFDBy3seY=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"aiofiles"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
hatchling
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiofiles
|
|
aiosqlite
|
|
y-py
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"ypy_websocket"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
websockets
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# requires installing yjs Node.js module
|
|
"tests/test_ypy_yjs.py"
|
|
];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/y-crdt/ypy-websocket/blob/${version}/CHANGELOG.md";
|
|
description = "WebSocket Connector for Ypy";
|
|
homepage = "https://github.com/y-crdt/ypy-websocket";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|