2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
django,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
pywebpush,
|
|
|
|
setuptools-scm,
|
2023-10-19 13:55:26 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-webpush";
|
|
|
|
version = "0.3.4";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "safwanrahman";
|
|
|
|
repo = "django-webpush";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-Mwp53apdPpBcn7VfDbyDlvLAVAG65UUBhT0w9OKjKbU=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonRelaxDeps = [ "pywebpush" ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
build-system = [
|
2023-10-19 13:55:26 +00:00
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2023-10-19 13:55:26 +00:00
|
|
|
django
|
|
|
|
pywebpush
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
# Module has no tests
|
2023-10-19 13:55:26 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "webpush" ];
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-04-21 15:54:59 +00:00
|
|
|
description = "Module for integrating and sending Web Push Notification in Django Application";
|
2023-10-19 13:55:26 +00:00
|
|
|
homepage = "https://github.com/safwanrahman/django-webpush/";
|
|
|
|
changelog = "https://github.com/safwanrahman/django-webpush/releases/tag/${src.rev}";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ derdennisop ];
|
|
|
|
};
|
|
|
|
}
|