1 { lib, buildKodiAddon, fetchFromGitHub, kodi, inputstreamhelper }:
5 namespace = "plugin.video.sendtokodi";
8 src = fetchFromGitHub {
10 repo = "plugin.video.sendtokodi";
12 hash = "sha256-Ga+9Q7x8+sEmQmteHbSyCahZ/T/l28BAEM84w7bf7z8=";
16 # Unconditionally depend on packaged yt-dlp. This removes the ability to
17 # use youtube_dl, which is unmaintained and considered vulnerable (see
19 ./use-packaged-yt-dlp.patch
22 propagatedBuildInputs = [
27 # Remove vendored youtube-dl and yt-dlp libraries.
32 # Instead of the vendored libraries, we propagate yt-dlp via the Python
34 pythonPath = with kodi.pythonPackages; makePythonPath [ yt-dlp ];
38 homepage = "https://github.com/firsttris/plugin.video.sendtokodi";
39 description = "Plays various stream sites on Kodi using yt-dlp";
40 license = licenses.mit;
41 maintainers = teams.kodi.members ++ [ maintainers.pks ];