Skip to content

Commit

Permalink
python312Packages.firebase-admin: init at 6.6.0 (NixOS#375130)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage authored Feb 5, 2025
2 parents 355d787 + 8cae4b0 commit dd1519d
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10854,6 +10854,12 @@
githubId = 6445082;
name = "Joseph Lukasik";
};
jhahn = {
email = "mail.jhahn@gmail.com";
github = "jrhahn";
githubId = 56772267;
name = "Jürgen Hahn";
};
jhh = {
email = "jeff@j3ff.io";
github = "jhh";
Expand Down
66 changes: 66 additions & 0 deletions pkgs/development/python-modules/firebase-admin/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
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.6.0";
pyproject = true;

src = fetchFromGitHub {
owner = "firebase";
repo = "firebase-admin-python";
tag = "v${version}";
hash = "sha256-BjYo/H5CBII9KjefhGUiEeLKBAAsnQABX+21R4pR8wE=";
};

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/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ jhahn ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4638,6 +4638,8 @@ self: super: with self; {

firebase-messaging = callPackage ../development/python-modules/firebase-messaging { };

firebase-admin = callPackage ../development/python-modules/firebase-admin { };

fireflyalgorithm = callPackage ../development/python-modules/fireflyalgorithm { };

firetv = callPackage ../development/python-modules/firetv { };
Expand Down

0 comments on commit dd1519d

Please sign in to comment.