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 = "sha256-YmAO8o25uVk1KlyzFg79025KyiopXxWZVpfrvI0H8c4=";
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 # No tests
19 doCheck = false;
20
21 pythonImportsCheck = [ "buildbot_pkg" ];
22
23 disabled = !isPy3k;
24
25 meta = with lib; {
26 homepage = "https://buildbot.net/";
27 description = "Buildbot Packaging Helper";
28 maintainers = with maintainers; [ ryansydnor lopsided98 ];
29 license = licenses.gpl2;
30 };
31}