depot/third_party/nixpkgs/pkgs/development/tools/continuous-integration/buildbot/pkg.nix
Default email 98eb3e9ef5 Project import generated by Copybara.
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
2024-07-01 15:47:52 +00:00

27 lines
639 B
Nix

{ lib, buildPythonPackage, isPy3k, buildbot }:
buildPythonPackage {
pname = "buildbot_pkg";
inherit (buildbot) src version;
postPatch = ''
cd pkg
# Their listdir function filters out `node_modules` folders.
# Do we have to care about that with Nix...?
substituteInPlace buildbot_pkg.py --replace "os.listdir = listdir" ""
'';
# No tests
doCheck = false;
pythonImportsCheck = [ "buildbot_pkg" ];
disabled = !isPy3k;
meta = with lib; {
homepage = "https://buildbot.net/";
description = "Buildbot Packaging Helper";
maintainers = teams.buildbot.members;
license = licenses.gpl2;
};
}