Files
nixpkgs/pkgs/development/python-modules/firebase-admin/default.nix
T
2025-03-17 17:22:20 +00:00

67 lines
1.4 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
setuptools,
hatchling,
cachecontrol,
cryptography,
google-api-python-client,
google-cloud-firestore,
google-cloud-storage,
pyjwt,
requests,
pytestCheckHook,
pytest-localserver,
pytest-mock,
}:
buildPythonPackage rec {
pname = "firebase-admin";
version = "6.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "firebase";
repo = "firebase-admin-python";
tag = "v${version}";
hash = "sha256-MQFGgWQ2YgAii+IVP/78JKU1Q7QgEvMXz5WvXGoyw7g=";
};
build-system = [ setuptools ];
dependencies = [
cachecontrol
cryptography
google-api-python-client
google-cloud-firestore
google-cloud-storage
pyjwt
requests
];
nativeCheckInputs = [
pytestCheckHook
pytest-localserver
pytest-mock
];
__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"
];
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 ];
};
}