From af2aafc5ccd8f9a9ebdbbe9cc7ecc42f2822eef2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Hahn?= Date: Sun, 19 Jan 2025 19:19:12 +0100 Subject: [PATCH 1/2] maintainers: add jhahn --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 8b1cbbb11037..a7d8cbd35772 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -10730,6 +10730,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"; From 8cae4b0d6959c147747ec6939e24ef256046b5fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Hahn?= Date: Sun, 19 Jan 2025 19:21:33 +0100 Subject: [PATCH 2/2] python3Packages.firebase-admin: init at 6.6.0 --- .../python-modules/firebase-admin/default.nix | 66 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 68 insertions(+) create mode 100644 pkgs/development/python-modules/firebase-admin/default.nix diff --git a/pkgs/development/python-modules/firebase-admin/default.nix b/pkgs/development/python-modules/firebase-admin/default.nix new file mode 100644 index 000000000000..f1dfe416bed5 --- /dev/null +++ b/pkgs/development/python-modules/firebase-admin/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5a8874b6eeb7..8e75b5b4362c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4615,6 +4615,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 { };