18 buildPythonPackage rec {
19 pname = "python-engineio";
21 format = "setuptools";
23 disabled = pythonOlder "3.6";
25 src = fetchFromGitHub {
26 owner = "miguelgrinberg";
27 repo = "python-engineio";
28 rev = "refs/tags/v${version}";
29 hash = "sha256-jHXpPnrQlIpmQ2sY4y6AUx/6W8Pf+683s4NmmlwZO58=";
32 propagatedBuildInputs = [
36 passthru.optional-dependencies = {
56 doCheck = !stdenv.isDarwin;
58 preCheck = lib.optionalString stdenv.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?
73 pythonImportsCheck = [
78 description = "Python based Engine.IO client and server";
80 Engine.IO is a lightweight transport protocol that enables real-time
81 bidirectional event-based communication between clients and a server.
83 homepage = "https://github.com/miguelgrinberg/python-engineio/";
84 changelog = "https://github.com/miguelgrinberg/python-engineio/blob/v${version}/CHANGES.md";
85 license = with licenses; [ mit ];
86 maintainers = with maintainers; [ mic92 ];