1{
2 lib,
3 buildPythonPackage,
4 buildbot,
5 stdenv,
6
7 # patch
8 coreutils,
9
10 # propagates
11 autobahn,
12 msgpack,
13 twisted,
14
15 # tests
16 parameterized,
17 psutil,
18 setuptools-trial,
19
20 # passthru
21 nixosTests,
22}:
23
24buildPythonPackage ({
25 pname = "buildbot_worker";
26 inherit (buildbot) src version;
27 format = "setuptools";
28
29 postPatch = ''
30 cd worker
31 touch buildbot_worker/py.typed
32 substituteInPlace buildbot_worker/scripts/logwatcher.py \
33 --replace /usr/bin/tail "${coreutils}/bin/tail"
34 '';
35
36 nativeBuildInputs = [
37 setuptools-trial
38 ];
39
40 propagatedBuildInputs = [
41 autobahn
42 msgpack
43 twisted
44 ];
45
46 nativeCheckInputs = [
47 parameterized
48 psutil
49 ];
50
51 passthru.tests = {
52 smoke-test = nixosTests.buildbot;
53 };
54
55 meta = with lib; {
56 homepage = "https://buildbot.net/";
57 description = "Buildbot Worker Daemon";
58 teams = [ teams.buildbot ];
59 license = licenses.gpl2;
60 };
61})