nixpkgs/pkgs/development/tools/continuous-integration/buildbot/worker.nix
2023-09-06 09:36:01 +02:00

64 lines
1,012 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, buildbot
# patch
, coreutils
# propagates
, autobahn
, future
, msgpack
, twisted
# tests
, parameterized
, psutil
, setuptoolsTrial
# passthru
, nixosTests
}:
buildPythonPackage (rec {
pname = "buildbot-worker";
inherit (buildbot) version;
src = fetchPypi {
inherit pname version;
hash = "sha256-jI38ZhCcHbjah6lST6YtSZAwaeZPBWsgY3VTUf6s2x8=";
};
postPatch = ''
substituteInPlace buildbot_worker/scripts/logwatcher.py \
--replace /usr/bin/tail "${coreutils}/bin/tail"
'';
nativeBuildInputs = [
setuptoolsTrial
];
propagatedBuildInputs = [
autobahn
future
msgpack
twisted
];
nativeCheckInputs = [
parameterized
psutil
];
passthru.tests = {
smoke-test = nixosTests.buildbot;
};
meta = with lib; {
homepage = "https://buildbot.net/";
description = "Buildbot Worker Daemon";
maintainers = with maintainers; [ ryansydnor lopsided98 ];
license = licenses.gpl2;
};
})