2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiodns,
|
|
|
|
async-timeout,
|
|
|
|
buildPythonPackage,
|
|
|
|
cached-ipaddress,
|
|
|
|
dnspython,
|
|
|
|
fetchFromGitHub,
|
|
|
|
ifaddr,
|
|
|
|
netifaces,
|
|
|
|
pyroute2,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2021-04-08 16:26:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiodiscover";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "2.1.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2022-02-10 20:34:41 +00:00
|
|
|
|
2021-04-08 16:26:57 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bdraco";
|
2024-01-02 11:29:13 +00:00
|
|
|
repo = "aiodiscover";
|
2023-03-08 16:32:21 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-+DcROb6jR0veD3oSKgyJHUi1VtCT54yBKvVqir5y+R4=";
|
2021-04-08 16:26:57 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2021-04-08 16:26:57 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-10-06 18:32:54 +00:00
|
|
|
async-timeout
|
2024-04-21 15:54:59 +00:00
|
|
|
aiodns
|
2024-01-02 11:29:13 +00:00
|
|
|
cached-ipaddress
|
2021-05-20 23:08:51 +00:00
|
|
|
dnspython
|
2024-04-21 15:54:59 +00:00
|
|
|
ifaddr
|
2022-02-10 20:34:41 +00:00
|
|
|
netifaces
|
2021-04-08 16:26:57 +00:00
|
|
|
pyroute2
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-04-15 00:37:46 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Tests require access to /etc/resolv.conf
|
|
|
|
"test_async_discover_hosts"
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "aiodiscover" ];
|
2021-04-08 16:26:57 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module to discover hosts via ARP and PTR lookup";
|
|
|
|
homepage = "https://github.com/bdraco/aiodiscover";
|
2023-03-08 16:32:21 +00:00
|
|
|
changelog = "https://github.com/bdraco/aiodiscover/releases/tag/v${version}";
|
2021-04-08 16:26:57 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|