2022-03-23 08:19:25 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
2019-08-22 14:31:54 -07:00
|
|
|
, h11
|
2022-03-23 08:19:25 +01:00
|
|
|
, pytestCheckHook
|
2019-08-22 14:31:54 -07:00
|
|
|
}:
|
2018-03-05 17:18:02 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "wsproto";
|
2022-09-14 23:36:25 +02:00
|
|
|
version = "1.2.0";
|
2022-03-23 08:19:25 +01:00
|
|
|
disabled = pythonOlder "3.7";
|
2018-03-05 17:18:02 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-09-14 23:36:25 +02:00
|
|
|
sha256 = "sha256-rVZfJuy5JYij5DvD2WFk3oTNmQJIKxMNDduqlmSoUGU=";
|
2018-03-05 17:18:02 +01:00
|
|
|
};
|
|
|
|
|
2022-03-23 08:19:25 +01:00
|
|
|
propagatedBuildInputs = [ h11 ];
|
2018-03-05 17:18:02 +01:00
|
|
|
|
2022-03-23 08:19:25 +01:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2019-02-14 08:37:33 +01:00
|
|
|
|
2022-03-23 08:19:25 +01:00
|
|
|
pythonImportsCheck = [ "wsproto" ];
|
2019-02-14 08:37:33 +01:00
|
|
|
|
2019-04-17 19:56:56 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Pure Python, pure state-machine WebSocket implementation";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/python-hyper/wsproto/";
|
2019-04-17 19:56:56 +02:00
|
|
|
license = licenses.mit;
|
2022-03-23 08:19:25 +01:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2019-04-17 19:56:56 +02:00
|
|
|
};
|
2018-03-05 17:18:02 +01:00
|
|
|
}
|