blob: b456de718c7e9e3ca0b9dbd4254f332331b84d30 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, jwcrypto
, numpy
, pytestCheckHook
, pythonOlder
, redis
, requests
, simplejson
}:
buildPythonPackage rec {
pname = "websockify";
version = "0.11.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "novnc";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-82Fk9qbiiCD5Rts1d14sK/njeN7DcjKMKPqE7S/1WHs=";
};
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";
homepage = "https://github.com/kanaka/websockify";
changelog = "https://github.com/novnc/websockify/releases/tag/v${version}";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ ];
};
}
|