Files
nixpkgs/pkgs/development/python-modules/ntfy-webpush/default.nix
T
2025-10-27 14:42:39 -07:00

45 lines
811 B
Nix

{
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 = [ ];
};
}