dput-ng: fix eval (#364540)
[NixPkgs.git] / pkgs / by-name / ex / exabgp / package.nix
blob7d8f4917a711f75bc48595b0aa507684e97a8b8e
2   lib,
3   python3,
4   fetchFromGitHub,
5   exabgp,
6   testers,
7 }:
9 python3.pkgs.buildPythonApplication rec {
10   pname = "exabgp";
11   version = "4.2.22";
12   format = "pyproject";
14   src = fetchFromGitHub {
15     owner = "Exa-Networks";
16     repo = "exabgp";
17     rev = "refs/tags/${version}";
18     hash = "sha256-PrdCAmefKCBmbBFp04KiQGSsZZ4KNFk/ZtMedh9oow4=";
19   };
21   nativeBuildInputs = with python3.pkgs; [
22     setuptools
23   ];
25   pythonImportsCheck = [
26     "exabgp"
27   ];
29   nativeCheckInputs = with python3.pkgs; [
30     pytestCheckHook
31   ];
33   passthru.tests = {
34     version = testers.testVersion {
35       package = exabgp;
36     };
37   };
39   meta = with lib; {
40     description = "BGP swiss army knife of networking";
41     homepage = "https://github.com/Exa-Networks/exabgp";
42     changelog = "https://github.com/Exa-Networks/exabgp/blob/${src.rev}/CHANGELOG.rst";
43     license = licenses.bsd3;
44     maintainers = with maintainers; [
45       hexa
46       raitobezarius
47     ];
48   };