anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / flask-sock / default.nix
blobbb5f82925cfb1bb0373a7af6218674356f0b616c
2   lib,
3   buildPythonPackage,
4   pytestCheckHook,
5   pythonOlder,
6   fetchFromGitHub,
7   flask,
8   setuptools,
9   simple-websocket,
12 buildPythonPackage rec {
13   pname = "flask-sock";
14   version = "0.7.0";
15   pyproject = true;
17   disabled = pythonOlder "3.6";
19   src = fetchFromGitHub {
20     owner = "miguelgrinberg";
21     repo = "flask-sock";
22     rev = "v${version}";
23     hash = "sha256-GKfOVdeLPag2IKGCWrMjQp4NTL1/9GiyLhXhf9jQKhQ=";
24   };
26   nativeBuildInputs = [ setuptools ];
28   propagatedBuildInputs = [
29     flask
30     simple-websocket
31   ];
33   pytestFlagsArray = [ "tests/test_flask_sock.py" ];
35   pythonImportsCheck = [ "flask_sock" ];
37   nativeCheckInputs = [ pytestCheckHook ];
39   meta = with lib; {
40     description = "WebSocket support for Flask";
41     homepage = "https://github.com/miguelgrinberg/flask-sock/";
42     changelog = "https://github.com/miguelgrinberg/flask-sock/blob/main/CHANGES.md";
43     license = licenses.mit;
44     maintainers = with maintainers; [ fmhoeger ];
45   };