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