1{ 2 lib, 3 buildPythonPackage, 4 isPy3k, 5 buildbot, 6}: 7 8buildPythonPackage { 9 format = "setuptools"; 10 pname = "buildbot_pkg"; 11 inherit (buildbot) src version; 12 13 postPatch = '' 14 cd pkg 15 # Their listdir function filters out `node_modules` folders. 16 # Do we have to care about that with Nix...? 17 substituteInPlace buildbot_pkg.py --replace "os.listdir = listdir" "" 18 ''; 19 20 # No tests 21 doCheck = false; 22 23 pythonImportsCheck = [ "buildbot_pkg" ]; 24 25 disabled = !isPy3k; 26 27 meta = with lib; { 28 homepage = "https://buildbot.net/"; 29 description = "Buildbot Packaging Helper"; 30 teams = [ teams.buildbot ]; 31 license = licenses.gpl2; 32 }; 33}