Files
nixpkgs/pkgs/applications/video/kodi/addons/websocket/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

38 lines
767 B
Nix

{
lib,
rel,
buildKodiAddon,
fetchzip,
addonUpdateScript,
six,
}:
buildKodiAddon rec {
pname = "websocket";
namespace = "script.module.websocket";
version = "1.6.4";
src = fetchzip {
url = "https://mirrors.kodi.tv/addons/${lib.toLower rel}/${namespace}/${namespace}-${version}.zip";
sha256 = "sha256-1Wy+hxB059UoZnQlncytVT3sQ07dYAhNRnW3/QVD4ZE=";
};
propagatedBuildInputs = [
six
];
passthru = {
pythonPath = "lib";
updateScript = addonUpdateScript {
attrPath = "kodi.packages.websocket";
};
};
meta = {
homepage = "https://github.com/websocket-client/websocket-client";
description = "WebSocket client for Python";
license = lib.licenses.lgpl2Only;
teams = [ lib.teams.kodi ];
};
}