1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pywebpush,
7 py-vapid,
8}:
9
10buildPythonPackage rec {
11 pname = "ntfy-webpush";
12 version = "0.1.3";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "dschep";
17 repo = "ntfy-webpush";
18 rev = "v${version}";
19 sha256 = "1dxlvq3glf8yjkn1hdk89rx1s4fi9ygg46yn866a9v7a5a83zx2n";
20 };
21
22 postPatch = ''
23 # break dependency loop
24 substituteInPlace setup.py \
25 --replace-fail "'ntfy', " ""
26 '';
27
28 build-system = [ setuptools ];
29
30 dependencies = [
31 pywebpush
32 py-vapid
33 ];
34
35 # no tests, just a script
36 doCheck = false;
37
38 meta = with lib; {
39 description = "Cloudbell webpush notification support for ntfy";
40 homepage = "https://dschep.github.io/ntfy-webpush/";
41 license = licenses.mit;
42 maintainers = [ ];
43 };
44}