about summary refs log tree commit diff
path: root/pkgs/applications/video/kodi/addons/invidious/default.nix
blob: f219a3fd1fdfb62fefa12d1b3bd286f4a90de224 (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
{ lib, buildKodiAddon, fetchFromGitHub, addonUpdateScript, requests, inputstream-adaptive, inputstreamhelper }:

buildKodiAddon rec {
  pname = "invidious";
  namespace = "plugin.video.invidious";
  version = "unstable-2022-11-28";

  # video search doesn't work for the version on kodi.tv
  # if the result contains channels
  # https://github.com/TheAssassin/kodi-invidious-plugin/issues/17
  src = fetchFromGitHub {
    owner = "TheAssassin";
    repo = "kodi-invidious-plugin";
    rev = "85b66525632d94630c9301d9c490fc002a335d77";
    hash = "sha256-DpsAQUOUYCs3rpWwsk82+00KME4J+Iocu/v781dyyws=";
  };

  propagatedBuildInputs = [
    requests
    inputstream-adaptive
    inputstreamhelper
  ];

  passthru = {
    pythonPath = "resources/lib";
  };

  meta = with lib; {
    homepage = "https://github.com/TheAssassin/kodi-invidious-plugin";
    description = "A privacy-friendly way of watching YouTube content";
    license = licenses.mit;
    maintainers = teams.kodi.members;
  };
}