From c912bb8bcc558f470e4ec5c25aebb439361c2cbb Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 20 Mar 2024 05:02:24 +0000 Subject: [PATCH 1/2] python312Packages.firebase-messaging: 0.2.0 -> 0.2.1 --- .../python-modules/firebase-messaging/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/firebase-messaging/default.nix b/pkgs/development/python-modules/firebase-messaging/default.nix index bc5a4d1dbdf7..0834111a4845 100644 --- a/pkgs/development/python-modules/firebase-messaging/default.nix +++ b/pkgs/development/python-modules/firebase-messaging/default.nix @@ -27,14 +27,14 @@ buildPythonPackage rec { pname = "firebase-messaging"; - version = "0.2.0"; + version = "0.2.1"; pyproject = true; src = fetchFromGitHub { owner = "sdb9696"; repo = "firebase-messaging"; - rev = version; - hash = "sha256-e3Ny3pnAfOpNERvvtE/jqSDIsM+YwLq/hbw753QpJ6o="; + rev = "refs/tags/${version}"; + hash = "sha256-8e+S12ZMqAmK7OR7O45QsRa0UKQq6cngeaqz2ugi6iY="; }; outputs = [ From dd30a0f963a955765b02034c5faa356f98c2f966 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 20 Mar 2024 07:07:04 +0100 Subject: [PATCH 2/2] python312Packages.firebase-messaging: refactor --- .../firebase-messaging/default.nix | 39 ++++++++----------- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/pkgs/development/python-modules/firebase-messaging/default.nix b/pkgs/development/python-modules/firebase-messaging/default.nix index 0834111a4845..5acd1ff48022 100644 --- a/pkgs/development/python-modules/firebase-messaging/default.nix +++ b/pkgs/development/python-modules/firebase-messaging/default.nix @@ -1,28 +1,21 @@ { lib -, buildPythonPackage -, fetchFromGitHub - -# build-system -, poetry-core - -# dependencies -, cryptography -, http-ece -, protobuf -, requests - -# docs -, sphinx -, sphinxHook -, sphinx-autodoc-typehints -, sphinx-rtd-theme - -# tests , async-timeout -, requests-mock +, buildPythonPackage +, cryptography +, fetchFromGitHub +, http-ece +, poetry-core +, protobuf , pytest-asyncio , pytest-mock , pytestCheckHook +, pythonOlder +, requests +, requests-mock +, sphinx +, sphinx-autodoc-typehints +, sphinx-rtd-theme +, sphinxHook }: buildPythonPackage rec { @@ -30,6 +23,8 @@ buildPythonPackage rec { version = "0.2.1"; pyproject = true; + disabled = pythonOlder "3.8"; + src = fetchFromGitHub { owner = "sdb9696"; repo = "firebase-messaging"; @@ -75,9 +70,9 @@ buildPythonPackage rec { ]; meta = with lib; { - description = "A library to subscribe to GCM/FCM and receive notifications within a python application"; + description = "Library to subscribe to GCM/FCM and receive notifications within a python application"; homepage = "https://github.com/sdb9696/firebase-messaging"; - changelog = "https://github.com/sdb9696/firebase-messaging/blob/${src.rev}/CHANGELOG.rst"; + changelog = "https://github.com/sdb9696/firebase-messaging/releases/tag/${version}"; license = licenses.mit; maintainers = with maintainers; [ ]; };