2016-11-15 22:26:55 +00:00
|
|
|
{ pkgs, stdenv, pythonPackages, fetchurl, coreutils, plugins ? [] }:
|
|
|
|
|
|
|
|
pythonPackages.buildPythonApplication (rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "buildbot";
|
2017-02-13 15:44:21 +00:00
|
|
|
version = "0.9.4";
|
2016-11-15 22:26:55 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/b/${pname}/${name}.tar.gz";
|
2017-02-13 15:44:21 +00:00
|
|
|
sha256 = "0wklrn4fszac9wi8zw3vbsznwyff6y57cz0i81zvh46skb6n3086";
|
2016-11-15 22:26:55 +00:00
|
|
|
};
|
|
|
|
doCheck = false;
|
|
|
|
buildInputs = with pythonPackages; [
|
|
|
|
lz4
|
|
|
|
txrequests
|
|
|
|
pyjade
|
|
|
|
boto3
|
|
|
|
moto
|
|
|
|
txgithub
|
|
|
|
mock
|
|
|
|
setuptoolsTrial
|
|
|
|
isort
|
|
|
|
pylint
|
|
|
|
astroid
|
|
|
|
pyflakes
|
2017-02-13 15:44:21 +00:00
|
|
|
pyjwt
|
2016-11-15 22:26:55 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
|
|
|
|
|
|
|
# core
|
|
|
|
twisted
|
|
|
|
jinja2
|
|
|
|
zope_interface
|
|
|
|
future
|
|
|
|
sqlalchemy
|
|
|
|
sqlalchemy_migrate
|
|
|
|
future
|
|
|
|
dateutil
|
|
|
|
txaio
|
|
|
|
autobahn
|
|
|
|
|
|
|
|
# tls
|
|
|
|
pyopenssl
|
|
|
|
service-identity
|
|
|
|
idna
|
|
|
|
pkgs.treq
|
|
|
|
|
|
|
|
# docs
|
|
|
|
sphinx
|
|
|
|
sphinxcontrib-blockdiag
|
|
|
|
sphinxcontrib-spelling
|
|
|
|
pyenchant
|
|
|
|
docutils
|
|
|
|
ramlfications
|
|
|
|
sphinx-jinja
|
|
|
|
|
|
|
|
] ++ plugins;
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
# writes out a file that can't be read properly
|
|
|
|
sed -i.bak -e '69,84d' buildbot/test/unit/test_www_config.py
|
|
|
|
|
|
|
|
# re-hardcode path to tail
|
|
|
|
sed -i.bak 's|/usr/bin/tail|${coreutils}/bin/tail|' buildbot/scripts/logwatcher.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
mv -v $out/bin/buildbot $out/bin/.wrapped-buildbot
|
|
|
|
echo "#!/bin/sh" > $out/bin/buildbot
|
|
|
|
echo "export PYTHONPATH=$PYTHONPATH" >> $out/bin/buildbot
|
|
|
|
echo "exec $out/bin/.wrapped-buildbot \"\$@\"" >> $out/bin/buildbot
|
|
|
|
chmod -c 555 $out/bin/buildbot
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://buildbot.net/;
|
|
|
|
description = "Continuous integration system that automates the build/test cycle";
|
|
|
|
maintainers = with maintainers; [ nand0p ryansydnor ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
})
|