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

68 lines
1.6 KiB
Nix
Raw Normal View History

2024-11-02 22:13:54 +01:00
{
lib,
python3Packages,
fetchFromGitHub,
bgpq4,
}:
python3Packages.buildPythonPackage rec {
pname = "arouteserver";
2025-01-10 18:31:51 +00:00
version = "1.23.2";
2024-11-02 22:13:54 +01:00
pyproject = true;
src = fetchFromGitHub {
owner = "pierky";
repo = "arouteserver";
2025-01-10 18:31:51 +00:00
tag = "v${version}";
hash = "sha256-qPU1eBEAlF6wcI1KEBtSuf0a+pKsqoCN0mtAPjIr+0c=";
2024-11-02 22:13:54 +01:00
};
postPatch = ''
substituteInPlace tests/static/test_irr_queries_failover.py --replace-fail 'bgpq4 -h' '${lib.getExe bgpq4} -h'
substituteInPlace pierky/arouteserver/builder.py pierky/arouteserver/config/program.py tests/static/test_cfg_program.py \
--replace-fail '"bgpq4"' '"${lib.getExe bgpq4}"'
'';
build-system = with python3Packages; [ setuptools ];
pythonRelaxDeps = [ "packaging" ];
2024-11-02 22:13:54 +01:00
dependencies = with python3Packages; [
aggregate6
jinja2
pyyaml
requests
packaging
urllib3
setuptools
];
nativeCheckInputs = with python3Packages; [
pytestCheckHook
requests-mock
];
pythonImportsCheck = [
"pierky"
"pierky.arouteserver"
];
enabledTestPaths = [ "tests/static" ];
2024-11-02 22:13:54 +01:00
disabledTests = [
# disable copyright year check of files
"current_year"
];
2024-11-02 22:13:54 +01:00
meta = {
description = "Automatically build (and test) feature-rich configurations for BGP route servers";
mainProgram = "arouteserver";
homepage = "https://github.com/pierky/arouteserver";
changelog = "https://github.com/pierky/arouteserver/blob/v${version}/CHANGES.rst";
license = with lib.licenses; [ gpl3Only ];
maintainers = with lib.maintainers; [ marcel ];
teams = [ lib.teams.wdz ];
};
}