python3Packages.firebase-admin: test fixes (#407774)

authored by Gaétan Lepage and committed by GitHub 000a25b3 7b0400a7

+18 -8
+18 -8
pkgs/development/python-modules/firebase-admin/default.nix
··· 4 4 buildPythonPackage, 5 5 fetchFromGitHub, 6 6 setuptools, 7 - hatchling, 8 7 cachecontrol, 9 8 cryptography, 10 9 google-api-python-client, ··· 13 12 pyjwt, 14 13 requests, 15 14 pytestCheckHook, 15 + pytest-asyncio, 16 16 pytest-localserver, 17 17 pytest-mock, 18 18 }: ··· 43 43 44 44 nativeCheckInputs = [ 45 45 pytestCheckHook 46 + pytest-asyncio 46 47 pytest-localserver 47 48 pytest-mock 48 49 ]; 49 50 50 51 __darwinAllowLocalNetworking = true; 51 52 52 - disabledTests = [ 53 - # Flaky (AssertionError) 54 - # > assert delta <= timedelta(seconds=15) 55 - # E assert datetime.timedelta(seconds=17, microseconds=28239) <= datetime.timedelta(seconds=15) 56 - "test_task_options" 57 - ]; 53 + disabledTests = 54 + [ 55 + # Flaky (AssertionError) 56 + # > assert delta <= timedelta(seconds=15) 57 + # E assert datetime.timedelta(seconds=17, microseconds=28239) <= datetime.timedelta(seconds=15) 58 + "test_task_options" 59 + ] 60 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 61 + # Flaky / timing sensitive 62 + "test_expired_cookie_with_tolerance" 63 + "test_expired_token_with_tolerance" 64 + ]; 58 65 59 66 meta = { 60 67 description = "Firebase Admin Python SDK"; 61 68 homepage = "https://github.com/firebase/firebase-admin-python"; 62 69 changelog = "https://github.com/firebase/firebase-admin-python/releases/tag/${src.tag}"; 63 70 license = lib.licenses.asl20; 64 - maintainers = with lib.maintainers; [ jhahn ]; 71 + maintainers = with lib.maintainers; [ 72 + jhahn 73 + sarahec 74 + ]; 65 75 }; 66 76 }