depot/third_party/nixpkgs/pkgs/development/python-modules/flask-socketio/default.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

47 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 ];
};
}