From 57cf959a4226d2ddc664561a1f4c0bdcb38fc24c Mon Sep 17 00:00:00 2001 From: Aaron Andersen Date: Thu, 5 Aug 2021 19:46:20 -0400 Subject: [PATCH] kodi.packages.requests-cache: init at 0.5.2+matrix.2 --- .../kodi-packages/requests-cache/default.nix | 29 +++++++++++++++++++ pkgs/top-level/kodi-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/applications/video/kodi-packages/requests-cache/default.nix diff --git a/pkgs/applications/video/kodi-packages/requests-cache/default.nix b/pkgs/applications/video/kodi-packages/requests-cache/default.nix new file mode 100644 index 000000000000..de785ab9bb52 --- /dev/null +++ b/pkgs/applications/video/kodi-packages/requests-cache/default.nix @@ -0,0 +1,29 @@ +{ lib, buildKodiAddon, fetchzip, addonUpdateScript, requests }: +buildKodiAddon rec { + pname = "requests-cache"; + namespace = "script.module.requests-cache"; + version = "0.5.2+matrix.2"; + + src = fetchzip { + url = "https://mirrors.kodi.tv/addons/matrix/${namespace}/${namespace}-${version}.zip"; + sha256 = "0fgl4jayq6hbhqxg16nfy9qizwf54c8nvg0icv93knaj13zfzkz8"; + }; + + propagatedBuildInputs = [ + requests + ]; + + passthru = { + pythonPath = "lib"; + updateScript = addonUpdateScript { + attrPath = "kodi.packages.requests-cache"; + }; + }; + + meta = with lib; { + homepage = "https://github.com/reclosedev/requests-cache"; + description = "Persistent cache for requests library"; + license = licenses.bsd2; + maintainers = teams.kodi.members; + }; +} diff --git a/pkgs/top-level/kodi-packages.nix b/pkgs/top-level/kodi-packages.nix index d5ae0c46a20b..e77bfb9df329 100644 --- a/pkgs/top-level/kodi-packages.nix +++ b/pkgs/top-level/kodi-packages.nix @@ -120,6 +120,8 @@ let self = rec { requests = callPackage ../applications/video/kodi-packages/requests { }; + requests-cache = callPackage ../applications/video/kodi-packages/requests-cache { }; + routing = callPackage ../applications/video/kodi-packages/routing { }; signals = callPackage ../applications/video/kodi-packages/signals { };