Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / websockify / default.nix
blobb456de718c7e9e3ca0b9dbd4254f332331b84d30
1 { lib
2 , stdenv
3 , buildPythonPackage
4 , fetchFromGitHub
5 , jwcrypto
6 , numpy
7 , pytestCheckHook
8 , pythonOlder
9 , redis
10 , requests
11 , simplejson
14 buildPythonPackage rec {
15   pname = "websockify";
16   version = "0.11.0";
17   format = "setuptools";
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "novnc";
23     repo = pname;
24     rev = "refs/tags/v${version}";
25     hash = "sha256-82Fk9qbiiCD5Rts1d14sK/njeN7DcjKMKPqE7S/1WHs=";
26   };
28   propagatedBuildInputs = [
29     jwcrypto
30     numpy
31     redis
32     requests
33     simplejson
34   ];
36   nativeCheckInputs = [
37     pytestCheckHook
38   ];
40   disabledTests = lib.optionals stdenv.isDarwin [
41     # this test failed on macos
42     # https://github.com/novnc/websockify/issues/552
43     "test_socket_set_keepalive_options"
44   ];
46   pythonImportsCheck = [
47     "websockify"
48   ];
50   meta = with lib; {
51     description = "WebSockets support for any application/server";
52     homepage = "https://github.com/kanaka/websockify";
53     changelog = "https://github.com/novnc/websockify/releases/tag/v${version}";
54     license = licenses.lgpl3Only;
55     maintainers = with maintainers; [ ];
56   };