nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 buildPythonPackage,
5 fetchFromGitHub,
6 jwcrypto,
7 numpy,
8 pytestCheckHook,
9 redis,
10 requests,
11 simplejson,
12}:
13
14buildPythonPackage rec {
15 pname = "websockify";
16 version = "0.13.0";
17 format = "setuptools";
18
19 src = fetchFromGitHub {
20 owner = "novnc";
21 repo = "websockify";
22 tag = "v${version}";
23 hash = "sha256-b57L4o071zEt/gX9ZVzEpcnp0RCeo3peZrby2mccJgQ=";
24 };
25
26 propagatedBuildInputs = [
27 jwcrypto
28 numpy
29 redis
30 requests
31 simplejson
32 ];
33
34 nativeCheckInputs = [ pytestCheckHook ];
35
36 disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
37 # this test failed on macos
38 # https://github.com/novnc/websockify/issues/552
39 "test_socket_set_keepalive_options"
40 ];
41
42 pythonImportsCheck = [ "websockify" ];
43
44 meta = {
45 description = "WebSockets support for any application/server";
46 mainProgram = "websockify";
47 homepage = "https://github.com/kanaka/websockify";
48 changelog = "https://github.com/novnc/websockify/releases/tag/${src.tag}";
49 license = lib.licenses.lgpl3Only;
50 maintainers = [ ];
51 };
52}