2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, buildbot
|
|
|
|
|
|
|
|
# patch
|
|
|
|
, coreutils
|
|
|
|
|
|
|
|
# propagates
|
|
|
|
, autobahn
|
|
|
|
, future
|
|
|
|
, msgpack
|
|
|
|
, twisted
|
|
|
|
|
|
|
|
# tests
|
|
|
|
, mock
|
|
|
|
, parameterized
|
|
|
|
, psutil
|
|
|
|
, setuptoolsTrial
|
|
|
|
|
|
|
|
# passthru
|
|
|
|
, nixosTests
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage (rec {
|
|
|
|
pname = "buildbot-worker";
|
2020-06-18 07:06:33 +00:00
|
|
|
inherit (buildbot) version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "sha256-HZH3TdH5dhr3f6ev25O3SgPPNbiFGMmAp9DHwcb/2MA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace buildbot_worker/scripts/logwatcher.py \
|
|
|
|
--replace /usr/bin/tail "${coreutils}/bin/tail"
|
|
|
|
'';
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptoolsTrial
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
autobahn
|
|
|
|
future
|
|
|
|
msgpack
|
|
|
|
twisted
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
parameterized
|
|
|
|
psutil
|
|
|
|
];
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
passthru.tests = {
|
|
|
|
smoke-test = nixosTests.buildbot;
|
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://buildbot.net/";
|
|
|
|
description = "Buildbot Worker Daemon";
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = with maintainers; [ ryansydnor lopsided98 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
})
|