5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
63 lines
1.2 KiB
Nix
63 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
aiodns,
|
|
async-timeout,
|
|
buildPythonPackage,
|
|
cached-ipaddress,
|
|
dnspython,
|
|
fetchFromGitHub,
|
|
ifaddr,
|
|
netifaces,
|
|
pyroute2,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiodiscover";
|
|
version = "2.1.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bdraco";
|
|
repo = "aiodiscover";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-+DcROb6jR0veD3oSKgyJHUi1VtCT54yBKvVqir5y+R4=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
async-timeout
|
|
aiodns
|
|
cached-ipaddress
|
|
dnspython
|
|
ifaddr
|
|
netifaces
|
|
pyroute2
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# Tests require access to /etc/resolv.conf
|
|
"test_async_discover_hosts"
|
|
];
|
|
|
|
pythonImportsCheck = [ "aiodiscover" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python module to discover hosts via ARP and PTR lookup";
|
|
homepage = "https://github.com/bdraco/aiodiscover";
|
|
changelog = "https://github.com/bdraco/aiodiscover/releases/tag/v${version}";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|