1{ lib, buildPythonPackage, fetchPypi, isPy3k, buildbot }:
2
3buildPythonPackage rec {
4 pname = "buildbot-pkg";
5 inherit (buildbot) version;
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "1yz3k6dg15q4911x8kjy396dccfgrs50mjz278l09p6zmm71llax";
10 };
11
12 postPatch = ''
13 # Their listdir function filters out `node_modules` folders.
14 # Do we have to care about that with Nix...?
15 substituteInPlace buildbot_pkg.py --replace "os.listdir = listdir" ""
16 '';
17
18 disabled = !isPy3k;
19
20 meta = with lib; {
21 homepage = "https://buildbot.net/";
22 description = "Buildbot Packaging Helper";
23 maintainers = with maintainers; [ nand0p ryansydnor lopsided98 ];
24 license = licenses.gpl2;
25 };
26}