ntfy-webpush: init at 0.1.3 (#132404)

authored by Sandro and committed by GitHub 23203bff 633a5a6a

+37
+34
pkgs/tools/misc/ntfy-webpush/default.nix
··· 1 + { lib, python3Packages, fetchFromGitHub }: 2 + 3 + python3Packages.buildPythonPackage rec { 4 + pname = "ntfy-webpush"; 5 + version = "0.1.3"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "dschep"; 9 + repo = "ntfy-webpush"; 10 + rev = "v${version}"; 11 + sha256 = "1dxlvq3glf8yjkn1hdk89rx1s4fi9ygg46yn866a9v7a5a83zx2n"; 12 + }; 13 + 14 + postPatch = '' 15 + # break dependency loop 16 + substituteInPlace setup.py \ 17 + --replace "'ntfy', " "" 18 + ''; 19 + 20 + propagatedBuildInputs = with python3Packages; [ 21 + pywebpush 22 + py-vapid 23 + ]; 24 + 25 + # no tests, just a script 26 + doCheck = false; 27 + 28 + meta = with lib; { 29 + description = "cloudbell webpush notification support for ntfy"; 30 + homepage = "https://dschep.github.io/ntfy-webpush/"; 31 + license = licenses.mit; 32 + maintainers = with maintainers; [ SuperSandro2000 ]; 33 + }; 34 + }
+1
pkgs/tools/misc/ntfy/default.nix
··· 22 22 psutil 23 23 matrix-client 24 24 dbus-python 25 + ntfy-webpush 25 26 ]; 26 27 27 28 checkPhase = ''
+2
pkgs/top-level/python-packages.nix
··· 4901 4901 4902 4902 nsapi = callPackage ../development/python-modules/nsapi { }; 4903 4903 4904 + ntfy-webpush = callPackage ../tools/misc/ntfy-webpush { }; 4905 + 4904 4906 ntc-templates = callPackage ../development/python-modules/ntc-templates { }; 4905 4907 4906 4908 ntlm-auth = callPackage ../development/python-modules/ntlm-auth { };