lol
1{ stdenv
2, pythonPackages
3, fetchurl
4, plugins ? []
5}:
6
7pythonPackages.buildPythonApplication (rec {
8 name = "${pname}-${version}";
9 pname = "buildbot";
10 version = "0.9.0rc2";
11 src = fetchurl {
12 url = "mirror://pypi/b/${pname}/${name}.tar.gz";
13 sha256 = "06xzbjzji3by4hldwr850fc989ymsfl2s8nil21klv2g00dgmcmk";
14 };
15
16 buildInputs = with pythonPackages; [
17 lz4
18 txrequests
19 pyjade
20 boto3
21 moto
22 txgithub
23 mock
24 setuptoolsTrial
25 isort
26 pylint
27 astroid
28 pyflakes
29 ];
30
31 propagatedBuildInputs = with pythonPackages; [
32
33 # core
34 twisted
35 jinja2
36 zope_interface
37 future
38 sqlalchemy
39 sqlalchemy_migrate
40 future
41 dateutil
42 txaio
43 autobahn
44
45 # tls
46 pyopenssl
47 service-identity
48 idna
49
50 # docs
51 sphinx
52 sphinxcontrib-blockdiag
53 sphinxcontrib-spelling
54 pyenchant
55 docutils
56 ramlfications
57 sphinx-jinja
58
59 ] ++ plugins;
60
61 preInstall = ''
62 # buildbot tries to import 'buildslaves' but does not
63 # include the module in it's package, so get rid of those references
64 sed -i.bak -e '66,$d' buildbot/test/__init__.py
65 sed -i.bak -e '506,$d' buildbot/test/unit/test_worker_base.py
66 sed -i.bak -e '648,$d' buildbot/test/unit/test_worker_ec2.py
67 sed -i.bak -e '289,$d' buildbot/test/unit/test_worker_libvirt.py
68 sed -i.bak -e '190,$d' buildbot/test/unit/test_worker_openstack.py
69 sed -i.bak -e '60,84d' buildbot/test/integration/test_configs.py
70
71 # writes out a file that can't be read properly
72 sed -i.bak -e '69,84d' buildbot/test/unit/test_www_config.py
73 '';
74
75 meta = with stdenv.lib; {
76 homepage = http://buildbot.net/;
77 description = "Continuous integration system that automates the build/test cycle";
78 maintainers = with maintainers; [ nand0p ryansydnor ];
79 platforms = platforms.all;
80 };
81})