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