nixpkgs/pkgs/development/python-modules/firebase-messaging/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

90 lines
1.5 KiB
Nix

{
lib,
aiohttp,
aioresponses,
async-timeout,
buildPythonPackage,
cryptography,
fetchFromGitHub,
hatchling,
http-ece,
myst-parser,
protobuf,
pytest-asyncio,
pytest-mock,
pytest-socket,
pytestCheckHook,
requests-mock,
sphinx,
sphinx-autodoc-typehints,
sphinx-rtd-theme,
sphinxHook,
}:
buildPythonPackage rec {
pname = "firebase-messaging";
version = "0.4.5";
pyproject = true;
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 = [ ];
};
}