buildbot-www-react: init 3.9.2

This commit is contained in:
Jörg Thalheim
2023-09-06 09:38:50 +02:00
parent 0bffda19b8
commit 6198bb8acd
2 changed files with 38 additions and 1 deletions
@@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, callPackage, mock, cairosvg, klein, jinja2, buildbot-pkg }:
{ 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;
@@ -29,6 +29,42 @@
};
};
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;
@@ -6,6 +6,7 @@ nix-update buildbot
nix-update --version=skip buildbot-worker
nix-update --version=skip buildbot-plugins.buildbot-pkg
nix-update --version=skip buildbot-plugins.www
nix-update --version=skip buildbot-plugins.www-react
nix-update --version=skip buildbot-plugins.console-view
nix-update --version=skip buildbot-plugins.waterfall-view
nix-update --version=skip buildbot-plugins.grid-view