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