2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-16 20:27:27 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, gevent
|
2019-08-22 15:39:07 +00:00
|
|
|
, gunicorn
|
2022-01-18 08:13:06 +00:00
|
|
|
, pythonOlder
|
2018-10-16 20:27:27 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gevent-websocket";
|
2018-10-29 11:30:22 +00:00
|
|
|
version = "0.10.1";
|
2022-01-18 08:13:06 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2018-10-16 20:27:27 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-18 08:13:06 +00:00
|
|
|
hash = "sha256-fq7zKWgpDJEh98Nblz4swwL/sHbQGMkGjS9cqLLYX7A=";
|
2018-10-16 20:27:27 +00:00
|
|
|
};
|
|
|
|
|
2022-01-18 08:13:06 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
gevent
|
|
|
|
gunicorn
|
|
|
|
];
|
2018-10-16 20:27:27 +00:00
|
|
|
|
2022-01-18 08:13:06 +00:00
|
|
|
# Module has no test
|
2021-08-27 04:32:40 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2022-01-18 08:13:06 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"geventwebsocket"
|
|
|
|
];
|
2021-08-27 04:32:40 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-01-18 08:13:06 +00:00
|
|
|
description = "Websocket handler for the gevent pywsgi server";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.gitlab.com/noppo/gevent-websocket";
|
2018-10-16 20:27:27 +00:00
|
|
|
license = licenses.asl20;
|
2021-08-27 04:32:40 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-10-16 20:27:27 +00:00
|
|
|
};
|
|
|
|
}
|