kodi.packages.jellyfin: 0.7.1 -> 0.7.4

This commit is contained in:
Aaron Andersen 2021-06-16 22:41:51 -04:00
parent 85d36c3cb2
commit ade0431ba6

View File

@ -1,17 +1,17 @@
{ lib, addonDir, buildKodiAddon, fetchFromGitHub, kodi, requests, dateutil, six, kodi-six, signals }:
{ 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 = "jellyfin";
namespace = "plugin.video.jellyfin";
version = "0.7.1";
version = "0.7.4";
src = fetchFromGitHub {
owner = "jellyfin";
repo = "jellyfin-kodi";
rev = "v${version}";
sha256 = "0fx20gmd5xlg59ks4433qh2b3jhbs5qrnc49zi4rkqqr4jr4nhnn";
sha256 = "1ykgz1l2gmpdlsp3fbm31q8757879i9dd13svslqykvxadg69x03";
};
nativeBuildInputs = [
@ -19,13 +19,13 @@ buildKodiAddon rec {
];
prePatch = ''
substituteInPlace .config/generate_xml.py \
--replace "'jellyfin-kodi/release.yaml'" "'release.yaml'" \
--replace "'jellyfin-kodi/addon.xml'" "'addon.xml'"
# ZIP does not support timestamps before 1980 - https://bugs.python.org/issue34097
substituteInPlace build.py \
--replace "with zipfile.ZipFile('{}/{}'.format(target, archive_name), 'w') as z:" "with zipfile.ZipFile('{}/{}'.format(target, archive_name), 'w', strict_timestamps=False) as z:"
'';
buildPhase = ''
${python}/bin/python3 .config/generate_xml.py py3
${python}/bin/python3 build.py --version=py3
'';
postInstall = ''
@ -38,6 +38,7 @@ buildKodiAddon rec {
six
kodi-six
signals
websocket
];
meta = with lib; {