@@ -3,23 +3,36 @@
33, fetchPypi
44, configobj
55, patiencediff
6−, six
6+, fastbencode
77, fastimport
88, dulwich
99, launchpadlib
1010, testtools
11+, pythonOlder
12+, installShellFiles
1113}:
1214
1315buildPythonPackage rec {
1416 pname = "breezy";
15− version = "3.2.1";
17+ version = "3.2.2";
18+
19+ disabled = pythonOlder "3.5";
1620
1721 src = fetchPypi {
1822 inherit pname version;
19− sha256 = "sha256-4LJo6xoooq8EUoDDfQIa4y1/8XX0ybmfM6rX2wsp2Fw=";
23+ sha256 = "sha256-GHpuRSCN0F2BdQc2cgyDcQz0gJT1R+xAgcVxJZVZpNU=";
2024 };
2125
22− propagatedBuildInputs = [ configobj patiencediff six fastimport dulwich launchpadlib ];
26+ nativeBuildInputs = [ installShellFiles ];
27+
28+ propagatedBuildInputs = [
29+ configobj
30+ fastbencode
31+ patiencediff
32+ fastimport
33+ dulwich
34+ launchpadlib
35+ ];
2336
2437 checkInputs = [ testtools ];
2538
@@ -29,6 +42,8 @@ buildPythonPackage rec {
2942 # symlink for bazaar compatibility
3043 postInstall = ''
3144 ln -s "$out/bin/brz" "$out/bin/bzr"
45+
46+ installShellCompletion --cmd brz --bash contrib/bash/brz
3247 '';
3348
3449 pythonImportsCheck = [ "breezy" ];
@@ -36,7 +51,7 @@ buildPythonPackage rec {
3651 meta = with lib; {
3752 description = "Friendly distributed version control system";
3853 homepage = "https://www.breezy-vcs.org/";
39− license = licenses.gpl2;
54+ license = licenses.gpl2Only;
4055 maintainers = [ maintainers.marsam ];
4156 };
4257}