1{
2 buildPythonPackage,
3 fetchPypi,
4 lib,
5 appdirs,
6 http-ece,
7 oscrypto,
8 protobuf,
9}:
10
11buildPythonPackage rec {
12 pname = "push-receiver";
13 version = "0.1.1";
14 format = "setuptools";
15
16 src = fetchPypi {
17 inherit version;
18 pname = "push_receiver";
19 hash = "sha256-Tknmra39QfA+OgrRxzKDLbkPucW8zgdHqz5FGQnzYOw=";
20 };
21
22 propagatedBuildInputs = [
23 appdirs # required for running the bundled example
24 http-ece # required for listening for new message
25 oscrypto
26 protobuf
27 ];
28
29 pythonImportsCheck = [ "push_receiver" ];
30
31 meta = with lib; {
32 homepage = "https://github.com/Francesco149/push_receiver";
33 description = "Subscribe to GCM/FCM and receive notifications";
34 license = licenses.unlicense;
35 maintainers = with maintainers; [ veehaitch ];
36 };
37}