nixpkgs/pkgs/development/python-modules/flask-socketio/default.nix
Florian Brandes a8cc62f9ce python3Packages.flask-socketio: 5.1.1 -> 5.3.3
Changelog: https://github.com/miguelgrinberg/Flask-SocketIO/blob/main/CHANGES.md

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2023-04-21 11:04:15 +02:00

48 lines
869 B
Nix

{ lib
, buildPythonPackage
, coverage
, fetchFromGitHub
, flask
, pytestCheckHook
, python-socketio
, pythonOlder
, redis
}:
buildPythonPackage rec {
pname = "Flask-SocketIO";
version = "5.3.3";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "miguelgrinberg";
repo = "Flask-SocketIO";
rev = "v${version}";
hash = "sha256-oqy6tSk569QaSkeNsyXuaD6uUB3yuEFg9Jwh5rneyOE=";
};
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/";
license = licenses.mit;
maintainers = [ maintainers.mic92 ];
};
}