1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 flask,
7 pytestCheckHook,
8 python-socketio,
9 pythonOlder,
10 redis,
11}:
12
13buildPythonPackage rec {
14 pname = "flask-socketio";
15 version = "5.5.1";
16 format = "pyproject";
17
18 disabled = pythonOlder "3.6";
19
20 src = fetchFromGitHub {
21 owner = "miguelgrinberg";
22 repo = "Flask-SocketIO";
23 tag = "v${version}";
24 hash = "sha256-C/eNyvAfyu2oTBZUFvDhTZqyyB+aohAHDNzShqbD4O4=";
25 };
26
27 nativeBuildInputs = [ setuptools ];
28
29 propagatedBuildInputs = [
30 flask
31 python-socketio
32 ];
33
34 nativeCheckInputs = [
35 pytestCheckHook
36 redis
37 ];
38
39 enabledTestPaths = [ "test_socketio.py" ];
40
41 pythonImportsCheck = [ "flask_socketio" ];
42
43 meta = with lib; {
44 description = "Socket.IO integration for Flask applications";
45 homepage = "https://github.com/miguelgrinberg/Flask-SocketIO/";
46 changelog = "https://github.com/miguelgrinberg/Flask-SocketIO/blob/${src.tag}/CHANGES.md";
47 license = licenses.mit;
48 maintainers = with maintainers; [ mic92 ];
49 };
50}