depot/third_party/nixpkgs/pkgs/development/python-modules/flask-socketio/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

50 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
flask,
pytestCheckHook,
python-socketio,
pythonOlder,
redis,
}:
buildPythonPackage rec {
pname = "flask-socketio";
version = "5.4.1";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "miguelgrinberg";
repo = "Flask-SocketIO";
rev = "refs/tags/v${version}";
hash = "sha256-owlgbw0QBUz2wCBxd1rjMI+4nPVTZ6JgmU2tL+vIj5g=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
flask
python-socketio
];
nativeCheckInputs = [
pytestCheckHook
redis
];
pytestFlagsArray = [ "test_socketio.py" ];
pythonImportsCheck = [ "flask_socketio" ];
meta = with lib; {
description = "Socket.IO integration for Flask applications";
homepage = "https://github.com/miguelgrinberg/Flask-SocketIO/";
changelog = "https://github.com/miguelgrinberg/Flask-SocketIO/blob/v${version}/CHANGES.md";
license = licenses.mit;
maintainers = with maintainers; [ mic92 ];
};
}