1{
2 lib,
3 rel,
4 buildKodiAddon,
5 fetchzip,
6 addonUpdateScript,
7 six,
8}:
9
10buildKodiAddon rec {
11 pname = "websocket";
12 namespace = "script.module.websocket";
13 version = "1.6.4";
14
15 src = fetchzip {
16 url = "https://mirrors.kodi.tv/addons/${lib.toLower rel}/${namespace}/${namespace}-${version}.zip";
17 sha256 = "sha256-1Wy+hxB059UoZnQlncytVT3sQ07dYAhNRnW3/QVD4ZE=";
18 };
19
20 propagatedBuildInputs = [
21 six
22 ];
23
24 passthru = {
25 pythonPath = "lib";
26 updateScript = addonUpdateScript {
27 attrPath = "kodi.packages.websocket";
28 };
29 };
30
31 meta = with lib; {
32 homepage = "https://github.com/websocket-client/websocket-client";
33 description = "WebSocket client for Python";
34 license = licenses.lgpl2Only;
35 teams = [ teams.kodi ];
36 };
37}