5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
179 lines
4.7 KiB
Nix
179 lines
4.7 KiB
Nix
{ lib, buildPythonPackage, fetchPypi, fetchurl, callPackage, mock, cairosvg, klein, jinja2, buildbot-pkg, unzip, zip }:
|
|
{
|
|
# 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;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-fwWzgIf0/+UiKRyiFUKPN4WUbmxQE5sU/ChAOqqLHE4=";
|
|
};
|
|
|
|
# Remove unnecessary circular dependency on buildbot
|
|
postPatch = ''
|
|
sed -i "s/'buildbot'//" setup.py
|
|
'';
|
|
|
|
buildInputs = [ buildbot-pkg mock ];
|
|
|
|
# No tests
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://buildbot.net/";
|
|
description = "Buildbot UI";
|
|
maintainers = with maintainers; [ ryansydnor lopsided98 ];
|
|
license = licenses.gpl2;
|
|
};
|
|
};
|
|
|
|
www-react = buildPythonPackage rec {
|
|
pname = "buildbot-www-react";
|
|
inherit (buildbot-pkg) version;
|
|
format = "wheel";
|
|
|
|
# fetchpypy returns a 404 for the wheel?
|
|
# normal source release doesn't have any assets
|
|
src = fetchurl {
|
|
url = "https://github.com/buildbot/buildbot/releases/download/v${version}/buildbot_www_react-${version}-py3-none-any.whl";
|
|
hash = "sha256-pEzuMiDhGQtIWQm80lgKIcTjnS7Z8UJhH9plJup5O84=";
|
|
};
|
|
|
|
# Remove unneccessary circular dependency on buildbot
|
|
postPatch = ''
|
|
pushd dist
|
|
unzip buildbot_www_react-${version}-py3-none-any.whl
|
|
sed -i "s/Requires-Dist: buildbot//" buildbot_www_react-${version}.dist-info/METADATA
|
|
chmod -R u+w buildbot_www_react-${version}-py3-none-any.whl
|
|
zip -r buildbot_www_react-${version}-py3-none-any.whl buildbot_www_react-${version}.dist-info
|
|
popd
|
|
'';
|
|
|
|
buildInputs = [ buildbot-pkg ];
|
|
nativeBuildInputs = [ unzip zip ];
|
|
|
|
# No tests
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://buildbot.net/";
|
|
description = "Buildbot UI (React)";
|
|
maintainers = with maintainers; [ mic92 ];
|
|
license = licenses.gpl2Only;
|
|
};
|
|
};
|
|
|
|
console-view = buildPythonPackage rec {
|
|
pname = "buildbot-console-view";
|
|
inherit (buildbot-pkg) version;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-ghCmbUw/Gj23J5X3fDn/FGkVvXUE9QWrPFTRXSsxEZ4=";
|
|
};
|
|
|
|
buildInputs = [ buildbot-pkg ];
|
|
|
|
# No tests
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://buildbot.net/";
|
|
description = "Buildbot Console View Plugin";
|
|
maintainers = with maintainers; [ ryansydnor lopsided98 ];
|
|
license = licenses.gpl2;
|
|
};
|
|
};
|
|
|
|
waterfall-view = buildPythonPackage rec {
|
|
pname = "buildbot-waterfall-view";
|
|
inherit (buildbot-pkg) version;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-B+xUsZBQWt4TwiBqukHO6o0R0XbjLxbCxQKLaWW0/Fw=";
|
|
};
|
|
|
|
buildInputs = [ buildbot-pkg ];
|
|
|
|
# No tests
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://buildbot.net/";
|
|
description = "Buildbot Waterfall View Plugin";
|
|
maintainers = with maintainers; [ ryansydnor lopsided98 ];
|
|
license = licenses.gpl2;
|
|
};
|
|
};
|
|
|
|
grid-view = buildPythonPackage rec {
|
|
pname = "buildbot-grid-view";
|
|
inherit (buildbot-pkg) version;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-LFZ3VquRHAHkRcQbw9apOlGlWCK42WT1tPGhW8zSXyo=";
|
|
};
|
|
|
|
buildInputs = [ buildbot-pkg ];
|
|
|
|
# No tests
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://buildbot.net/";
|
|
description = "Buildbot Grid View Plugin";
|
|
maintainers = with maintainers; [ lopsided98 ];
|
|
license = licenses.gpl2;
|
|
};
|
|
};
|
|
|
|
wsgi-dashboards = buildPythonPackage rec {
|
|
pname = "buildbot-wsgi-dashboards";
|
|
inherit (buildbot-pkg) version;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-NGI4T0eVV4MxYpD7+BTKbi3r6USt28lXXInrgSd4ASU=";
|
|
};
|
|
|
|
buildInputs = [ buildbot-pkg ];
|
|
|
|
# No tests
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://buildbot.net/";
|
|
description = "Buildbot WSGI dashboards Plugin";
|
|
maintainers = with maintainers; [ lopsided98 ];
|
|
license = licenses.gpl2;
|
|
};
|
|
};
|
|
|
|
badges = buildPythonPackage rec {
|
|
pname = "buildbot-badges";
|
|
inherit (buildbot-pkg) version;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-BtKA8zuJEyg3q3GnHS4XSGBLBk3IqCR8NOKui2rIn6Q=";
|
|
};
|
|
|
|
buildInputs = [ buildbot-pkg ];
|
|
propagatedBuildInputs = [ cairosvg klein jinja2 ];
|
|
|
|
# No tests
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://buildbot.net/";
|
|
description = "Buildbot Badges Plugin";
|
|
maintainers = with maintainers; [ julienmalka ];
|
|
license = licenses.gpl2;
|
|
};
|
|
};
|
|
|
|
}
|