2023-12-09 17:44:57 +01:00
|
|
|
{ lib
|
2024-03-20 07:07:04 +01:00
|
|
|
, async-timeout
|
2023-12-09 17:44:57 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, cryptography
|
2024-03-20 07:07:04 +01:00
|
|
|
, fetchFromGitHub
|
2023-12-09 17:44:57 +01:00
|
|
|
, http-ece
|
2024-03-20 07:07:04 +01:00
|
|
|
, poetry-core
|
2023-12-09 17:44:57 +01:00
|
|
|
, protobuf
|
2024-03-20 07:07:04 +01:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2023-12-09 17:44:57 +01:00
|
|
|
, requests
|
2024-03-20 07:07:04 +01:00
|
|
|
, requests-mock
|
2023-12-09 17:44:57 +01:00
|
|
|
, sphinx
|
|
|
|
, sphinx-autodoc-typehints
|
|
|
|
, sphinx-rtd-theme
|
2024-03-20 07:07:04 +01:00
|
|
|
, sphinxHook
|
2023-12-09 17:44:57 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "firebase-messaging";
|
2024-03-20 06:02:24 +01:00
|
|
|
version = "0.2.1";
|
2023-12-09 17:44:57 +01:00
|
|
|
pyproject = true;
|
|
|
|
|
2024-03-20 07:07:04 +01:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
2023-12-09 17:44:57 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sdb9696";
|
|
|
|
repo = "firebase-messaging";
|
2024-03-20 06:02:24 +01:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-8e+S12ZMqAmK7OR7O45QsRa0UKQq6cngeaqz2ugi6iY=";
|
2023-12-09 17:44:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"doc"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
sphinxHook
|
|
|
|
] ++ passthru.optional-dependencies.docs;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cryptography
|
|
|
|
http-ece
|
|
|
|
protobuf
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
|
|
|
docs = [
|
|
|
|
sphinx
|
|
|
|
sphinx-autodoc-typehints
|
|
|
|
sphinx-rtd-theme
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"firebase_messaging"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
async-timeout
|
|
|
|
requests-mock
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-03-20 07:07:04 +01:00
|
|
|
description = "Library to subscribe to GCM/FCM and receive notifications within a python application";
|
2023-12-09 17:44:57 +01:00
|
|
|
homepage = "https://github.com/sdb9696/firebase-messaging";
|
2024-03-20 07:07:04 +01:00
|
|
|
changelog = "https://github.com/sdb9696/firebase-messaging/releases/tag/${version}";
|
2023-12-09 17:44:57 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|