1{ lib, buildPythonPackage, fetchPypi, h11, enum34, pytest }:
2
3buildPythonPackage rec {
4 pname = "wsproto";
5 version = "0.15.0";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "614798c30e5dc2b3f65acc03d2d50842b97621487350ce79a80a711229edfa9d";
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}