about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pyfcm/default.nix
blob: 997c9e1863865bd9305b7d604ece5ad2c3d17aec (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
{ lib
, fetchFromGitHub
, buildPythonPackage
, requests
}:

buildPythonPackage rec {
  pname = "pyfcm";
  version = "1.4.8";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "olucurious";
    repo = "pyfcm";
    rev = version;
    sha256 = "15q6p21wsjm75ccmzcsgad1w9fgk6189hbrp7pawpxl7l3qxn2p7";
  };

  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 ];
  };
}