From 7a526337ac62346b9cba3ba6840f04641da84ed9 Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Sat, 5 Jul 2025 21:23:03 -0700 Subject: [PATCH] python3Packages.limits: disable flaky test --- pkgs/development/python-modules/limits/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/limits/default.nix b/pkgs/development/python-modules/limits/default.nix index d7f7d55ce343..0b1b5870c642 100644 --- a/pkgs/development/python-modules/limits/default.nix +++ b/pkgs/development/python-modules/limits/default.nix @@ -102,15 +102,19 @@ buildPythonPackage rec { pytestFlagsArray = [ "--benchmark-disable" ]; - disabledTests = [ "test_moving_window_memcached" ]; + disabledTests = [ + "test_moving_window_memcached" + # Flaky: compares time to magic value + "test_sliding_window_counter_previous_window" + ]; pythonImportsCheck = [ "limits" ]; - meta = with lib; { + meta = { description = "Rate limiting using various strategies and storage backends such as redis & memcached"; homepage = "https://github.com/alisaifee/limits"; changelog = "https://github.com/alisaifee/limits/releases/tag/${src.tag}"; - license = licenses.mit; - maintainers = [ ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ ]; }; }