472aeafc57
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
91 lines
1.6 KiB
Nix
91 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
aioresponses,
|
|
async-timeout,
|
|
buildPythonPackage,
|
|
cryptography,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
http-ece,
|
|
myst-parser,
|
|
protobuf,
|
|
pytest-asyncio,
|
|
pytest-mock,
|
|
pytest-socket,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
requests-mock,
|
|
sphinx,
|
|
sphinx-autodoc-typehints,
|
|
sphinx-rtd-theme,
|
|
sphinxHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "firebase-messaging";
|
|
version = "0.4.4";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sdb9696";
|
|
repo = "firebase-messaging";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-duUqDioIBo2QQP/4VGGwklDt4F8pDm/sHrvOx4wcTWQ=";
|
|
};
|
|
|
|
outputs = [
|
|
"out"
|
|
"doc"
|
|
];
|
|
|
|
build-system = [
|
|
hatchling
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
sphinxHook
|
|
] ++ optional-dependencies.docs;
|
|
|
|
pythonRelaxDeps = [
|
|
"http-ece"
|
|
];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
cryptography
|
|
http-ece
|
|
protobuf
|
|
];
|
|
|
|
optional-dependencies = {
|
|
docs = [
|
|
myst-parser
|
|
sphinx
|
|
sphinx-autodoc-typehints
|
|
sphinx-rtd-theme
|
|
];
|
|
};
|
|
|
|
pythonImportsCheck = [ "firebase_messaging" ];
|
|
|
|
nativeCheckInputs = [
|
|
aioresponses
|
|
async-timeout
|
|
requests-mock
|
|
pytest-asyncio
|
|
pytest-mock
|
|
pytest-socket
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = with lib; {
|
|
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/releases/tag/${version}";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|