summary refs log tree commit diff
path: root/pkgs/development/python-modules/flask-socketio/default.nix
blob: a429e81ce0fb441fabe4814bef5df405825265fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ lib
, buildPythonPackage
, coverage
, fetchFromGitHub
, flask
, pytestCheckHook
, python-socketio
}:

buildPythonPackage rec {
  pname = "Flask-SocketIO";
  version = "5.1.1";

  src = fetchFromGitHub {
    owner = "miguelgrinberg";
    repo = "Flask-SocketIO";
    rev = "v${version}";
    sha256 = "sha256-PnNJEtcWaisOlt6OmYUl97TlZb9cK2ORvtEcmGPxSB0=";
  };

  propagatedBuildInputs = [
    flask
    python-socketio
  ];

  checkInputs = [
    coverage
    pytestCheckHook
  ];

  pytestFlagsArray = [
    "test_socketio.py"
  ];

  pythonImportsCheck = [ "flask_socketio" ];

  meta = with lib; {
    description = "Socket.IO integration for Flask applications";
    homepage = "https://github.com/miguelgrinberg/Flask-SocketIO/";
    license = licenses.mit;
    maintainers = [ maintainers.mic92 ];
  };
}