python3.pkgs.django-webpush: init at 0.3.4

This commit is contained in:
Dennis Wuitz 2023-10-01 15:41:18 +02:00
parent d60bb0aeef
commit 69e7400b01
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

@ -3106,6 +3106,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 { };