2018-01-26 23:54:43 +00:00
|
|
|
{ stdenv, lib, openssh, buildbot-worker, buildbot-pkg, pythonPackages, runCommand, makeWrapper }:
|
2016-08-10 00:08:01 +01:00
|
|
|
|
2017-03-08 15:55:16 +00:00
|
|
|
let
|
|
|
|
withPlugins = plugins: runCommand "wrapped-${package.name}" {
|
2017-03-08 17:39:44 +00:00
|
|
|
buildInputs = [ makeWrapper ] ++ plugins;
|
2017-09-11 13:25:53 +01:00
|
|
|
propagatedBuildInputs = package.propagatedBuildInputs;
|
2017-03-08 15:55:16 +00:00
|
|
|
passthru.withPlugins = moarPlugins: withPlugins (moarPlugins ++ plugins);
|
|
|
|
} ''
|
2017-03-07 19:26:21 +00:00
|
|
|
makeWrapper ${package}/bin/buildbot $out/bin/buildbot \
|
|
|
|
--prefix PYTHONPATH : "${package}/lib/python2.7/site-packages:$PYTHONPATH"
|
|
|
|
ln -sfv ${package}/lib $out/lib
|
2017-03-08 15:55:16 +00:00
|
|
|
'';
|
2016-08-10 00:08:01 +01:00
|
|
|
|
2017-09-11 13:25:53 +01:00
|
|
|
package = pythonPackages.buildPythonApplication rec {
|
2017-03-08 15:55:16 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "buildbot";
|
2018-07-03 08:16:00 +01:00
|
|
|
version = "1.2.0";
|
2016-08-10 00:08:01 +01:00
|
|
|
|
2017-03-08 15:55:16 +00:00
|
|
|
src = pythonPackages.fetchPypi {
|
|
|
|
inherit pname version;
|
2018-07-03 08:16:00 +01:00
|
|
|
sha256 = "02gwmls8kgm6scy36hdy0bg645zs1pxlrgwkcn79wrl7cfmabcbv";
|
2017-03-08 15:55:16 +00:00
|
|
|
};
|
2016-08-10 00:08:01 +01:00
|
|
|
|
2017-03-08 15:55:16 +00:00
|
|
|
buildInputs = with pythonPackages; [
|
|
|
|
lz4
|
|
|
|
txrequests
|
|
|
|
pyjade
|
|
|
|
boto3
|
|
|
|
moto
|
|
|
|
txgithub
|
|
|
|
mock
|
|
|
|
setuptoolsTrial
|
|
|
|
isort
|
|
|
|
pylint
|
|
|
|
astroid
|
|
|
|
pyflakes
|
|
|
|
openssh
|
|
|
|
buildbot-worker
|
2018-01-26 23:54:43 +00:00
|
|
|
buildbot-pkg
|
2017-03-08 15:55:16 +00:00
|
|
|
treq
|
|
|
|
];
|
2016-08-10 00:08:01 +01:00
|
|
|
|
2017-03-08 15:55:16 +00:00
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
|
|
|
# core
|
|
|
|
twisted
|
|
|
|
jinja2
|
|
|
|
zope_interface
|
|
|
|
sqlalchemy
|
|
|
|
sqlalchemy_migrate
|
|
|
|
future
|
|
|
|
dateutil
|
|
|
|
txaio
|
|
|
|
autobahn
|
|
|
|
pyjwt
|
2017-03-07 19:26:21 +00:00
|
|
|
distro
|
2016-08-10 00:08:01 +01:00
|
|
|
|
2017-03-08 15:55:16 +00:00
|
|
|
# tls
|
|
|
|
pyopenssl
|
|
|
|
service-identity
|
|
|
|
idna
|
2016-10-04 18:20:09 +01:00
|
|
|
|
2017-03-08 15:55:16 +00:00
|
|
|
# docs
|
|
|
|
sphinx
|
|
|
|
sphinxcontrib-blockdiag
|
|
|
|
sphinxcontrib-spelling
|
|
|
|
pyenchant
|
|
|
|
docutils
|
|
|
|
ramlfications
|
|
|
|
sphinx-jinja
|
2016-08-10 00:08:01 +01:00
|
|
|
|
2017-03-08 15:55:16 +00:00
|
|
|
];
|
|
|
|
|
2017-05-03 21:31:17 +01:00
|
|
|
patches = [
|
2017-05-12 14:44:30 +01:00
|
|
|
# This patch disables the test that tries to read /etc/os-release which
|
2017-05-03 21:31:17 +01:00
|
|
|
# is not accessible in sandboxed builds.
|
|
|
|
./skip_test_linux_distro.patch
|
|
|
|
];
|
|
|
|
|
2018-05-01 22:47:53 +01:00
|
|
|
# TimeoutErrors on slow machines -> aarch64
|
|
|
|
doCheck = !stdenv.isAarch64;
|
|
|
|
|
2017-03-08 15:55:16 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace buildbot/scripts/logwatcher.py --replace '/usr/bin/tail' "$(type -P tail)"
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = { inherit withPlugins; };
|
2016-09-16 21:27:45 +01:00
|
|
|
|
2017-03-08 15:55:16 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://buildbot.net/;
|
2017-07-05 17:00:22 +01:00
|
|
|
description = "Buildbot is an open-source continuous integration framework for automating software build, test, and release processes";
|
2017-03-08 15:55:16 +00:00
|
|
|
maintainers = with maintainers; [ nand0p ryansydnor ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
2017-09-11 13:25:53 +01:00
|
|
|
};
|
2017-03-08 15:55:16 +00:00
|
|
|
in package
|