2019-04-17 10:56:56 -07:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, h11, enum34, pytest }:
|
2018-03-05 08:18:02 -08:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "wsproto";
|
2019-06-11 16:12:17 -07:00
|
|
|
version = "0.14.1";
|
2018-03-05 08:18:02 -08:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-06-11 16:12:17 -07:00
|
|
|
sha256 = "051s127qb5dladxa14n9nqajwq7xki1dz1was5r5v9df5a0jq8pd";
|
2018-03-05 08:18:02 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ h11 enum34 ];
|
|
|
|
|
2019-02-13 23:37:33 -08:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2019-04-17 10:56:56 -07:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Pure Python, pure state-machine WebSocket implementation";
|
|
|
|
homepage = https://github.com/python-hyper/wsproto/;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
2018-03-05 08:18:02 -08:00
|
|
|
}
|