2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2021-01-06 08:54:30 +01:00
|
|
|
, bidict
|
2018-12-01 11:51:45 +01:00
|
|
|
, buildPythonPackage
|
2021-01-06 08:52:26 +01:00
|
|
|
, fetchFromGitHub
|
2018-12-01 11:51:45 +01:00
|
|
|
, mock
|
2021-01-06 08:54:30 +01:00
|
|
|
, pytestCheckHook
|
|
|
|
, python-engineio
|
2018-12-01 11:51:45 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-socketio";
|
2021-01-06 08:50:07 +01:00
|
|
|
version = "5.0.4";
|
2018-12-01 11:51:45 +01:00
|
|
|
|
2021-01-06 08:52:26 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "miguelgrinberg";
|
|
|
|
repo = "python-socketio";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0mpqr53mrdzk9ki24y1inpsfvjlvm7pvxf8q4d52m80i5pcd5v5q";
|
2018-12-01 11:51:45 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-01-06 08:52:26 +01:00
|
|
|
bidict
|
2018-12-01 11:51:45 +01:00
|
|
|
python-engineio
|
|
|
|
];
|
|
|
|
|
2021-01-06 08:54:30 +01:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-12-01 11:51:45 +01:00
|
|
|
|
2021-01-06 08:55:27 +01:00
|
|
|
pythonImportsCheck = [ "socketio" ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2021-01-06 09:01:15 +01: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-16 01:35:10 +01:00
|
|
|
homepage = "https://github.com/miguelgrinberg/python-socketio/";
|
2021-01-06 09:01:15 +01:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ mic92 ];
|
2018-12-01 11:51:45 +01:00
|
|
|
};
|
|
|
|
}
|