diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-05-22 14:42:19 +0200 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-05-22 14:42:19 +0200 |
commit | f752ef56b1e79d3d6e461c92b29990158dd2374f (patch) | |
tree | 884638ff510e5b557d5c68593f6c294fd66912ca /pkgs/servers | |
parent | f491fc656a0b48c40e0312d559380d4ad46c4447 (diff) |
exabgp: init at 4.2.21
The BGP swiss army knife of networking
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/networking/exabgp/default.nix | 45 |
1 files changed, 45 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..105a943325b4c --- /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 ]; + }; +} |