depot/third_party/nixpkgs/pkgs/development/python-modules/trio-websocket/default.nix
Default email 889482aab3 Project import generated by Copybara.
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
2022-06-26 12:26:21 +02:00

42 lines
763 B
Nix

{ 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;
sha256 = "sha256-8VrpI/pk5IhEvqzo036cnIbJ1Hu3UfQ6GHTNkNJUYvo=";
};
propagatedBuildInputs = [
async_generator
trio
wsproto
];
checkInputs = [
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 ];
};
}