Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
68 lines
1.5 KiB
Nix
68 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
addonDir,
|
|
buildKodiAddon,
|
|
fetchFromGitHub,
|
|
kodi,
|
|
requests,
|
|
dateutil,
|
|
six,
|
|
kodi-six,
|
|
signals,
|
|
websocket,
|
|
}:
|
|
let
|
|
python = kodi.pythonPackages.python.withPackages (p: with p; [ pyyaml ]);
|
|
in
|
|
buildKodiAddon rec {
|
|
pname = "jellycon";
|
|
namespace = "plugin.video.jellycon";
|
|
version = "0.8.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jellyfin";
|
|
repo = "jellycon";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-dCPbPuUtiMhcECd3Aebs3ZGIM6jn6mmCd0rXS+1TQLs=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
python
|
|
];
|
|
|
|
prePatch = ''
|
|
# ZIP does not support timestamps before 1980 - https://bugs.python.org/issue34097
|
|
substituteInPlace build.py \
|
|
--replace "with zipfile.ZipFile(f'{target}/{archive_name}', 'w') as z:" "with zipfile.ZipFile(f'{target}/{archive_name}', 'w', strict_timestamps=False) as z:"
|
|
'';
|
|
|
|
buildPhase = ''
|
|
${python}/bin/python3 build.py --version=py3
|
|
'';
|
|
|
|
postInstall = ''
|
|
cp -v addon.xml $out${addonDir}/$namespace/
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
dateutil
|
|
six
|
|
kodi-six
|
|
signals
|
|
websocket
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/jellyfin/jellycon";
|
|
description = "Lightweight Kodi add-on for Jellyfin";
|
|
longDescription = ''
|
|
JellyCon is a lightweight Kodi add-on that lets you browse and play media
|
|
files directly from your Jellyfin server within the Kodi interface. It can
|
|
easily switch between multiple user accounts at will.
|
|
'';
|
|
license = licenses.gpl2Only;
|
|
teams = [ teams.kodi ];
|
|
};
|
|
}
|