about summary refs log tree commit diff
path: root/pkgs/development/python-modules/flask-sock/default.nix
blob: 36ef8a093e1e3d5cea7a4cae595557110d914303 (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
44
45
46
47
48
49
50
51
{ lib
, buildPythonPackage
, pytestCheckHook
, pythonOlder
, fetchFromGitHub
, flask
, setuptools
, simple-websocket
}:

buildPythonPackage rec {
  pname = "flask-sock";
  version = "0.7.0";
  pyproject = true;

  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "miguelgrinberg";
    repo = "flask-sock";
    rev = "v${version}";
    hash = "sha256-GKfOVdeLPag2IKGCWrMjQp4NTL1/9GiyLhXhf9jQKhQ=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    flask
    simple-websocket
  ];

  pytestFlagsArray = [
    "tests/test_flask_sock.py"
  ];

  pythonImportsCheck = [ "flask_sock" ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = with lib; {
    description = "WebSocket support for Flask";
    homepage = "https://github.com/miguelgrinberg/flask-sock/";
    changelog = "https://github.com/miguelgrinberg/flask-sock/blob/main/CHANGES.md";
    license = licenses.mit;
    maintainers = with maintainers; [ fmhoeger ];
  };
}