1{ lib 2, aiohttp 3, bidict 4, buildPythonPackage 5, fetchFromGitHub 6, mock 7, msgpack 8, pytestCheckHook 9, python-engineio 10, pythonOlder 11, requests 12, websocket-client 13}: 14 15buildPythonPackage rec { 16 pname = "python-socketio"; 17 version = "5.7.1"; 18 format = "setuptools"; 19 20 disabled = pythonOlder "3.6"; 21 22 src = fetchFromGitHub { 23 owner = "miguelgrinberg"; 24 repo = "python-socketio"; 25 rev = "v${version}"; 26 sha256 = "sha256-KVaBSBWLeFJYiNJYTwoExExUmUaeNJ40c/WTgTc2Y/w="; 27 }; 28 29 propagatedBuildInputs = [ 30 aiohttp 31 bidict 32 python-engineio 33 requests 34 websocket-client 35 ]; 36 37 checkInputs = [ 38 mock 39 msgpack 40 pytestCheckHook 41 ]; 42 43 pythonImportsCheck = [ 44 "socketio" 45 ]; 46 47 meta = with lib; { 48 description = "Python Socket.IO server and client"; 49 longDescription = '' 50 Socket.IO is a lightweight transport protocol that enables real-time 51 bidirectional event-based communication between clients and a server. 52 ''; 53 homepage = "https://github.com/miguelgrinberg/python-socketio/"; 54 license = with licenses; [ mit ]; 55 maintainers = with maintainers; [ mic92 ]; 56 }; 57}