20 buildPythonPackage rec {
21 pname = "python-engineio";
25 disabled = pythonOlder "3.8";
27 src = fetchFromGitHub {
28 owner = "miguelgrinberg";
29 repo = "python-engineio";
30 rev = "refs/tags/v${version}";
31 hash = "sha256-qfFMpE0aW8/TUBaKcaD/qV+JaBEqNR3WZ+mhQQsXkdU=";
34 build-system = [ setuptools ];
36 dependencies = [ simple-websocket ];
38 optional-dependencies = {
43 asyncio_client = [ aiohttp ];
56 doCheck = !stdenv.hostPlatform.isDarwin;
58 preCheck = lib.optionalString stdenv.hostPlatform.isLinux ''
59 echo "nameserver 127.0.0.1" > resolv.conf
60 export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols:/etc/resolv.conf=$(realpath resolv.conf) \
61 LD_PRELOAD=${libredirect}/lib/libredirect.so
65 unset NIX_REDIRECTS LD_PRELOAD
68 # somehow effective log level does not change?
69 disabledTests = [ "test_logger" ];
71 pythonImportsCheck = [ "engineio" ];
74 description = "Python based Engine.IO client and server";
76 Engine.IO is a lightweight transport protocol that enables real-time
77 bidirectional event-based communication between clients and a server.
79 homepage = "https://github.com/miguelgrinberg/python-engineio/";
80 changelog = "https://github.com/miguelgrinberg/python-engineio/blob/v${version}/CHANGES.md";
81 license = with licenses; [ mit ];
82 maintainers = with maintainers; [ mic92 ];