Skip to content

Commit 06ac85f

Browse files
committed
python3Packages.firebase-admin: test fixes
1 parent 73b373a commit 06ac85f

File tree

1 file changed

+14
-7
lines changed
  • pkgs/development/python-modules/firebase-admin

1 file changed

+14
-7
lines changed

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

Lines changed: 14 additions & 7 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,18 +43,25 @@ 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";

0 commit comments

Comments
 (0)