@@ -9,6 +9,7 @@
99, launchpadlib
1010, testtools
1111, pythonOlder
12+, installShellFiles
1213}:
1314
1415buildPythonPackage rec {
@@ -22,6 +23,8 @@ buildPythonPackage rec {
2223 sha256 = "sha256-GHpuRSCN0F2BdQc2cgyDcQz0gJT1R+xAgcVxJZVZpNU=";
2324 };
2425
26+ nativeBuildInputs = [ installShellFiles ];
27+
2528 propagatedBuildInputs = [
2629 configobj
2730 fastbencode
@@ -39,6 +42,8 @@ buildPythonPackage rec {
3942 # symlink for bazaar compatibility
4043 postInstall = ''
4144 ln -s "$out/bin/brz" "$out/bin/bzr"
45+
46+ installShellCompletion --cmd brz --bash contrib/bash/brz
4247 '';
4348
4449 pythonImportsCheck = [ "breezy" ];