14 # optional-dependencies
27 buildPythonPackage rec {
28 pname = "python-socketio";
32 src = fetchFromGitHub {
33 owner = "miguelgrinberg";
34 repo = "python-socketio";
36 hash = "sha256-oIlPPddp9zr3oK/2zXYyuzbhL8nAs1k2DVIumvODimQ=";
39 build-system = [ setuptools ];
46 optional-dependencies = {
51 asyncio_client = [ aiohttp ];
59 ] ++ lib.flatten (lib.attrValues optional-dependencies);
61 pythonImportsCheck = [ "socketio" ];
63 disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
64 # Use fixed ports which leads to failures when building concurrently
65 "tests/async/test_admin.py"
66 "tests/common/test_admin.py"
69 __darwinAllowLocalNetworking = true;
72 description = "Python Socket.IO server and client";
74 Socket.IO is a lightweight transport protocol that enables real-time
75 bidirectional event-based communication between clients and a server.
77 homepage = "https://github.com/miguelgrinberg/python-socketio/";
78 changelog = "https://github.com/miguelgrinberg/python-socketio/blob/${src.tag}/CHANGES.md";
79 license = with lib.licenses; [ mit ];
80 maintainers = with lib.maintainers; [ mic92 ];