Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 40 lines 805 B view raw
1{ 2 lib, 3 rel, 4 buildKodiAddon, 5 fetchzip, 6 addonUpdateScript, 7 six, 8}: 9 10buildKodiAddon rec { 11 pname = "dateutil"; 12 namespace = "script.module.dateutil"; 13 version = "2.8.2"; 14 15 src = fetchzip { 16 url = "https://mirrors.kodi.tv/addons/${lib.toLower rel}/${namespace}/${namespace}-${version}.zip"; 17 sha256 = "sha256-iQnyS0GjYcPbnBDUxmMrmDxHOA3K8RbTVke/HF4d5u4="; 18 }; 19 20 propagatedBuildInputs = [ 21 six 22 ]; 23 24 passthru = { 25 pythonPath = "lib"; 26 updateScript = addonUpdateScript { 27 attrPath = "kodi.packages.dateutil"; 28 }; 29 }; 30 31 meta = with lib; { 32 homepage = "https://dateutil.readthedocs.io/en/stable/"; 33 description = "Extensions to the standard Python datetime module"; 34 license = with licenses; [ 35 asl20 36 bsd3 37 ]; 38 teams = [ teams.kodi ]; 39 }; 40}