biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / video / kodi / addons / jellyfin / default.nix
blob27faf3d677579205fd01363659bd4fe7ef4389fe
2   lib,
3   addonDir,
4   buildKodiAddon,
5   fetchFromGitHub,
6   kodi,
7   requests,
8   dateutil,
9   six,
10   kodi-six,
11   signals,
12   websocket,
14 let
15   python = kodi.pythonPackages.python.withPackages (p: with p; [ pyyaml ]);
17 buildKodiAddon rec {
18   pname = "jellyfin";
19   namespace = "plugin.video.jellyfin";
20   version = "1.0.5";
22   src = fetchFromGitHub {
23     owner = "jellyfin";
24     repo = "jellyfin-kodi";
25     rev = "v${version}";
26     sha256 = "sha256-MPRyMeJuuiG62ahNKfXyb3Q4LDm0yXkNgCeYxfpT1io=";
27   };
29   nativeBuildInputs = [ python ];
31   # ZIP does not support timestamps before 1980 - https://bugs.python.org/issue34097
32   patches = [ ./no-strict-zip-timestamp.patch ];
34   buildPhase = ''
35     ${python}/bin/python3 build.py --version=py3
36   '';
38   postInstall = ''
39     cp -v addon.xml $out${addonDir}/$namespace/
40   '';
42   propagatedBuildInputs = [
43     requests
44     dateutil
45     six
46     kodi-six
47     signals
48     websocket
49   ];
51   meta = with lib; {
52     homepage = "https://jellyfin.org/";
53     description = "Whole new way to manage and view your media library";
54     license = licenses.gpl3Only;
55     maintainers = teams.kodi.members;
56   };