1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
setuptools,
cachecontrol,
cryptography,
google-api-python-client,
google-cloud-firestore,
google-cloud-storage,
h2,
httpx,
pyjwt,
requests,
respx,
pytestCheckHook,
pytest-asyncio,
pytest-localserver,
pytest-mock,
}:
buildPythonPackage rec {
pname = "firebase-admin";
version = "7.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "firebase";
repo = "firebase-admin-python";
tag = "v${version}";
hash = "sha256-xlKrtH8f9UzY9OGYrpNH0i2OAlcxTrpzPC5JEuL8plM=";
};
build-system = [ setuptools ];
patches = [
(fetchpatch {
name = "remove-asyncio-default-fixture-loop-scope.patch";
url = "https://github.com/firebase/firebase-admin-python/commit/de713d21da83b1f50c24c5a23132ffc442700448.patch";
hash = "sha256-D4edbVHMejpnSmIYblrq9E5+YdbBzLe/VWbObvMNGdk=";
})
];
dependencies = [
cachecontrol
cryptography
google-api-python-client
google-cloud-firestore
google-cloud-storage
httpx
pyjwt
requests
];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
pytest-localserver
pytest-mock
h2
respx
];
__darwinAllowLocalNetworking = true;
disabledTests = [
# Flaky (AssertionError)
# > assert delta <= timedelta(seconds=15)
# E assert datetime.timedelta(seconds=17, microseconds=28239) <= datetime.timedelta(seconds=15)
"test_task_options"
# Flaky / timing sensitive
"test_expired_cookie_with_tolerance"
"test_expired_token_with_tolerance"
];
meta = {
description = "Firebase Admin Python SDK";
homepage = "https://github.com/firebase/firebase-admin-python";
changelog = "https://github.com/firebase/firebase-admin-python/releases/tag/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
jhahn
sarahec
];
};
}
|