nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rel,
4 buildKodiAddon,
5 fetchzip,
6 addonUpdateScript,
7 dateutil,
8 typing_extensions,
9}:
10buildKodiAddon rec {
11 pname = "arrow";
12 namespace = "script.module.arrow";
13 version = "1.2.3";
14
15 src = fetchzip {
16 url = "https://mirrors.kodi.tv/addons/${lib.toLower rel}/script.module.arrow/script.module.arrow-${version}.zip";
17 sha256 = "sha256-Et+9FJT1dRE1dFOrAQ70HJJcfylyLsiyay9wPJcSOXs=";
18 };
19
20 propagatedBuildInputs = [
21 dateutil
22 typing_extensions
23 ];
24
25 passthru = {
26 pythonPath = "lib";
27 updateScript = addonUpdateScript {
28 attrPath = "kodi.packages.arrow";
29 };
30 };
31
32 meta = with lib; {
33 homepage = "https://github.com/razzeee/script.module.arrow";
34 description = "Better dates & times for Python";
35 license = licenses.asl20;
36 teams = [ teams.kodi ];
37 };
38}