From 52e1f1876ceacf3c5aea6781ee9b7ab5ac7116bf Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 3 Jun 2026 02:37:02 +0200 Subject: [PATCH] python3Packages.aiodiscover: 3.2.3 -> 3.3.1 https://github.com/bdraco/aiodiscover/releases/tag/v3.3.1 --- .../python-modules/aiodiscover/default.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/aiodiscover/default.nix b/pkgs/development/python-modules/aiodiscover/default.nix index d222735ca5cc..21ca19213e6c 100644 --- a/pkgs/development/python-modules/aiodiscover/default.nix +++ b/pkgs/development/python-modules/aiodiscover/default.nix @@ -5,6 +5,7 @@ cached-ipaddress, fetchFromGitHub, ifaddr, + libredirect, netifaces, poetry-core, pyroute2, @@ -15,14 +16,14 @@ buildPythonPackage (finalAttrs: { pname = "aiodiscover"; - version = "3.2.3"; + version = "3.3.1"; pyproject = true; src = fetchFromGitHub { owner = "bdraco"; repo = "aiodiscover"; tag = "v${finalAttrs.version}"; - hash = "sha256-GivEYa0/i/ufudYSHWQwYRhTEpzmwhlOyPHWH/JpdfU="; + hash = "sha256-QQwEYxflOzNN+J0lCIp+LzwB7m000PgZH8MSsKTUEMw="; }; build-system = [ poetry-core ]; @@ -35,16 +36,19 @@ buildPythonPackage (finalAttrs: { pyroute2 ]; + pythonRelaxDeps = [ "aiodns" ]; + nativeCheckInputs = [ + libredirect.hook pytest-asyncio pytest-cov-stub pytestCheckHook ]; - disabledTests = [ - # Tests require access to /etc/resolv.conf - "test_async_discover_hosts" - ]; + preCheck = '' + echo "nameserver 127.0.0.1" > resolv.conf + export NIX_REDIRECTS=/etc/resolv.conf=$(realpath resolv.conf) + ''; pythonImportsCheck = [ "aiodiscover" ];