summaryrefslogtreecommitdiff
path: root/pkgs/development/tools/continuous-integration/buildbot/plugins.nix
blob: ccc4b9ecfbfc865e6082030f2c8bf359c699d767 (plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
{
  lib,
  buildPythonPackage,
  fetchurl,
  setuptools,
  mock,
  cairosvg,
  klein,
  jinja2,
  buildbot-pkg,
}:
{
  # this is exposed for potential plugins to use and for nix-update
  inherit buildbot-pkg;
  www = buildPythonPackage rec {
    pname = "buildbot_www";
    inherit (buildbot-pkg) version;
    pyproject = true;

    src = fetchurl {
      url = "https://github.com/buildbot/buildbot/releases/download/v${version}/${pname}-${version}.tar.gz";
      hash = "sha256-mn55+Fb2cU2rNB5Nwt41nWXjcZfgd07ijYAAnZnnnwI=";
    };

    # Remove unnecessary circular dependency on buildbot
    postPatch = ''
      sed -i "s/'buildbot'//" setup.py
    '';

    build-system = [ setuptools ];

    dependencies = [
      buildbot-pkg
      mock
    ];

    # No tests
    doCheck = false;

    meta = {
      homepage = "https://buildbot.net/";
      description = "Buildbot UI";
      teams = [ lib.teams.buildbot ];
      license = lib.licenses.gpl2;
    };
  };

  console-view = buildPythonPackage rec {
    pname = "buildbot_console_view";
    inherit (buildbot-pkg) version;
    pyproject = true;

    src = fetchurl {
      url = "https://github.com/buildbot/buildbot/releases/download/v${version}/${pname}-${version}.tar.gz";
      hash = "sha256-VA6xqJBjD4XmQabTN8M+PLvfrG7Hq2ooxChtz2jAT8A=";
    };

    build-system = [ setuptools ];

    dependencies = [ buildbot-pkg ];

    # No tests
    doCheck = false;

    meta = {
      homepage = "https://buildbot.net/";
      description = "Buildbot Console View Plugin";
      teams = [ lib.teams.buildbot ];
      license = lib.licenses.gpl2;
    };
  };

  waterfall-view = buildPythonPackage rec {
    pname = "buildbot_waterfall_view";
    inherit (buildbot-pkg) version;
    pyproject = true;

    src = fetchurl {
      url = "https://github.com/buildbot/buildbot/releases/download/v${version}/${pname}-${version}.tar.gz";
      hash = "sha256-c/Nmr0Uscalnndq72Y6jPM1JDs5OyOCERtuX/GXkxp8=";
    };

    build-system = [ setuptools ];

    dependencies = [ buildbot-pkg ];

    # No tests
    doCheck = false;

    meta = {
      homepage = "https://buildbot.net/";
      description = "Buildbot Waterfall View Plugin";
      teams = [ lib.teams.buildbot ];
      license = lib.licenses.gpl2;
    };
  };

  grid-view = buildPythonPackage rec {
    pname = "buildbot_grid_view";
    inherit (buildbot-pkg) version;
    pyproject = true;

    src = fetchurl {
      url = "https://github.com/buildbot/buildbot/releases/download/v${version}/${pname}-${version}.tar.gz";
      hash = "sha256-AmY8RkFX0POmVpW71nNz4+dFbr0FHGhNR3RJymDNoaw=";
    };

    build-system = [ setuptools ];

    dependencies = [ buildbot-pkg ];

    # No tests
    doCheck = false;

    meta = {
      homepage = "https://buildbot.net/";
      description = "Buildbot Grid View Plugin";
      teams = [ lib.teams.buildbot ];
      license = lib.licenses.gpl2;
    };
  };

  wsgi-dashboards = buildPythonPackage rec {
    pname = "buildbot_wsgi_dashboards";
    inherit (buildbot-pkg) version;
    pyproject = true;

    src = fetchurl {
      url = "https://github.com/buildbot/buildbot/releases/download/v${version}/${pname}-${version}.tar.gz";
      hash = "sha256-vofKxpIfbAs7HR43Y7ojHLQEn6/WIdjZPgZieBMsz74=";
    };

    build-system = [ setuptools ];

    dependencies = [ buildbot-pkg ];

    # No tests
    doCheck = false;

    meta = {
      homepage = "https://buildbot.net/";
      description = "Buildbot WSGI dashboards Plugin";
      teams = [ lib.teams.buildbot ];
      license = lib.licenses.gpl2;
    };
  };

  badges = buildPythonPackage rec {
    pname = "buildbot_badges";
    inherit (buildbot-pkg) version;
    pyproject = true;

    src = fetchurl {
      url = "https://github.com/buildbot/buildbot/releases/download/v${version}/${pname}-${version}.tar.gz";
      hash = "sha256-u7HF6X+ClT4rT3LJcTHXWi5oSxCKPXoUDH+QFRI2S0w=";
    };

    build-system = [ setuptools ];

    dependencies = [
      buildbot-pkg
      cairosvg
      klein
      jinja2
    ];

    # No tests
    doCheck = false;

    meta = {
      homepage = "https://buildbot.net/";
      description = "Buildbot Badges Plugin";
      maintainers = [ lib.maintainers.julienmalka ];
      teams = [ lib.teams.buildbot ];
      license = lib.licenses.gpl2;
    };
  };
}