depot/third_party/nixpkgs/pkgs/development/python-modules/flask-socketio/default.nix
Default email 22017988c6 Project import generated by Copybara.
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
2022-04-27 11:35:20 +02:00

43 lines
813 B
Nix

{ lib
, buildPythonPackage
, coverage
, fetchFromGitHub
, flask
, pytestCheckHook
, python-socketio
}:
buildPythonPackage rec {
pname = "Flask-SocketIO";
version = "5.1.1";
src = fetchFromGitHub {
owner = "miguelgrinberg";
repo = "Flask-SocketIO";
rev = "v${version}";
sha256 = "sha256-PnNJEtcWaisOlt6OmYUl97TlZb9cK2ORvtEcmGPxSB0=";
};
propagatedBuildInputs = [
flask
python-socketio
];
checkInputs = [
coverage
pytestCheckHook
];
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 ];
};
}