1{ lib
2, bidict
3, buildPythonPackage
4, fetchFromGitHub
5, mock
6, pytestCheckHook
7, python-engineio
8}:
9
10buildPythonPackage rec {
11 pname = "python-socketio";
12 version = "5.0.4";
13
14 src = fetchFromGitHub {
15 owner = "miguelgrinberg";
16 repo = "python-socketio";
17 rev = "v${version}";
18 sha256 = "0mpqr53mrdzk9ki24y1inpsfvjlvm7pvxf8q4d52m80i5pcd5v5q";
19 };
20
21 propagatedBuildInputs = [
22 bidict
23 python-engineio
24 ];
25
26 checkInputs = [
27 mock
28 pytestCheckHook
29 ];
30
31 pythonImportsCheck = [ "socketio" ];
32
33 meta = with lib; {
34 description = "Python Socket.IO server and client";
35 longDescription = ''
36 Socket.IO is a lightweight transport protocol that enables real-time
37 bidirectional event-based communication between clients and a server.
38 '';
39 homepage = "https://github.com/miguelgrinberg/python-socketio/";
40 license = with licenses; [ mit ];
41 maintainers = with maintainers; [ mic92 ];
42 };
43}