about summary refs log tree commit diff
path: root/pkgs/development/python-modules/simplepush/default.nix
blob: e7461a850b301ec97d1b4368bf87bbd54485d846 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{ lib
, aiohttp
, buildPythonPackage
, cryptography
, fetchFromGitHub
, pythonOlder
, requests
, setuptools
}:

buildPythonPackage rec {
  pname = "simplepush";
  version = "2.2.3";
  format = "pyproject";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "simplepush";
    repo = "simplepush-python";
    rev = "refs/tags/v${version}";
    hash = "sha256-DvDPihhx1rzJN6iQP5rHluplJ1AaN0b/glcd+tZCues=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    aiohttp
    cryptography
    requests
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [
    "simplepush"
  ];

  meta = with lib; {
    description = "Module to send push notifications via Simplepush";
    homepage = "https://github.com/simplepush/simplepush-python";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}