1{ lib
2, buildPythonPackage
3, fetchPypi
4, configobj
5, patiencediff
6, fastbencode
7, fastimport
8, dulwich
9, launchpadlib
10, testtools
11, pythonOlder
12, installShellFiles
13}:
14
15buildPythonPackage rec {
16 pname = "breezy";
17 version = "3.2.2";
18
19 disabled = pythonOlder "3.5";
20
21 src = fetchPypi {
22 inherit pname version;
23 sha256 = "sha256-GHpuRSCN0F2BdQc2cgyDcQz0gJT1R+xAgcVxJZVZpNU=";
24 };
25
26 nativeBuildInputs = [ installShellFiles ];
27
28 propagatedBuildInputs = [
29 configobj
30 fastbencode
31 patiencediff
32 fastimport
33 dulwich
34 launchpadlib
35 ];
36
37 checkInputs = [ testtools ];
38
39 # There is a conflict with their `lazy_import` and plugin tests
40 doCheck = false;
41
42 # symlink for bazaar compatibility
43 postInstall = ''
44 ln -s "$out/bin/brz" "$out/bin/bzr"
45
46 installShellCompletion --cmd brz --bash contrib/bash/brz
47 '';
48
49 pythonImportsCheck = [ "breezy" ];
50
51 meta = with lib; {
52 description = "Friendly distributed version control system";
53 homepage = "https://www.breezy-vcs.org/";
54 license = licenses.gpl2Only;
55 maintainers = [ maintainers.marsam ];
56 };
57}