summary refs log tree commit diff
path: root/pkgs/development/python-modules/push-receiver/default.nix
blob: fe0582f0962e576f3e05f6481c1afde7c20973c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ buildPythonPackage
, fetchPypi
, lib
, appdirs
, http-ece
, oscrypto
, protobuf
}:

buildPythonPackage rec {
  pname = "push-receiver";
  version = "0.1.1";

  src = fetchPypi {
    inherit version;
    pname = "push_receiver";
    sha256 = "sha256-Tknmra39QfA+OgrRxzKDLbkPucW8zgdHqz5FGQnzYOw=";
  };

  propagatedBuildInputs = [
    appdirs # required for running the bundled example
    http-ece # required for listening for new message
    oscrypto
    protobuf
  ];

  pythonImportsCheck = [ "push_receiver" ];

  meta = with lib; {
    homepage = "https://github.com/Francesco149/push_receiver";
    description = "Subscribe to GCM/FCM and receive notifications";
    license = licenses.unlicense;
    maintainers = with maintainers; [ veehaitch ];
  };
}