2020-02-09 09:25:08 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyfcm";
|
|
|
|
version = "1.4.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "olucurious";
|
|
|
|
repo = "pyfcm";
|
2020-11-01 22:39:49 +00:00
|
|
|
rev = version;
|
2020-02-09 09:25:08 +00:00
|
|
|
sha256 = "0aj10yvjsc04j15zbn403i83j7ra5yg35pi3ywkyakk8n1s0s3qg";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
|
|
|
|
# pyfcm's unit testing suite requires network access
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python client for FCM - Firebase Cloud Messaging (Android, iOS and Web)";
|
|
|
|
homepage = "https://github.com/olucurious/pyfcm";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ldelelis ];
|
|
|
|
};
|
|
|
|
}
|