Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / aiodiscover / default.nix
blob90dcca8a4c2c82334aefc3b220247ae68facb72a
2   lib,
3   aiodns,
4   async-timeout,
5   buildPythonPackage,
6   cached-ipaddress,
7   dnspython,
8   fetchFromGitHub,
9   ifaddr,
10   netifaces,
11   pyroute2,
12   pytest-asyncio,
13   pytestCheckHook,
14   pythonOlder,
15   setuptools,
18 buildPythonPackage rec {
19   pname = "aiodiscover";
20   version = "2.1.0";
21   pyproject = true;
23   disabled = pythonOlder "3.7";
25   src = fetchFromGitHub {
26     owner = "bdraco";
27     repo = "aiodiscover";
28     rev = "refs/tags/v${version}";
29     hash = "sha256-+DcROb6jR0veD3oSKgyJHUi1VtCT54yBKvVqir5y+R4=";
30   };
32   nativeBuildInputs = [ setuptools ];
34   propagatedBuildInputs = [
35     async-timeout
36     aiodns
37     cached-ipaddress
38     dnspython
39     ifaddr
40     netifaces
41     pyroute2
42   ];
44   nativeCheckInputs = [
45     pytest-asyncio
46     pytestCheckHook
47   ];
49   disabledTests = [
50     # Tests require access to /etc/resolv.conf
51     "test_async_discover_hosts"
52   ];
54   pythonImportsCheck = [ "aiodiscover" ];
56   meta = with lib; {
57     description = "Python module to discover hosts via ARP and PTR lookup";
58     homepage = "https://github.com/bdraco/aiodiscover";
59     changelog = "https://github.com/bdraco/aiodiscover/releases/tag/v${version}";
60     license = with licenses; [ asl20 ];
61     maintainers = with maintainers; [ fab ];
62   };