Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pycrdt-websocket / default.nix
blob74e34811279f8749090dadd7f361dd7b4eaa9ca5
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , hatchling
6 , aiosqlite
7 , anyio
8 , channels
9 , pycrdt
10 , pytest-asyncio
11 , pytestCheckHook
12 , uvicorn
13 , websockets
16 buildPythonPackage rec {
17   pname = "pycrdt-websocket";
18   version = "0.12.7";
19   pyproject = true;
21   disabled = pythonOlder "3.8";
23   src = fetchFromGitHub {
24     owner = "jupyter-server";
25     repo = "pycrdt-websocket";
26     rev = "refs/tags/v${version}";
27     hash = "sha256-e4VEEudsdtfC2ek8wODxxoFuaOwl4GKS1cX3QeshuD8=";
28   };
30   nativeBuildInputs = [
31     hatchling
32   ];
34   propagatedBuildInputs = [
35     aiosqlite
36     anyio
37     pycrdt
38   ];
40   passthru.optional-dependencies = {
41     django = [
42       channels
43     ];
44   };
46   pythonImportsCheck = [
47     "pycrdt_websocket"
48   ];
50   nativeCheckInputs = [
51     pytest-asyncio
52     pytestCheckHook
53     uvicorn
54     websockets
55   ];
57   disabledTestPaths = [
58     # requires nodejs and installed js modules
59     "tests/test_pycrdt_yjs.py"
60   ];
62   __darwinAllowLocalNetworking = true;
64   meta = with lib; {
65     description = "WebSocket Connector for pycrdt";
66     homepage = "https://github.com/jupyter-server/pycrdt-websocket";
67     changelog = "https://github.com/jupyter-server/pycrdt-websocket/blob/${src.rev}/CHANGELOG.md";
68     license = licenses.mit;
69     maintainers = teams.jupyter.members;
70   };