From 27fb6cc34957b6c4d033a773fe6cc77d85c03321 Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Thu, 6 Nov 2025 15:45:52 -0800 Subject: [PATCH 1/2] python3Packages.func-timeout: remove 'with lib;' --- pkgs/development/python-modules/func-timeout/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/func-timeout/default.nix b/pkgs/development/python-modules/func-timeout/default.nix index 33446197f52d..836ac9b6718d 100644 --- a/pkgs/development/python-modules/func-timeout/default.nix +++ b/pkgs/development/python-modules/func-timeout/default.nix @@ -20,10 +20,10 @@ buildPythonPackage rec { pythonImportsCheck = [ "func_timeout" ]; - meta = with lib; { + meta = { description = "Allows you to specify timeouts when calling any existing function. Also provides support for stoppable-threads"; homepage = "https://github.com/kata198/func_timeout"; - license = licenses.lgpl3Only; + license = lib.licenses.lgpl3Only; maintainers = [ ]; }; } From 3914320ec01900e4fa616f1a352d3a5eca77e372 Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Thu, 6 Nov 2025 15:50:53 -0800 Subject: [PATCH 2/2] python3Packages.func-timeout: disable timing-sensitive tests that fail under load --- pkgs/development/python-modules/func-timeout/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/func-timeout/default.nix b/pkgs/development/python-modules/func-timeout/default.nix index 836ac9b6718d..8b6a09149f30 100644 --- a/pkgs/development/python-modules/func-timeout/default.nix +++ b/pkgs/development/python-modules/func-timeout/default.nix @@ -18,6 +18,15 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; + disabledTests = [ + # Calculates the amount of time the machine slept but doesn't account for heavy loads + "test_retry" + "test_funcSetTimeout" + "test_funcSetTimeCalculate" + "test_funcSetTimeCalculateWithOverride" + "test_setFuncTimeoutetry" + ]; + pythonImportsCheck = [ "func_timeout" ]; meta = {