File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed
pkgs/by-name/ar/arouteserver Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ python3Packages ,
4+ fetchFromGitHub ,
5+ bgpq4 ,
6+ } :
7+
8+ python3Packages . buildPythonPackage rec {
9+ pname = "arouteserver" ;
10+ version = "1.23.1" ;
11+ pyproject = true ;
12+
13+ src = fetchFromGitHub {
14+ owner = "pierky" ;
15+ repo = "arouteserver" ;
16+ rev = "v${ version } " ;
17+ hash = "sha256-EZOBMDBsxbuVzzjQWU8V4n3gcLkRQxCq2eVK/Tyko4E=" ;
18+ } ;
19+
20+ postPatch = ''
21+ substituteInPlace tests/static/test_irr_queries_failover.py --replace-fail 'bgpq4 -h' '${ lib . getExe bgpq4 } -h'
22+
23+ substituteInPlace pierky/arouteserver/builder.py pierky/arouteserver/config/program.py tests/static/test_cfg_program.py \
24+ --replace-fail '"bgpq4"' '"${ lib . getExe bgpq4 } "'
25+ '' ;
26+
27+ build-system = with python3Packages ; [ setuptools ] ;
28+
29+ dependencies = with python3Packages ; [
30+ aggregate6
31+ jinja2
32+ pyyaml
33+ requests
34+ packaging
35+ urllib3
36+ setuptools
37+ ] ;
38+
39+ nativeCheckInputs = with python3Packages ; [
40+ pytestCheckHook
41+ requests-mock
42+ ] ;
43+
44+ pythonImportsCheck = [
45+ "pierky"
46+ "pierky.arouteserver"
47+ ] ;
48+
49+ pytestFlagsArray = [ "tests/static" ] ;
50+
51+ meta = {
52+ description = "Automatically build (and test) feature-rich configurations for BGP route servers" ;
53+ mainProgram = "arouteserver" ;
54+ homepage = "https://github.com/pierky/arouteserver" ;
55+ changelog = "https://github.com/pierky/arouteserver/blob/v${ version } /CHANGES.rst" ;
56+ license = with lib . licenses ; [ gpl3Only ] ;
57+ maintainers = lib . teams . wdz . members ++ ( with lib . maintainers ; [ marcel ] ) ;
58+ } ;
59+ }
You can’t perform that action at this time.
0 commit comments