19 buildPythonPackage rec {
20 pname = "python-engineio";
24 disabled = pythonOlder "3.6";
26 src = fetchFromGitHub {
27 owner = "miguelgrinberg";
28 repo = "python-engineio";
29 rev = "refs/tags/v${version}";
30 hash = "sha256-FpPGIK5HVtTzDOpORo+WPhS1860P3dm1nJkvakpzsjE=";
37 propagatedBuildInputs = [
41 passthru.optional-dependencies = {
61 doCheck = !stdenv.isDarwin;
63 preCheck = lib.optionalString stdenv.isLinux ''
64 echo "nameserver 127.0.0.1" > resolv.conf
65 export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols:/etc/resolv.conf=$(realpath resolv.conf) \
66 LD_PRELOAD=${libredirect}/lib/libredirect.so
70 unset NIX_REDIRECTS LD_PRELOAD
73 # somehow effective log level does not change?
78 pythonImportsCheck = [
83 description = "Python based Engine.IO client and server";
85 Engine.IO is a lightweight transport protocol that enables real-time
86 bidirectional event-based communication between clients and a server.
88 homepage = "https://github.com/miguelgrinberg/python-engineio/";
89 changelog = "https://github.com/miguelgrinberg/python-engineio/blob/v${version}/CHANGES.md";
90 license = with licenses; [ mit ];
91 maintainers = with maintainers; [ mic92 ];