nixpkgs/pkgs/development/python-modules/breezy/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.1 KiB
Nix
Raw Normal View History

2020-02-22 09:24:00 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, configobj
2020-12-06 21:38:21 +00:00
, patiencediff
2022-04-30 04:20:00 +00:00
, fastbencode
2020-02-22 09:24:00 +00:00
, fastimport
, dulwich
, launchpadlib
, testtools
2022-04-30 04:20:00 +00:00
, pythonOlder
2022-04-30 04:20:00 +00:00
, installShellFiles
2020-02-22 09:24:00 +00:00
}:
buildPythonPackage rec {
pname = "breezy";
2022-04-30 04:20:00 +00:00
version = "3.2.2";
disabled = pythonOlder "3.5";
2020-02-22 09:24:00 +00:00
src = fetchPypi {
inherit pname version;
2022-04-30 04:20:00 +00:00
sha256 = "sha256-GHpuRSCN0F2BdQc2cgyDcQz0gJT1R+xAgcVxJZVZpNU=";
2020-02-22 09:24:00 +00:00
};
2022-04-30 04:20:00 +00:00
nativeBuildInputs = [ installShellFiles ];
2022-04-30 04:20:00 +00:00
propagatedBuildInputs = [
configobj
fastbencode
patiencediff
fastimport
dulwich
launchpadlib
];
2020-02-22 09:24:00 +00:00
checkInputs = [ testtools ];
# 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-30 04:20:00 +00:00
installShellCompletion --cmd brz --bash contrib/bash/brz
2020-02-22 09:24:00 +00:00
'';
pythonImportsCheck = [ "breezy" ];
meta = with lib; {
description = "Friendly distributed version control system";
homepage = "https://www.breezy-vcs.org/";
2022-04-30 04:20:00 +00:00
license = licenses.gpl2Only;
2020-02-22 09:24:00 +00:00
maintainers = [ maintainers.marsam ];
};
}