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