Skip to content

Commit 000a25b

Browse files
authored
python3Packages.firebase-admin: test fixes (#407774)
2 parents 7b0400a + 06ac85f commit 000a25b

File tree

1 file changed

+18
-8
lines changed
  • pkgs/development/python-modules/firebase-admin

1 file changed

+18
-8
lines changed

pkgs/development/python-modules/firebase-admin/default.nix

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
buildPythonPackage,
55
fetchFromGitHub,
66
setuptools,
7-
hatchling,
87
cachecontrol,
98
cryptography,
109
google-api-python-client,
@@ -13,6 +12,7 @@
1312
pyjwt,
1413
requests,
1514
pytestCheckHook,
15+
pytest-asyncio,
1616
pytest-localserver,
1717
pytest-mock,
1818
}:
@@ -43,24 +43,34 @@ buildPythonPackage rec {
4343

4444
nativeCheckInputs = [
4545
pytestCheckHook
46+
pytest-asyncio
4647
pytest-localserver
4748
pytest-mock
4849
];
4950

5051
__darwinAllowLocalNetworking = true;
5152

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+
];
5865

5966
meta = {
6067
description = "Firebase Admin Python SDK";
6168
homepage = "https://github.com/firebase/firebase-admin-python";
6269
changelog = "https://github.com/firebase/firebase-admin-python/releases/tag/${src.tag}";
6370
license = lib.licenses.asl20;
64-
maintainers = with lib.maintainers; [ jhahn ];
71+
maintainers = with lib.maintainers; [
72+
jhahn
73+
sarahec
74+
];
6575
};
6676
}

0 commit comments

Comments
 (0)