mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
32f67cd3e4
Socket.IO and Engine.IO protocols are not backwards-compatible and major versions of the client and server need to be coordinated. It's therefore useful to have python-socketio 4.x available.
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{ lib
|
|
, bidict
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, mock
|
|
, pytestCheckHook
|
|
, python-engineio_3
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-socketio";
|
|
version = "4.6.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "miguelgrinberg";
|
|
repo = "python-socketio";
|
|
rev = "v${version}";
|
|
sha256 = "14dijag17v84v0pp9qi89h5awb4h4i9rj0ppkixqv6is9z9lflw5";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
bidict
|
|
python-engineio_3
|
|
];
|
|
|
|
checkInputs = [
|
|
mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "socketio" ];
|
|
|
|
# pytestCheckHook seems to change the default log level to WARNING, but the
|
|
# tests assert it is ERROR
|
|
disabledTests = [ "test_logger" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python Socket.IO server and client 4.x";
|
|
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-socketio/";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ graham33 ];
|
|
};
|
|
}
|