2021-07-14 22:03:04 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, lib
|
|
|
|
, appdirs
|
|
|
|
, http-ece
|
|
|
|
, oscrypto
|
|
|
|
, protobuf
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "push-receiver";
|
|
|
|
version = "0.1.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "push_receiver";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-Tknmra39QfA+OgrRxzKDLbkPucW8zgdHqz5FGQnzYOw=";
|
2021-07-14 22:03:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|