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