2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, configobj
|
2020-12-09 12:39:15 +00:00
|
|
|
, patiencediff
|
2022-04-27 09:35:20 +00:00
|
|
|
, fastbencode
|
2020-04-24 23:36:52 +00:00
|
|
|
, fastimport
|
|
|
|
, dulwich
|
|
|
|
, launchpadlib
|
|
|
|
, testtools
|
2022-04-27 09:35:20 +00:00
|
|
|
, pythonOlder
|
|
|
|
, installShellFiles
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "breezy";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "3.2.2";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "sha256-GHpuRSCN0F2BdQc2cgyDcQz0gJT1R+xAgcVxJZVZpNU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
configobj
|
|
|
|
fastbencode
|
|
|
|
patiencediff
|
|
|
|
fastimport
|
|
|
|
dulwich
|
|
|
|
launchpadlib
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ testtools ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# There is a conflict with their `lazy_import` and plugin tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
# symlink for bazaar compatibility
|
|
|
|
postInstall = ''
|
|
|
|
ln -s "$out/bin/brz" "$out/bin/bzr"
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
installShellCompletion --cmd brz --bash contrib/bash/brz
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "breezy" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Friendly distributed version control system";
|
|
|
|
homepage = "https://www.breezy-vcs.org/";
|
2022-04-27 09:35:20 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|