python311Packages.pycrdt-websocket: init at 0.12.5

This commit is contained in:
natsukium 2023-12-21 19:22:52 +09:00
parent 2ab1605cdc
commit 577ebe7d5f
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53
2 changed files with 73 additions and 0 deletions

View File

@ -0,0 +1,71 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, hatchling
, aiosqlite
, anyio
, channels
, pycrdt
, pytest-asyncio
, pytestCheckHook
, uvicorn
, websockets
}:
buildPythonPackage rec {
pname = "pycrdt-websocket";
version = "0.12.5";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "jupyter-server";
repo = "pycrdt-websocket";
rev = "refs/tags/v${version}";
hash = "sha256-dTjWujRMYpg8XZ0OkEG49OLIAPj8qnZl+W7713NKVaA=";
};
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;
};
}

View File

@ -9343,6 +9343,8 @@ self: super: with self; {
pycrdt = callPackage ../development/python-modules/pycrdt { };
pycrdt-websocket = callPackage ../development/python-modules/pycrdt-websocket { };
pyfibaro = callPackage ../development/python-modules/pyfibaro { };
pyfireservicerota = callPackage ../development/python-modules/pyfireservicerota { };