mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 12:23:02 +00:00
python311Packages.pycrdt-websocket: init at 0.12.5
This commit is contained in:
parent
2ab1605cdc
commit
577ebe7d5f
71
pkgs/development/python-modules/pycrdt-websocket/default.nix
Normal file
71
pkgs/development/python-modules/pycrdt-websocket/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user