1{ lib, buildPythonPackage, fetchPypi, buildbot, setuptoolsTrial, mock, twisted,
2 future, coreutils, nixosTests }:
3
4buildPythonPackage (rec {
5 pname = "buildbot-worker";
6 inherit (buildbot) version;
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "sha256-nDP46rLWYXXKJktR6NTWLb0erC6FU8fXe9FAIX+MWuU=";
11 };
12
13 propagatedBuildInputs = [ twisted future ];
14
15 checkInputs = [ setuptoolsTrial mock ];
16
17 postPatch = ''
18 substituteInPlace buildbot_worker/scripts/logwatcher.py \
19 --replace /usr/bin/tail "${coreutils}/bin/tail"
20 '';
21
22 passthru.tests = {
23 smoke-test = nixosTests.buildbot;
24 };
25
26 meta = with lib; {
27 homepage = "https://buildbot.net/";
28 description = "Buildbot Worker Daemon";
29 maintainers = with maintainers; [ ryansydnor lopsided98 ];
30 license = licenses.gpl2;
31 };
32})