about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/video/kodi/addons/requests-cache/default.nix
blob: 6800ecde832ad8ee35173f4098270b6022db487a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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/nexus/${namespace}/${namespace}-${version}.zip";
    sha256 = "sha256-6M/v/ghS2TnSZhG8bREjxfEfcfLOmvA6hgsa7JUk9Dk=";
  };

  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;
  };
}