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 buildPythonPackage, 5 fetchFromGitHub, 6 setuptools, 7 - hatchling, 8 cachecontrol, 9 cryptography, 10 google-api-python-client, ··· 13 pyjwt, 14 requests, 15 pytestCheckHook, 16 pytest-localserver, 17 pytest-mock, 18 }: ··· 43 44 nativeCheckInputs = [ 45 pytestCheckHook 46 pytest-localserver 47 pytest-mock 48 ]; 49 50 __darwinAllowLocalNetworking = true; 51 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 - ]; 58 59 meta = { 60 description = "Firebase Admin Python SDK"; 61 homepage = "https://github.com/firebase/firebase-admin-python"; 62 changelog = "https://github.com/firebase/firebase-admin-python/releases/tag/${src.tag}"; 63 license = lib.licenses.asl20; 64 - maintainers = with lib.maintainers; [ jhahn ]; 65 }; 66 }
··· 4 buildPythonPackage, 5 fetchFromGitHub, 6 setuptools, 7 cachecontrol, 8 cryptography, 9 google-api-python-client, ··· 12 pyjwt, 13 requests, 14 pytestCheckHook, 15 + pytest-asyncio, 16 pytest-localserver, 17 pytest-mock, 18 }: ··· 43 44 nativeCheckInputs = [ 45 pytestCheckHook 46 + pytest-asyncio 47 pytest-localserver 48 pytest-mock 49 ]; 50 51 __darwinAllowLocalNetworking = true; 52 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 + ]; 65 66 meta = { 67 description = "Firebase Admin Python SDK"; 68 homepage = "https://github.com/firebase/firebase-admin-python"; 69 changelog = "https://github.com/firebase/firebase-admin-python/releases/tag/${src.tag}"; 70 license = lib.licenses.asl20; 71 + maintainers = with lib.maintainers; [ 72 + jhahn 73 + sarahec 74 + ]; 75 }; 76 }