1{
2 lib,
3 buildPythonPackage,
4 fetchurl,
5 callPackage,
6 mock,
7 cairosvg,
8 klein,
9 jinja2,
10 buildbot-pkg,
11}:
12{
13 # this is exposed for potential plugins to use and for nix-update
14 inherit buildbot-pkg;
15 www = buildPythonPackage rec {
16 format = "setuptools";
17 pname = "buildbot_www";
18 inherit (buildbot-pkg) version;
19
20 src = fetchurl {
21 url = "https://github.com/buildbot/buildbot/releases/download/v${version}/${pname}-${version}.tar.gz";
22 hash = "sha256-mn55+Fb2cU2rNB5Nwt41nWXjcZfgd07ijYAAnZnnnwI=";
23 };
24
25 # Remove unnecessary circular dependency on buildbot
26 postPatch = ''
27 sed -i "s/'buildbot'//" setup.py
28 '';
29
30 buildInputs = [
31 buildbot-pkg
32 mock
33 ];
34
35 # No tests
36 doCheck = false;
37
38 meta = with lib; {
39 homepage = "https://buildbot.net/";
40 description = "Buildbot UI";
41 teams = [ teams.buildbot ];
42 license = licenses.gpl2;
43 };
44 };
45
46 console-view = buildPythonPackage rec {
47 pname = "buildbot_console_view";
48 inherit (buildbot-pkg) version;
49 format = "setuptools";
50
51 src = fetchurl {
52 url = "https://github.com/buildbot/buildbot/releases/download/v${version}/${pname}-${version}.tar.gz";
53 hash = "sha256-VA6xqJBjD4XmQabTN8M+PLvfrG7Hq2ooxChtz2jAT8A=";
54 };
55
56 buildInputs = [ buildbot-pkg ];
57
58 # No tests
59 doCheck = false;
60
61 meta = with lib; {
62 homepage = "https://buildbot.net/";
63 description = "Buildbot Console View Plugin";
64 teams = [ teams.buildbot ];
65 license = licenses.gpl2;
66 };
67 };
68
69 waterfall-view = buildPythonPackage rec {
70 pname = "buildbot_waterfall_view";
71 inherit (buildbot-pkg) version;
72 format = "setuptools";
73
74 src = fetchurl {
75 url = "https://github.com/buildbot/buildbot/releases/download/v${version}/${pname}-${version}.tar.gz";
76 hash = "sha256-c/Nmr0Uscalnndq72Y6jPM1JDs5OyOCERtuX/GXkxp8=";
77 };
78
79 buildInputs = [ buildbot-pkg ];
80
81 # No tests
82 doCheck = false;
83
84 meta = with lib; {
85 homepage = "https://buildbot.net/";
86 description = "Buildbot Waterfall View Plugin";
87 teams = [ teams.buildbot ];
88 license = licenses.gpl2;
89 };
90 };
91
92 grid-view = buildPythonPackage rec {
93 pname = "buildbot_grid_view";
94 inherit (buildbot-pkg) version;
95 format = "setuptools";
96
97 src = fetchurl {
98 url = "https://github.com/buildbot/buildbot/releases/download/v${version}/${pname}-${version}.tar.gz";
99 hash = "sha256-AmY8RkFX0POmVpW71nNz4+dFbr0FHGhNR3RJymDNoaw=";
100 };
101
102 buildInputs = [ buildbot-pkg ];
103
104 # No tests
105 doCheck = false;
106
107 meta = with lib; {
108 homepage = "https://buildbot.net/";
109 description = "Buildbot Grid View Plugin";
110 teams = [ teams.buildbot ];
111 license = licenses.gpl2;
112 };
113 };
114
115 wsgi-dashboards = buildPythonPackage rec {
116 pname = "buildbot_wsgi_dashboards";
117 inherit (buildbot-pkg) version;
118 format = "setuptools";
119
120 src = fetchurl {
121 url = "https://github.com/buildbot/buildbot/releases/download/v${version}/${pname}-${version}.tar.gz";
122 hash = "sha256-vofKxpIfbAs7HR43Y7ojHLQEn6/WIdjZPgZieBMsz74=";
123 };
124
125 buildInputs = [ buildbot-pkg ];
126
127 # No tests
128 doCheck = false;
129
130 meta = with lib; {
131 homepage = "https://buildbot.net/";
132 description = "Buildbot WSGI dashboards Plugin";
133 teams = [ teams.buildbot ];
134 license = licenses.gpl2;
135 };
136 };
137
138 badges = buildPythonPackage rec {
139 pname = "buildbot_badges";
140 inherit (buildbot-pkg) version;
141 format = "setuptools";
142
143 src = fetchurl {
144 url = "https://github.com/buildbot/buildbot/releases/download/v${version}/${pname}-${version}.tar.gz";
145 hash = "sha256-u7HF6X+ClT4rT3LJcTHXWi5oSxCKPXoUDH+QFRI2S0w=";
146 };
147
148 buildInputs = [ buildbot-pkg ];
149 propagatedBuildInputs = [
150 cairosvg
151 klein
152 jinja2
153 ];
154
155 # No tests
156 doCheck = false;
157
158 meta = with lib; {
159 homepage = "https://buildbot.net/";
160 description = "Buildbot Badges Plugin";
161 maintainers = [ maintainers.julienmalka ];
162 teams = [ teams.buildbot ];
163 license = licenses.gpl2;
164 };
165 };
166
167}