2019-08-22 23:28:34 +02:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, h11, enum34, pytest }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "wsproto";
|
2019-10-24 08:47:51 +02:00
|
|
|
version = "0.15.0";
|
2019-08-22 23:28:34 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 08:47:51 +02:00
|
|
|
sha256 = "614798c30e5dc2b3f65acc03d2d50842b97621487350ce79a80a711229edfa9d";
|
2019-08-22 23:28:34 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ h11 enum34 ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pure Python, pure state-machine WebSocket implementation";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/python-hyper/wsproto/";
|
2019-08-22 23:28:34 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|