diff --git a/pkgs/applications/video/kodi/addons/simplejson/default.nix b/pkgs/applications/video/kodi/addons/simplejson/default.nix new file mode 100644 index 000000000000..e9293d6258df --- /dev/null +++ b/pkgs/applications/video/kodi/addons/simplejson/default.nix @@ -0,0 +1,26 @@ +{ lib, buildKodiAddon, fetchzip, addonUpdateScript }: + +buildKodiAddon rec { + pname = "simplejson"; + namespace = "script.module.simplejson"; + version = "3.17.0+matrix.2"; + + src = fetchzip { + url = "https://mirrors.kodi.tv/addons/matrix/${namespace}/${namespace}-${version}.zip"; + sha256 = "sha256-XLE4x0qr3CFwWqh1BfSg9q+w6pWgFBXG7TyVJWeGQIs="; + }; + + passthru = { + pythonPath = "lib"; + updateScript = addonUpdateScript { + attrPath = "kodi.packages.simplejson"; + }; + }; + + meta = with lib; { + homepage = "https://github.com/simplejson/simplejson"; + description = "Simple, fast, extensible JSON encoder/decoder for Python"; + license = licenses.mit; + maintainers = teams.kodi.members; + }; +} diff --git a/pkgs/top-level/kodi-packages.nix b/pkgs/top-level/kodi-packages.nix index 4e8929e2b1a5..79ca22007ddf 100644 --- a/pkgs/top-level/kodi-packages.nix +++ b/pkgs/top-level/kodi-packages.nix @@ -150,6 +150,8 @@ let self = rec { signals = callPackage ../applications/video/kodi/addons/signals { }; + simplejson = callPackage ../applications/video/kodi/addons/simplejson { }; + six = callPackage ../applications/video/kodi/addons/six { }; urllib3 = callPackage ../applications/video/kodi/addons/urllib3 { };