biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / continuous-integration / buildbot / worker.nix
blob1b73737e42cbc8642e073a7d54a548222d4f53ee
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , buildbot
5 , stdenv
7 # patch
8 , coreutils
10 # propagates
11 , autobahn
12 , future
13 , msgpack
14 , twisted
16 # tests
17 , parameterized
18 , psutil
19 , setuptools-trial
21 # passthru
22 , nixosTests
25 buildPythonPackage (rec {
26   pname = "buildbot-worker";
27   inherit (buildbot) version;
29   src = fetchPypi {
30     inherit pname version;
31     hash = "sha256-hRsmgP8IiWg5+YCqMVYgZc4ljWwz7YWfAFrmMHx8wBY=";
32   };
34   postPatch = ''
35     substituteInPlace buildbot_worker/scripts/logwatcher.py \
36       --replace /usr/bin/tail "${coreutils}/bin/tail"
37   '';
39   nativeBuildInputs = [
40     setuptools-trial
41   ];
43   propagatedBuildInputs = [
44     autobahn
45     future
46     msgpack
47     twisted
48   ];
50   nativeCheckInputs = [
51     parameterized
52     psutil
53   ];
55   passthru.tests = {
56     smoke-test = nixosTests.buildbot;
57   };
59   meta = with lib; {
60     homepage = "https://buildbot.net/";
61     description = "Buildbot Worker Daemon";
62     maintainers = teams.buildbot.members;
63     license = licenses.gpl2;
64     broken = stdenv.isDarwin; # https://hydra.nixos.org/build/243534318/nixlog/6
65   };