Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / python-socketio / default.nix
blob8eb58b244e14519f9e5512d2c453cb10e4636437
1 { lib
2 , bidict
3 , buildPythonPackage
4 , fetchFromGitHub
5 , mock
6 , pytestCheckHook
7 , python-engineio
8 }:
10 buildPythonPackage rec {
11   pname = "python-socketio";
12   version = "5.0.4";
14   src = fetchFromGitHub {
15     owner = "miguelgrinberg";
16     repo = "python-socketio";
17     rev = "v${version}";
18     sha256 = "0mpqr53mrdzk9ki24y1inpsfvjlvm7pvxf8q4d52m80i5pcd5v5q";
19   };
21   propagatedBuildInputs = [
22     bidict
23     python-engineio
24   ];
26   checkInputs = [
27     mock
28     pytestCheckHook
29   ];
31   pythonImportsCheck = [ "socketio" ];
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   };