Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
3.3 kB · 175 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176{ lib, stdenv, buildPythonApplication, fetchFromGitHub, makeWrapper, # Tie withPlugins through the fixed point here, so it will receive an # overridden version properly buildbot, pythonOlder, python, twisted, jinja2, msgpack, zope-interface, sqlalchemy, alembic, python-dateutil, txaio, autobahn, pyjwt, pyyaml, treq, txrequests, pypugjs, boto3, moto, markdown, lz4, brotli, zstandard, setuptools-trial, buildbot-worker, buildbot-plugins, buildbot-pkg, parameterized, git, openssh, setuptools, croniter, importlib-resources, packaging, unidiff, nixosTests,}:
let withPlugins = plugins: buildPythonApplication { pname = "${buildbot.pname}-with-plugins"; inherit (buildbot) version; format = "other";
dontUnpack = true; dontBuild = true; doCheck = false;
nativeBuildInputs = [ makeWrapper ];
propagatedBuildInputs = plugins ++ buildbot.propagatedBuildInputs;
installPhase = '' makeWrapper ${buildbot}/bin/buildbot $out/bin/buildbot \ --prefix PYTHONPATH : "${buildbot}/${python.sitePackages}:$PYTHONPATH" ln -sfv ${buildbot}/lib $out/lib '';
passthru = buildbot.passthru // { withPlugins = morePlugins: withPlugins (morePlugins ++ plugins); }; };inbuildPythonApplication rec { pname = "buildbot"; version = "4.2.1"; format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "buildbot"; repo = "buildbot"; rev = "v${version}"; hash = "sha256-Kf8sxZE2cQDQSVSMpRTokJU4f3/M6OJq6bXzGonrRLU="; };
build-system = [ ];
pythonRelaxDeps = [ "twisted" ];
propagatedBuildInputs = [ # core twisted jinja2 msgpack zope-interface sqlalchemy alembic python-dateutil txaio autobahn pyjwt pyyaml setuptools croniter importlib-resources packaging unidiff treq brotli zstandard ] # tls ++ twisted.optional-dependencies.tls;
nativeCheckInputs = [ treq txrequests pypugjs boto3 moto markdown lz4 setuptools-trial buildbot-worker buildbot-pkg buildbot-plugins.www parameterized git openssh ];
patches = [ # This patch disables the test that tries to read /etc/os-release which # is not accessible in sandboxed builds. ./skip_test_linux_distro.patch ];
postPatch = '' cd master touch buildbot/py.typed substituteInPlace buildbot/scripts/logwatcher.py --replace '/usr/bin/tail' "$(type -P tail)" '';
# TimeoutErrors on slow machines -> aarch64 doCheck = !stdenv.hostPlatform.isAarch64;
preCheck = '' export PATH="$out/bin:$PATH" '';
passthru = { inherit withPlugins python; updateScript = ./update.sh; } // lib.optionalAttrs stdenv.hostPlatform.isLinux { tests = { inherit (nixosTests) buildbot; }; };
meta = with lib; { description = "Open-source continuous integration framework for automating software build, test, and release processes"; homepage = "https://buildbot.net/"; changelog = "https://github.com/buildbot/buildbot/releases/tag/v${version}"; teams = [ teams.buildbot ]; license = licenses.gpl2Only; };}