2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
flask,
|
|
|
|
gevent,
|
|
|
|
gevent-websocket,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Flask-Sockets";
|
|
|
|
version = "0.2.1";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "072927da8edca0e81e024f5787e643c87d80b351b714de95d723becb30e0643b";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
flask
|
|
|
|
gevent
|
|
|
|
gevent-websocket
|
|
|
|
];
|
|
|
|
|
|
|
|
# upstream doesn't have any tests, single file
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "flask_sockets" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Elegant WebSockets for your Flask apps";
|
|
|
|
homepage = "https://github.com/heroku-python/flask-sockets";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.prusnak ];
|
|
|
|
};
|
|
|
|
}
|