depot/third_party/nixpkgs/pkgs/development/python-modules/websockify/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

55 lines
1.1 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
jwcrypto,
numpy,
pytestCheckHook,
pythonOlder,
redis,
requests,
simplejson,
}:
buildPythonPackage rec {
pname = "websockify";
version = "0.12.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "novnc";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-+qjWmCkXJj8J5OImMSjTwXWyApmJ883NMr0157iqPS4=";
};
propagatedBuildInputs = [
jwcrypto
numpy
redis
requests
simplejson
];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = lib.optionals stdenv.isDarwin [
# this test failed on macos
# https://github.com/novnc/websockify/issues/552
"test_socket_set_keepalive_options"
];
pythonImportsCheck = [ "websockify" ];
meta = with lib; {
description = "WebSockets support for any application/server";
mainProgram = "websockify";
homepage = "https://github.com/kanaka/websockify";
changelog = "https://github.com/novnc/websockify/releases/tag/v${version}";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ ];
};
}