Diff: https://github.com/y-crdt/ypy-websocket/compare/refs/tags/v0.12.3...v0.12.4 Changelog: https://github.com/y-crdt/ypy-websocket/blob/refs/tags/v0.12.4/CHANGELOG.md
69 lines
1.2 KiB
Nix
69 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, hatchling
|
|
, aiosqlite
|
|
, anyio
|
|
, y-py
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonRelaxDepsHook
|
|
, uvicorn
|
|
, websockets
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ypy-websocket";
|
|
version = "0.12.4";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "y-crdt";
|
|
repo = "ypy-websocket";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-48x+MUhev9dErC003XOP3oGKd5uOghlBFgcR8Nm/0xs=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"aiofiles"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
hatchling
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiosqlite
|
|
anyio
|
|
y-py
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"ypy_websocket"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
uvicorn
|
|
websockets
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# requires installing yjs Node.js module
|
|
"tests/test_ypy_yjs.py"
|
|
];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/y-crdt/ypy-websocket/blob/${src.rev}/CHANGELOG.md";
|
|
description = "WebSocket Connector for Ypy";
|
|
homepage = "https://github.com/y-crdt/ypy-websocket";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|