From 0e7d58eb38eea26bc764e7af41e77828507a56dc Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 1 Oct 2024 02:16:56 +0200 Subject: [PATCH] python312Packages.aiodhcpwatcher: fix tests --- pkgs/development/python-modules/aiodhcpwatcher/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/aiodhcpwatcher/default.nix b/pkgs/development/python-modules/aiodhcpwatcher/default.nix index 16989e989305..f7fde19dc644 100644 --- a/pkgs/development/python-modules/aiodhcpwatcher/default.nix +++ b/pkgs/development/python-modules/aiodhcpwatcher/default.nix @@ -39,6 +39,10 @@ buildPythonPackage rec { pytestCheckHook ]; + preCheck = '' + export HOME=$TMPDIR + ''; + pythonImportsCheck = [ "aiodhcpwatcher" ]; meta = with lib; {