Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 65 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566{ lib, aiodns, async-timeout, buildPythonPackage, cached-ipaddress, dnspython, fetchFromGitHub, ifaddr, netifaces, poetry-core, pyroute2, pytest-asyncio, pytest-cov-stub, pytestCheckHook, pythonOlder,}:
buildPythonPackage rec { pname = "aiodiscover"; version = "2.7.0"; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub { owner = "bdraco"; repo = "aiodiscover"; tag = "v${version}"; hash = "sha256-zJOsf4oZbZgaiaaPM0HfR0GNwxvGoR6fgkJB5ZFY0O8="; };
build-system = [ poetry-core ];
dependencies = [ async-timeout aiodns cached-ipaddress dnspython ifaddr netifaces pyroute2 ];
nativeCheckInputs = [ pytest-asyncio pytest-cov-stub 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 ]; };}