diff options
| author | Graham Bennett <graham@grahambennett.org> | 2021-02-16 01:04:07 +0000 |
|---|---|---|
| committer | Graham Bennett <graham@grahambennett.org> | 2021-02-16 19:19:45 +0000 |
| commit | 32f67cd3e4991f5666103b954059bdf80cc52116 (patch) | |
| tree | 0b379ad13256ab8fb6936c5ca2ae8ac4f313d483 /pkgs/development/python-modules/python-socketio | |
| parent | 50ad4a8c8936f1c3e1ec7e7e32cf52771fe904df (diff) | |
python-socketio_4: init at 4.6.1
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.
Diffstat (limited to 'pkgs/development/python-modules/python-socketio')
| -rw-r--r-- | pkgs/development/python-modules/python-socketio/4.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-socketio/4.nix b/pkgs/development/python-modules/python-socketio/4.nix new file mode 100644 index 000000000000..3a6f5d87fdd4 --- /dev/null +++ b/pkgs/development/python-modules/python-socketio/4.nix @@ -0,0 +1,47 @@ +{ 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 ]; + }; +} |
