kodi.packages.jellyfin: init at 0.7.1
This commit is contained in:
parent
6fe6c35a96
commit
d9b776a3a2
27
pkgs/applications/video/kodi-packages/dateutil/default.nix
Normal file
27
pkgs/applications/video/kodi-packages/dateutil/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{ lib, buildKodiAddon, fetchzip, addonUpdateScript, six }:
|
||||||
|
|
||||||
|
buildKodiAddon rec {
|
||||||
|
pname = "dateutil";
|
||||||
|
namespace = "script.module.dateutil";
|
||||||
|
version = "2.8.1+matrix.1";
|
||||||
|
|
||||||
|
src = fetchzip {
|
||||||
|
url = "https://mirrors.kodi.tv/addons/matrix/${namespace}/${namespace}-${version}.zip";
|
||||||
|
sha256 = "1jr77017ihs7j3455i72af71wyvs792kbizq4539ccd98far8lm7";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
six
|
||||||
|
];
|
||||||
|
|
||||||
|
passthru.updateScript = addonUpdateScript {
|
||||||
|
attrPath = "kodi.packages.dateutil";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://dateutil.readthedocs.io/en/stable/";
|
||||||
|
description = "Extensions to the standard Python datetime module";
|
||||||
|
license = with licenses; [ asl20 bsd3 ];
|
||||||
|
maintainers = teams.kodi.members;
|
||||||
|
};
|
||||||
|
}
|
49
pkgs/applications/video/kodi-packages/jellyfin/default.nix
Normal file
49
pkgs/applications/video/kodi-packages/jellyfin/default.nix
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
{ lib, addonDir, buildKodiAddon, fetchFromGitHub, kodi, requests, dateutil, six, kodi-six, signals }:
|
||||||
|
let
|
||||||
|
python = kodi.pythonPackages.python.withPackages (p: with p; [ pyyaml ]);
|
||||||
|
in
|
||||||
|
buildKodiAddon rec {
|
||||||
|
pname = "jellyfin";
|
||||||
|
namespace = "plugin.video.jellyfin";
|
||||||
|
version = "0.7.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "jellyfin";
|
||||||
|
repo = "jellyfin-kodi";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0fx20gmd5xlg59ks4433qh2b3jhbs5qrnc49zi4rkqqr4jr4nhnn";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
python
|
||||||
|
];
|
||||||
|
|
||||||
|
prePatch = ''
|
||||||
|
substituteInPlace .config/generate_xml.py \
|
||||||
|
--replace "'jellyfin-kodi/release.yaml'" "'release.yaml'" \
|
||||||
|
--replace "'jellyfin-kodi/addon.xml'" "'addon.xml'"
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
${python}/bin/python3 .config/generate_xml.py py3
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mv /build/source/addon.xml $out${addonDir}/${namespace}/
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
requests
|
||||||
|
dateutil
|
||||||
|
six
|
||||||
|
kodi-six
|
||||||
|
signals
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://jellyfin.org/";
|
||||||
|
description = "A whole new way to manage and view your media library";
|
||||||
|
license = licenses.gpl3Only;
|
||||||
|
maintainers = teams.kodi.members;
|
||||||
|
};
|
||||||
|
}
|
23
pkgs/applications/video/kodi-packages/kodi-six/default.nix
Normal file
23
pkgs/applications/video/kodi-packages/kodi-six/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{ lib, buildKodiAddon, fetchzip, addonUpdateScript }:
|
||||||
|
|
||||||
|
buildKodiAddon rec {
|
||||||
|
pname = "kodi-six";
|
||||||
|
namespace = "script.module.kodi-six";
|
||||||
|
version = "0.1.3.1";
|
||||||
|
|
||||||
|
src = fetchzip {
|
||||||
|
url = "https://mirrors.kodi.tv/addons/matrix/${namespace}/${namespace}-${version}.zip";
|
||||||
|
sha256 = "14m232p9hx925pbk8knsg994m1nbpa5278zmcrnfblh4z84gjv4x";
|
||||||
|
};
|
||||||
|
|
||||||
|
passthru.updateScript = addonUpdateScript {
|
||||||
|
attrPath = "kodi.packages.kodi-six";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/romanvm/kodi.six";
|
||||||
|
description = "Wrappers around Kodi Python API for seamless Python 2/3 compatibility";
|
||||||
|
license = licenses.gpl3Only;
|
||||||
|
maintainers = teams.kodi.members;
|
||||||
|
};
|
||||||
|
}
|
23
pkgs/applications/video/kodi-packages/six/default.nix
Normal file
23
pkgs/applications/video/kodi-packages/six/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{ lib, buildKodiAddon, fetchzip, addonUpdateScript }:
|
||||||
|
|
||||||
|
buildKodiAddon rec {
|
||||||
|
pname = "six";
|
||||||
|
namespace = "script.module.six";
|
||||||
|
version = "1.14.0+matrix.2";
|
||||||
|
|
||||||
|
src = fetchzip {
|
||||||
|
url = "https://mirrors.kodi.tv/addons/matrix/${namespace}/${namespace}-${version}.zip";
|
||||||
|
sha256 = "1f9g43j4y5x7b1bgbwqqfj0p2bkqjpycj17dj7a9j271mcr5zhwb";
|
||||||
|
};
|
||||||
|
|
||||||
|
passthru.updateScript = addonUpdateScript {
|
||||||
|
attrPath = "kodi.packages.six";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://pypi.org/project/six/";
|
||||||
|
description = "Python 2 and 3 compatibility utilities";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = teams.kodi.members;
|
||||||
|
};
|
||||||
|
}
|
|
@ -66,6 +66,8 @@ let self = rec {
|
||||||
snes = callPackage ../applications/video/kodi-packages/controllers { controller = "snes"; };
|
snes = callPackage ../applications/video/kodi-packages/controllers { controller = "snes"; };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
jellyfin = callPackage ../applications/video/kodi-packages/jellyfin { };
|
||||||
|
|
||||||
joystick = callPackage ../applications/video/kodi-packages/joystick { };
|
joystick = callPackage ../applications/video/kodi-packages/joystick { };
|
||||||
|
|
||||||
netflix = callPackage ../applications/video/kodi-packages/netflix { };
|
netflix = callPackage ../applications/video/kodi-packages/netflix { };
|
||||||
|
@ -96,18 +98,24 @@ let self = rec {
|
||||||
|
|
||||||
chardet = callPackage ../applications/video/kodi-packages/chardet { };
|
chardet = callPackage ../applications/video/kodi-packages/chardet { };
|
||||||
|
|
||||||
|
dateutil = callPackage ../applications/video/kodi-packages/dateutil { };
|
||||||
|
|
||||||
idna = callPackage ../applications/video/kodi-packages/idna { };
|
idna = callPackage ../applications/video/kodi-packages/idna { };
|
||||||
|
|
||||||
inputstream-adaptive = callPackage ../applications/video/kodi-packages/inputstream-adaptive { };
|
inputstream-adaptive = callPackage ../applications/video/kodi-packages/inputstream-adaptive { };
|
||||||
|
|
||||||
inputstreamhelper = callPackage ../applications/video/kodi-packages/inputstreamhelper { };
|
inputstreamhelper = callPackage ../applications/video/kodi-packages/inputstreamhelper { };
|
||||||
|
|
||||||
|
kodi-six = callPackage ../applications/video/kodi-packages/kodi-six { };
|
||||||
|
|
||||||
myconnpy = callPackage ../applications/video/kodi-packages/myconnpy { };
|
myconnpy = callPackage ../applications/video/kodi-packages/myconnpy { };
|
||||||
|
|
||||||
requests = callPackage ../applications/video/kodi-packages/requests { };
|
requests = callPackage ../applications/video/kodi-packages/requests { };
|
||||||
|
|
||||||
signals = callPackage ../applications/video/kodi-packages/signals { };
|
signals = callPackage ../applications/video/kodi-packages/signals { };
|
||||||
|
|
||||||
|
six = callPackage ../applications/video/kodi-packages/six { };
|
||||||
|
|
||||||
urllib3 = callPackage ../applications/video/kodi-packages/urllib3 { };
|
urllib3 = callPackage ../applications/video/kodi-packages/urllib3 { };
|
||||||
|
|
||||||
}; in self
|
}; in self
|
||||||
|
|
Loading…
Reference in a new issue