biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / misc / ntfy / webpush.nix
bloba9c87d8738907c9ecfc1afae2f992f1fb25ecdba
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pywebpush
5 , py-vapid
6 }:
8 buildPythonPackage rec {
9   pname = "ntfy-webpush";
10   version = "0.1.3";
12   src = fetchFromGitHub {
13     owner = "dschep";
14     repo = "ntfy-webpush";
15     rev = "v${version}";
16     sha256 = "1dxlvq3glf8yjkn1hdk89rx1s4fi9ygg46yn866a9v7a5a83zx2n";
17   };
19   postPatch = ''
20     # break dependency loop
21     substituteInPlace setup.py \
22       --replace "'ntfy', " ""
23   '';
25   propagatedBuildInputs = [
26     pywebpush
27     py-vapid
28   ];
30   # no tests, just a script
31   doCheck = false;
33   meta = with lib; {
34     description = "cloudbell webpush notification support for ntfy";
35     homepage = "https://dschep.github.io/ntfy-webpush/";
36     license = licenses.mit;
37     maintainers = [ ];
38   };