depot/third_party/nixpkgs/pkgs/development/python-modules/firebase-messaging/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

82 lines
1.5 KiB
Nix

{
lib,
aiohttp,
aioresponses,
async-timeout,
buildPythonPackage,
cryptography,
fetchFromGitHub,
http-ece,
poetry-core,
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.3.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "sdb9696";
repo = "firebase-messaging";
rev = "refs/tags/${version}";
hash = "sha256-pZpnekJ11yx3L8l56vZOa4uS+jJMxUkYODgNAqysVeY=";
};
outputs = [
"out"
"doc"
];
nativeBuildInputs = [
poetry-core
sphinxHook
] ++ passthru.optional-dependencies.docs;
propagatedBuildInputs = [
aiohttp
cryptography
http-ece
protobuf
];
passthru.optional-dependencies = {
docs = [
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 = [ ];
};
}