about summary refs log tree commit diff
path: root/pkgs/applications/video
diff options
context:
space:
mode:
authorAaron Andersen <aaron@fosslib.net>2021-08-05 19:46:20 -0400
committerAaron Andersen <aaron@fosslib.net>2021-08-05 19:46:20 -0400
commit57cf959a4226d2ddc664561a1f4c0bdcb38fc24c (patch)
tree387efdcf7919a12cccfec4c6f137810947b0e065 /pkgs/applications/video
parent5b6ced844c465e9d9ce5b05ae706d23eaac41ec6 (diff)
kodi.packages.requests-cache: init at 0.5.2+matrix.2
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r--pkgs/applications/video/kodi-packages/requests-cache/default.nix29
1 files changed, 29 insertions, 0 deletions
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 0000000000000..de785ab9bb523
--- /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;
+  };
+}