1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, async_generator 5, pytest-trio 6, pytestCheckHook 7, trio 8, trustme 9, wsproto 10}: 11 12buildPythonPackage rec { 13 pname = "trio-websocket"; 14 version = "0.9.2"; 15 16 src = fetchFromGitHub { 17 owner = "HyperionGray"; 18 repo = "trio-websocket"; 19 rev = version; 20 sha256 = "sha256-8VrpI/pk5IhEvqzo036cnIbJ1Hu3UfQ6GHTNkNJUYvo="; 21 }; 22 23 propagatedBuildInputs = [ 24 async_generator 25 trio 26 wsproto 27 ]; 28 29 checkInputs = [ 30 pytest-trio 31 pytestCheckHook 32 trustme 33 ]; 34 35 pythonImportsCheck = [ "trio_websocket" ]; 36 37 meta = with lib; { 38 description = "WebSocket client and server implementation for Python Trio"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ SuperSandro2000 ]; 41 }; 42}