Merge pull request #171174 from marsam/update-breezy
This commit is contained in:
commit
97d1fb40c1
3 changed files with 48 additions and 5 deletions
|
@ -3,23 +3,36 @@
|
|||
, fetchPypi
|
||||
, configobj
|
||||
, patiencediff
|
||||
, six
|
||||
, fastbencode
|
||||
, fastimport
|
||||
, dulwich
|
||||
, launchpadlib
|
||||
, testtools
|
||||
, pythonOlder
|
||||
, installShellFiles
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "breezy";
|
||||
version = "3.2.1";
|
||||
version = "3.2.2";
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-4LJo6xoooq8EUoDDfQIa4y1/8XX0ybmfM6rX2wsp2Fw=";
|
||||
sha256 = "sha256-GHpuRSCN0F2BdQc2cgyDcQz0gJT1R+xAgcVxJZVZpNU=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ configobj patiencediff six fastimport dulwich launchpadlib ];
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
configobj
|
||||
fastbencode
|
||||
patiencediff
|
||||
fastimport
|
||||
dulwich
|
||||
launchpadlib
|
||||
];
|
||||
|
||||
checkInputs = [ testtools ];
|
||||
|
||||
|
@ -29,6 +42,8 @@ buildPythonPackage rec {
|
|||
# symlink for bazaar compatibility
|
||||
postInstall = ''
|
||||
ln -s "$out/bin/brz" "$out/bin/bzr"
|
||||
|
||||
installShellCompletion --cmd brz --bash contrib/bash/brz
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "breezy" ];
|
||||
|
@ -36,7 +51,7 @@ buildPythonPackage rec {
|
|||
meta = with lib; {
|
||||
description = "Friendly distributed version control system";
|
||||
homepage = "https://www.breezy-vcs.org/";
|
||||
license = licenses.gpl2;
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = [ maintainers.marsam ];
|
||||
};
|
||||
}
|
||||
|
|
26
pkgs/development/python-modules/fastbencode/default.nix
Normal file
26
pkgs/development/python-modules/fastbencode/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, python, cython }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fastbencode";
|
||||
version = "0.0.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-tryavlQtBmN5NSlXb0m6iJFQhVT4XQm11tXtevfgxuQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cython ];
|
||||
|
||||
pythonImportsCheck = [ "fastbencode" ];
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest fastbencode.tests.test_suite
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Fast implementation of bencode";
|
||||
homepage = "https://github.com/breezy-team/fastbencode";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = [ maintainers.marsam ];
|
||||
};
|
||||
}
|
|
@ -2840,6 +2840,8 @@ in {
|
|||
|
||||
fastavro = callPackage ../development/python-modules/fastavro { };
|
||||
|
||||
fastbencode = callPackage ../development/python-modules/fastbencode { };
|
||||
|
||||
fastcache = callPackage ../development/python-modules/fastcache { };
|
||||
|
||||
fastcore = callPackage ../development/python-modules/fastcore { };
|
||||
|
|
Loading…
Reference in a new issue