Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / flask-socketio / default.nix
blob53a793c75f5a10ab5c779a4169c7eabb053de6d8
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , flask
6 , pytestCheckHook
7 , python-socketio
8 , pythonOlder
9 , redis
12 buildPythonPackage rec {
13   pname = "Flask-SocketIO";
14   version = "5.3.6";
15   format = "pyproject";
17   disabled = pythonOlder "3.6";
19   src = fetchFromGitHub {
20     owner = "miguelgrinberg";
21     repo = "Flask-SocketIO";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-YjCe34Mvt7tvp3w5yH52lrq4bWi7aIYAUssNqxlQ8CA=";
24   };
26   nativeBuildInputs = [
27     setuptools
28   ];
30   propagatedBuildInputs = [
31     flask
32     python-socketio
33   ];
35   nativeCheckInputs = [
36     pytestCheckHook
37     redis
38   ];
40   pytestFlagsArray = [
41     "test_socketio.py"
42   ];
44   pythonImportsCheck = [
45     "flask_socketio"
46   ];
48   meta = with lib; {
49     description = "Socket.IO integration for Flask applications";
50     homepage = "https://github.com/miguelgrinberg/Flask-SocketIO/";
51     changelog = "https://github.com/miguelgrinberg/Flask-SocketIO/blob/v${version}/CHANGES.md";
52     license = licenses.mit;
53     maintainers = with maintainers; [ mic92 ];
54   };