Files
nixpkgs/pkgs/development/python-modules/firebase-messaging/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

94 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.5";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "sdb9696";
repo = "firebase-messaging";
tag = version;
hash = "sha256-O1A+hGEhnNcvdXw5QJx+3zYKB+m36N0Ge0XB6cZ6930=";
};
outputs = [
"out"
"doc"
];
build-system = [
hatchling
];
nativeBuildInputs = [
sphinxHook
]
++ optional-dependencies.docs;
pythonRelaxDeps = [
"http-ece"
"protobuf"
];
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 = {
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/${src.tag}";
license = lib.licenses.mit;
maintainers = [ ];
};
}