2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2021-12-06 16:07:01 +00:00
|
|
|
, aiohttp
|
2021-01-09 10:05:03 +00:00
|
|
|
, bidict
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2021-01-09 10:05:03 +00:00
|
|
|
, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, mock
|
2021-10-01 09:20:50 +00:00
|
|
|
, msgpack
|
2021-01-09 10:05:03 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, python-engineio
|
2021-12-06 16:07:01 +00:00
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
, websocket-client
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-socketio";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "5.7.1";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "miguelgrinberg";
|
|
|
|
repo = "python-socketio";
|
|
|
|
rev = "v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-KVaBSBWLeFJYiNJYTwoExExUmUaeNJ40c/WTgTc2Y/w=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
aiohttp
|
2021-01-09 10:05:03 +00:00
|
|
|
bidict
|
2020-04-24 23:36:52 +00:00
|
|
|
python-engineio
|
2021-12-06 16:07:01 +00:00
|
|
|
requests
|
|
|
|
websocket-client
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
2021-10-01 09:20:50 +00:00
|
|
|
msgpack
|
2021-01-09 10:05:03 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"socketio"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-01-09 10:05:03 +00:00
|
|
|
description = "Python Socket.IO server and client";
|
|
|
|
longDescription = ''
|
|
|
|
Socket.IO is a lightweight transport protocol that enables real-time
|
|
|
|
bidirectional event-based communication between clients and a server.
|
|
|
|
'';
|
2021-02-17 17:02:09 +00:00
|
|
|
homepage = "https://github.com/miguelgrinberg/python-socketio/";
|
2021-01-09 10:05:03 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ mic92 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|