a19cd4ffb1
This reverts commit65a333600d. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 /758551e458
49 lines
1015 B
Nix
49 lines
1015 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
py-radix-sr,
|
|
pytestCheckHook,
|
|
mock,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aggregate6";
|
|
version = "1.0.12";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "job";
|
|
repo = "aggregate6";
|
|
rev = version;
|
|
hash = "sha256-tBo9LSmEu/0KPSeg17dlh7ngUvP9GyW6b01qqpr5Bx0=";
|
|
};
|
|
|
|
patches = [ ./0001-setup-remove-nose-coverage.patch ];
|
|
|
|
# py-radix-sr is a fork, with fixes
|
|
postPatch = ''
|
|
substituteInPlace setup.py --replace-fail 'py-radix==0.10.0' 'py-radix-sr'
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ py-radix-sr ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
mock
|
|
];
|
|
|
|
pythonImportsCheck = [ "aggregate6" ];
|
|
|
|
meta = {
|
|
description = "IPv4 and IPv6 prefix aggregation tool";
|
|
mainProgram = "aggregate6";
|
|
homepage = "https://github.com/job/aggregate6";
|
|
license = with lib.licenses; [ bsd2 ];
|
|
maintainers = lib.teams.wdz.members ++ (with lib.maintainers; [ marcel ]);
|
|
};
|
|
}
|