1{
2 lib,
3 rel,
4 buildKodiAddon,
5 fetchzip,
6 addonUpdateScript,
7}:
8
9buildKodiAddon rec {
10 pname = "future";
11 namespace = "script.module.future";
12 version = "1.0.0+matrix.1";
13
14 src = fetchzip {
15 url = "https://mirrors.kodi.tv/addons/${lib.toLower rel}/${namespace}/${namespace}-${version}.zip";
16 sha256 = "sha256-BsDgCAZuJBRBpe6EmfSynhrXS3ktQRZsEwf9CdF0VCg=";
17 };
18
19 passthru = {
20 pythonPath = "lib";
21 updateScript = addonUpdateScript {
22 attrPath = "kodi.packages.future";
23 };
24 };
25
26 meta = with lib; {
27 homepage = "https://python-future.org";
28 description = "Missing compatibility layer between Python 2 and Python 3";
29 license = licenses.mit;
30 teams = [ teams.kodi ];
31 };
32}