diff options
author | figsoda <figsoda@pm.me> | 2023-05-22 10:53:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-22 10:53:41 -0400 |
commit | 19120c985d08044e625062ea1074c8c60bdaf8e1 (patch) | |
tree | 6d5abd0773729c68c880a7009eba92a3b5e9f093 | |
parent | 6dd2eae87fb62a468ca9967d63b45fd184c828a0 (diff) | |
parent | d24f37524d565a169c119a319324a411165a868f (diff) |
Merge pull request #233403 from mweinelt/exabgp
exabgp: init at 4.2.21
-rw-r--r-- | pkgs/servers/networking/exabgp/default.nix | 45 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/servers/networking/exabgp/default.nix b/pkgs/servers/networking/exabgp/default.nix new file mode 100644 index 0000000000000..fa1b032a3c5ef --- /dev/null +++ b/pkgs/servers/networking/exabgp/default.nix @@ -0,0 +1,45 @@ +{ lib +, python3 +, fetchFromGitHub +, exabgp +, testers +}: + +python3.pkgs.buildPythonApplication rec { + pname = "exabgp"; + version = "4.2.21"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "Exa-Networks"; + repo = "exabgp"; + rev = "refs/tags/${version}"; + hash = "sha256-NlGE3yHUXPdxAMGhSaXMT2P1e7P+4AWg4lReP3f6Zx8="; + }; + + nativeBuildInputs = with python3.pkgs; [ + setuptools + ]; + + pythonImportsCheck = [ + "exabgp" + ]; + + nativeCheckInputs = with python3.pkgs; [ + pytestCheckHook + ]; + + passthru.tests = { + version = testers.testVersion { + package = exabgp; + }; + }; + + meta = with lib; { + description = "The BGP swiss army knife of networking"; + homepage = "https://github.com/Exa-Networks/exabgp"; + changelog = "https://github.com/Exa-Networks/exabgp/blob/${src.rev}/CHANGELOG.rst"; + license = licenses.bsd3; + maintainers = with maintainers; [ hexa raitobezarius ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5a26504972abf..bc4cfe21f50fd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -25283,6 +25283,8 @@ with pkgs; eventstore = callPackage ../servers/nosql/eventstore { }; + exabgp = callPackage ../servers/networking/exabgp { }; + exim = callPackage ../servers/mail/exim { }; fastnetmon-advanced = callPackage ../servers/fastnetmon-advanced { }; |