Merge pull request #258404 from DerDennisOP/django-webpush

python3.pkgs.django-webpush: init at 0.3.4
This commit is contained in:
OTABI Tomoya 2023-10-14 15:24:52 +09:00 committed by GitHub
commit 90e9dafd68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,49 @@
{ lib
, buildPythonPackage
, django
, fetchFromGitHub
, pythonOlder
, pythonRelaxDepsHook
, pywebpush
, setuptools-scm
}:
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=";
};
nativeBuildInputs = [
pythonRelaxDepsHook
setuptools-scm
];
propagatedBuildInputs = [
django
pywebpush
];
# nothing to test
doCheck = false;
pythonImportsCheck = [
"webpush"
];
meta = with lib; {
description = "A Package made for integrating and sending Web Push Notification in Django Application";
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 ];
};
}

View File

@ -3116,6 +3116,8 @@ self: super: with self; {
django-webpack-loader = callPackage ../development/python-modules/django-webpack-loader { };
django-webpush = callPackage ../development/python-modules/django-webpush { };
django-widget-tweaks = callPackage ../development/python-modules/django-widget-tweaks { };
dj-database-url = callPackage ../development/python-modules/dj-database-url { };