Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 47 lines 1.1 kB view raw
1{ lib 2, bidict 3, buildPythonPackage 4, fetchFromGitHub 5, mock 6, pytestCheckHook 7, python-engineio_3 8}: 9 10buildPythonPackage rec { 11 pname = "python-socketio"; 12 version = "4.6.1"; 13 14 src = fetchFromGitHub { 15 owner = "miguelgrinberg"; 16 repo = "python-socketio"; 17 rev = "v${version}"; 18 sha256 = "14dijag17v84v0pp9qi89h5awb4h4i9rj0ppkixqv6is9z9lflw5"; 19 }; 20 21 propagatedBuildInputs = [ 22 bidict 23 python-engineio_3 24 ]; 25 26 checkInputs = [ 27 mock 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ "socketio" ]; 32 33 # pytestCheckHook seems to change the default log level to WARNING, but the 34 # tests assert it is ERROR 35 disabledTests = [ "test_logger" ]; 36 37 meta = with lib; { 38 description = "Python Socket.IO server and client 4.x"; 39 longDescription = '' 40 Socket.IO is a lightweight transport protocol that enables real-time 41 bidirectional event-based communication between clients and a server. 42 ''; 43 homepage = "https://github.com/miguelgrinberg/python-socketio/"; 44 license = with licenses; [ mit ]; 45 maintainers = with maintainers; [ graham33 ]; 46 }; 47}