Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 36 lines 799 B view raw
1{ 2 lib, 3 rel, 4 buildKodiAddon, 5 fetchzip, 6 addonUpdateScript, 7 requests, 8}: 9buildKodiAddon rec { 10 pname = "requests-cache"; 11 namespace = "script.module.requests-cache"; 12 version = "0.5.2+matrix.2"; 13 14 src = fetchzip { 15 url = "https://mirrors.kodi.tv/addons/${lib.toLower rel}/${namespace}/${namespace}-${version}.zip"; 16 sha256 = "sha256-6M/v/ghS2TnSZhG8bREjxfEfcfLOmvA6hgsa7JUk9Dk="; 17 }; 18 19 propagatedBuildInputs = [ 20 requests 21 ]; 22 23 passthru = { 24 pythonPath = "lib"; 25 updateScript = addonUpdateScript { 26 attrPath = "kodi.packages.requests-cache"; 27 }; 28 }; 29 30 meta = with lib; { 31 homepage = "https://github.com/reclosedev/requests-cache"; 32 description = "Persistent cache for requests library"; 33 license = licenses.bsd2; 34 teams = [ teams.kodi ]; 35 }; 36}