Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at flake-libs 161 lines 4.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchurl, 5 callPackage, 6 mock, 7 cairosvg, 8 klein, 9 jinja2, 10 buildbot-pkg, 11}: 12{ 13 # this is exposed for potential plugins to use and for nix-update 14 inherit buildbot-pkg; 15 www = buildPythonPackage rec { 16 pname = "buildbot_www"; 17 inherit (buildbot-pkg) version; 18 19 src = fetchurl { 20 url = "https://github.com/buildbot/buildbot/releases/download/v${version}/${pname}-${version}.tar.gz"; 21 hash = "sha256-xwu260fcRfnUarEW3dnMcl8YheR0YmYCgNQGy7LaDGw="; 22 }; 23 24 # Remove unnecessary circular dependency on buildbot 25 postPatch = '' 26 sed -i "s/'buildbot'//" setup.py 27 ''; 28 29 buildInputs = [ 30 buildbot-pkg 31 mock 32 ]; 33 34 # No tests 35 doCheck = false; 36 37 meta = with lib; { 38 homepage = "https://buildbot.net/"; 39 description = "Buildbot UI"; 40 teams = [ teams.buildbot ]; 41 license = licenses.gpl2; 42 }; 43 }; 44 45 console-view = buildPythonPackage rec { 46 pname = "buildbot_console_view"; 47 inherit (buildbot-pkg) version; 48 49 src = fetchurl { 50 url = "https://github.com/buildbot/buildbot/releases/download/v${version}/${pname}-${version}.tar.gz"; 51 hash = "sha256-VtrgDVB+U4uM1SQ1h5IMFwU+nRcleYolDjQYJZ7iHbA="; 52 }; 53 54 buildInputs = [ buildbot-pkg ]; 55 56 # No tests 57 doCheck = false; 58 59 meta = with lib; { 60 homepage = "https://buildbot.net/"; 61 description = "Buildbot Console View Plugin"; 62 teams = [ teams.buildbot ]; 63 license = licenses.gpl2; 64 }; 65 }; 66 67 waterfall-view = buildPythonPackage rec { 68 pname = "buildbot_waterfall_view"; 69 inherit (buildbot-pkg) version; 70 71 src = fetchurl { 72 url = "https://github.com/buildbot/buildbot/releases/download/v${version}/${pname}-${version}.tar.gz"; 73 hash = "sha256-q4RDjn9i4wHtCctqcNIfilS9SNfS+LHohE0dSMHMOt8="; 74 }; 75 76 buildInputs = [ buildbot-pkg ]; 77 78 # No tests 79 doCheck = false; 80 81 meta = with lib; { 82 homepage = "https://buildbot.net/"; 83 description = "Buildbot Waterfall View Plugin"; 84 teams = [ teams.buildbot ]; 85 license = licenses.gpl2; 86 }; 87 }; 88 89 grid-view = buildPythonPackage rec { 90 pname = "buildbot_grid_view"; 91 inherit (buildbot-pkg) version; 92 93 src = fetchurl { 94 url = "https://github.com/buildbot/buildbot/releases/download/v${version}/${pname}-${version}.tar.gz"; 95 hash = "sha256-HrVoSXXo8P05JbJebKQ/bSPTIxQc9gTDT2RJLhJVhO8="; 96 }; 97 98 buildInputs = [ buildbot-pkg ]; 99 100 # No tests 101 doCheck = false; 102 103 meta = with lib; { 104 homepage = "https://buildbot.net/"; 105 description = "Buildbot Grid View Plugin"; 106 teams = [ teams.buildbot ]; 107 license = licenses.gpl2; 108 }; 109 }; 110 111 wsgi-dashboards = buildPythonPackage rec { 112 pname = "buildbot_wsgi_dashboards"; 113 inherit (buildbot-pkg) version; 114 115 src = fetchurl { 116 url = "https://github.com/buildbot/buildbot/releases/download/v${version}/${pname}-${version}.tar.gz"; 117 hash = "sha256-x/a3iAb8vNkplAoS57IX+4BxIcH9roCixrBArUQN+04="; 118 }; 119 120 buildInputs = [ buildbot-pkg ]; 121 122 # No tests 123 doCheck = false; 124 125 meta = with lib; { 126 homepage = "https://buildbot.net/"; 127 description = "Buildbot WSGI dashboards Plugin"; 128 teams = [ teams.buildbot ]; 129 license = licenses.gpl2; 130 }; 131 }; 132 133 badges = buildPythonPackage rec { 134 pname = "buildbot_badges"; 135 inherit (buildbot-pkg) version; 136 137 src = fetchurl { 138 url = "https://github.com/buildbot/buildbot/releases/download/v${version}/${pname}-${version}.tar.gz"; 139 hash = "sha256-kGH+Wuqn3vkATL8+aKjXbtuBEQro1tekut+7te8abQs="; 140 }; 141 142 buildInputs = [ buildbot-pkg ]; 143 propagatedBuildInputs = [ 144 cairosvg 145 klein 146 jinja2 147 ]; 148 149 # No tests 150 doCheck = false; 151 152 meta = with lib; { 153 homepage = "https://buildbot.net/"; 154 description = "Buildbot Badges Plugin"; 155 maintainers = [ maintainers.julienmalka ]; 156 teams = [ teams.buildbot ]; 157 license = licenses.gpl2; 158 }; 159 }; 160 161}