blob: 0aed4f2c10b83e9d33244c52d76421d66037f32d (
plain)
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pywebpush,
py-vapid,
}:
buildPythonPackage rec {
pname = "ntfy-webpush";
version = "0.1.3";
pyproject = true;
src = fetchFromGitHub {
owner = "dschep";
repo = "ntfy-webpush";
tag = "v${version}";
hash = "sha256-VvQ/kCrq7KSMQdYb8p5P0REdek5oNhjslB45+gbetLc=";
};
postPatch = ''
# break dependency loop
substituteInPlace setup.py \
--replace-fail "'ntfy', " ""
'';
build-system = [ setuptools ];
dependencies = [
pywebpush
py-vapid
];
# no tests, just a script
doCheck = false;
meta = {
description = "Cloudbell webpush notification support for ntfy";
homepage = "https://dschep.github.io/ntfy-webpush/";
license = lib.licenses.mit;
maintainers = [ ];
};
}
|