diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/video/kodi-packages/requests-cache/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/video/kodi-packages/requests-cache/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/video/kodi-packages/requests-cache/default.nix b/nixpkgs/pkgs/applications/video/kodi-packages/requests-cache/default.nix new file mode 100644 index 000000000000..de785ab9bb52 --- /dev/null +++ b/nixpkgs/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; + }; +} |