1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, h11
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "wsproto";
11 version = "1.2.0";
12 disabled = pythonOlder "3.7";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-rVZfJuy5JYij5DvD2WFk3oTNmQJIKxMNDduqlmSoUGU=";
17 };
18
19 propagatedBuildInputs = [ h11 ];
20
21 nativeCheckInputs = [ pytestCheckHook ];
22
23 pythonImportsCheck = [ "wsproto" ];
24
25 meta = with lib; {
26 description = "Pure Python, pure state-machine WebSocket implementation";
27 homepage = "https://github.com/python-hyper/wsproto/";
28 license = licenses.mit;
29 maintainers = with maintainers; [ ];
30 };
31}