about summary refs log tree commit diff
path: root/pkgs/development/python-modules/trio-websocket/default.nix
blob: 4549a056b067facfef06142f6a6cf8fce7607039 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ 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
  ];

  nativeCheckInputs = [
    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 ];
  };
}