about summary refs log tree commit diff
path: root/pkgs/applications/video/kodi/addons/requests-cache
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2021-12-18 22:34:47 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2021-12-18 22:34:47 -0300
commit4ec32d1ba344253edb654567df4b0a2794d4fd7e (patch)
tree3c69ec5481d404f617ad55e28bb761360348f9f1 /pkgs/applications/video/kodi/addons/requests-cache
parentcf66057e81c0327efd905d5f6316124b56eee515 (diff)
downloadnixlib-4ec32d1ba344253edb654567df4b0a2794d4fd7e.tar
nixlib-4ec32d1ba344253edb654567df4b0a2794d4fd7e.tar.gz
nixlib-4ec32d1ba344253edb654567df4b0a2794d4fd7e.tar.bz2
nixlib-4ec32d1ba344253edb654567df4b0a2794d4fd7e.tar.lz
nixlib-4ec32d1ba344253edb654567df4b0a2794d4fd7e.tar.xz
nixlib-4ec32d1ba344253edb654567df4b0a2794d4fd7e.tar.zst
nixlib-4ec32d1ba344253edb654567df4b0a2794d4fd7e.zip
kodi: move kodi-packages/ to kodi/addons/
Diffstat (limited to 'pkgs/applications/video/kodi/addons/requests-cache')
-rw-r--r--pkgs/applications/video/kodi/addons/requests-cache/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/applications/video/kodi/addons/requests-cache/default.nix b/pkgs/applications/video/kodi/addons/requests-cache/default.nix
new file mode 100644
index 000000000000..de785ab9bb52
--- /dev/null
+++ b/pkgs/applications/video/kodi/addons/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;
+  };
+}