2022-06-26 10:26:21 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, async_generator
|
|
|
|
, pytest-trio
|
|
|
|
, pytestCheckHook
|
|
|
|
, trio
|
|
|
|
, trustme
|
|
|
|
, wsproto
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "trio-websocket";
|
|
|
|
version = "0.9.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "HyperionGray";
|
|
|
|
repo = "trio-websocket";
|
|
|
|
rev = version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-8VrpI/pk5IhEvqzo036cnIbJ1Hu3UfQ6GHTNkNJUYvo=";
|
2022-06-26 10:26:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
async_generator
|
|
|
|
trio
|
|
|
|
wsproto
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-06-26 10:26:21 +00:00
|
|
|
pytest-trio
|
|
|
|
pytestCheckHook
|
|
|
|
trustme
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "trio_websocket" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "WebSocket client and server implementation for Python Trio";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|