2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2023-05-24 13:37:59 +00:00
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2023-03-15 16:39:30 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, jwcrypto
|
2020-04-24 23:36:52 +00:00
|
|
|
, numpy
|
2023-03-15 16:39:30 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, redis
|
|
|
|
, requests
|
|
|
|
, simplejson
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "websockify";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "0.11.0";
|
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "novnc";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-82Fk9qbiiCD5Rts1d14sK/njeN7DcjKMKPqE7S/1WHs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
jwcrypto
|
|
|
|
numpy
|
|
|
|
redis
|
|
|
|
requests
|
|
|
|
simplejson
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-08-27 14:25:00 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
disabledTests = lib.optionals stdenv.isDarwin [
|
|
|
|
# this test failed on macos
|
|
|
|
# https://github.com/novnc/websockify/issues/552
|
|
|
|
"test_socket_set_keepalive_options"
|
|
|
|
];
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"websockify"
|
|
|
|
];
|
2021-08-27 14:25:00 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "WebSockets support for any application/server";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "websockify";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/kanaka/websockify";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/novnc/websockify/releases/tag/v${version}";
|
|
|
|
license = licenses.lgpl3Only;
|
2021-08-27 14:25:00 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|