mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 21:09:00 +02:00
Merge pull request #171174 from marsam/update-breezy
This commit is contained in:
commit
97d1fb40c1
|
@ -3,23 +3,36 @@
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, configobj
|
, configobj
|
||||||
, patiencediff
|
, patiencediff
|
||||||
, six
|
, fastbencode
|
||||||
, fastimport
|
, fastimport
|
||||||
, dulwich
|
, dulwich
|
||||||
, launchpadlib
|
, launchpadlib
|
||||||
, testtools
|
, testtools
|
||||||
|
, pythonOlder
|
||||||
|
, installShellFiles
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "breezy";
|
pname = "breezy";
|
||||||
version = "3.2.1";
|
version = "3.2.2";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.5";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
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 ];
|
checkInputs = [ testtools ];
|
||||||
|
|
||||||
|
@ -29,6 +42,8 @@ buildPythonPackage rec {
|
||||||
# symlink for bazaar compatibility
|
# symlink for bazaar compatibility
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
ln -s "$out/bin/brz" "$out/bin/bzr"
|
ln -s "$out/bin/brz" "$out/bin/bzr"
|
||||||
|
|
||||||
|
installShellCompletion --cmd brz --bash contrib/bash/brz
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pythonImportsCheck = [ "breezy" ];
|
pythonImportsCheck = [ "breezy" ];
|
||||||
|
@ -36,7 +51,7 @@ buildPythonPackage rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Friendly distributed version control system";
|
description = "Friendly distributed version control system";
|
||||||
homepage = "https://www.breezy-vcs.org/";
|
homepage = "https://www.breezy-vcs.org/";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2Only;
|
||||||
maintainers = [ maintainers.marsam ];
|
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 { };
|
fastavro = callPackage ../development/python-modules/fastavro { };
|
||||||
|
|
||||||
|
fastbencode = callPackage ../development/python-modules/fastbencode { };
|
||||||
|
|
||||||
fastcache = callPackage ../development/python-modules/fastcache { };
|
fastcache = callPackage ../development/python-modules/fastcache { };
|
||||||
|
|
||||||
fastcore = callPackage ../development/python-modules/fastcore { };
|
fastcore = callPackage ../development/python-modules/fastcore { };
|
||||||
|
|
Loading…
Reference in a new issue