Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / firebase-messaging / default.nix
blob5acd1ff48022510f7335ad69afcb1f444c189ae6
1 { lib
2 , async-timeout
3 , buildPythonPackage
4 , cryptography
5 , fetchFromGitHub
6 , http-ece
7 , poetry-core
8 , protobuf
9 , pytest-asyncio
10 , pytest-mock
11 , pytestCheckHook
12 , pythonOlder
13 , requests
14 , requests-mock
15 , sphinx
16 , sphinx-autodoc-typehints
17 , sphinx-rtd-theme
18 , sphinxHook
21 buildPythonPackage rec {
22   pname = "firebase-messaging";
23   version = "0.2.1";
24   pyproject = true;
26   disabled = pythonOlder "3.8";
28   src = fetchFromGitHub {
29     owner = "sdb9696";
30     repo = "firebase-messaging";
31     rev = "refs/tags/${version}";
32     hash = "sha256-8e+S12ZMqAmK7OR7O45QsRa0UKQq6cngeaqz2ugi6iY=";
33   };
35   outputs = [
36     "out"
37     "doc"
38   ];
40   nativeBuildInputs = [
41     poetry-core
42     sphinxHook
43   ] ++ passthru.optional-dependencies.docs;
45   propagatedBuildInputs = [
46     cryptography
47     http-ece
48     protobuf
49     requests
50   ];
52   passthru.optional-dependencies = {
53     docs = [
54       sphinx
55       sphinx-autodoc-typehints
56       sphinx-rtd-theme
57     ];
58   };
60   pythonImportsCheck = [
61     "firebase_messaging"
62   ];
64   nativeCheckInputs = [
65     async-timeout
66     requests-mock
67     pytest-asyncio
68     pytest-mock
69     pytestCheckHook
70   ];
72   meta = with lib; {
73     description = "Library to subscribe to GCM/FCM and receive notifications within a python application";
74     homepage = "https://github.com/sdb9696/firebase-messaging";
75     changelog = "https://github.com/sdb9696/firebase-messaging/releases/tag/${version}";
76     license = licenses.mit;
77     maintainers = with maintainers; [ ];
78   };