1{ lib
2, aiohttp
3, buildPythonPackage
4, cryptography
5, fetchFromGitHub
6, pythonOlder
7, requests
8, setuptools
9}:
10
11buildPythonPackage rec {
12 pname = "simplepush";
13 version = "2.2.3";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "simplepush";
20 repo = "simplepush-python";
21 rev = "refs/tags/v${version}";
22 hash = "sha256-DvDPihhx1rzJN6iQP5rHluplJ1AaN0b/glcd+tZCues=";
23 };
24
25 nativeBuildInputs = [
26 setuptools
27 ];
28
29 propagatedBuildInputs = [
30 aiohttp
31 cryptography
32 requests
33 ];
34
35 # Module has no tests
36 doCheck = false;
37
38 pythonImportsCheck = [
39 "simplepush"
40 ];
41
42 meta = with lib; {
43 description = "Module to send push notifications via Simplepush";
44 homepage = "https://github.com/simplepush/simplepush-python";
45 license = licenses.mit;
46 maintainers = with maintainers; [ fab ];
47 };
48}