1{ lib, buildPythonPackage, fetchPypi, h11, enum34, pytest }:
2
3buildPythonPackage rec {
4 pname = "wsproto";
5 version = "0.14.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "051s127qb5dladxa14n9nqajwq7xki1dz1was5r5v9df5a0jq8pd";
10 };
11
12 propagatedBuildInputs = [ h11 enum34 ];
13
14 checkInputs = [ pytest ];
15
16 checkPhase = ''
17 py.test
18 '';
19
20 meta = with lib; {
21 description = "Pure Python, pure state-machine WebSocket implementation";
22 homepage = "https://github.com/python-hyper/wsproto/";
23 license = licenses.mit;
24 };
25}