1{ lib 2, buildPythonPackage 3, django 4, fetchFromGitHub 5, pythonOlder 6, pythonRelaxDepsHook 7, pywebpush 8, setuptools-scm 9}: 10 11buildPythonPackage rec { 12 pname = "django-webpush"; 13 version = "0.3.4"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "safwanrahman"; 20 repo = "django-webpush"; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-Mwp53apdPpBcn7VfDbyDlvLAVAG65UUBhT0w9OKjKbU="; 23 }; 24 25 nativeBuildInputs = [ 26 pythonRelaxDepsHook 27 setuptools-scm 28 ]; 29 30 propagatedBuildInputs = [ 31 django 32 pywebpush 33 ]; 34 35 # nothing to test 36 doCheck = false; 37 38 pythonImportsCheck = [ 39 "webpush" 40 ]; 41 42 meta = with lib; { 43 description = "A Package made for integrating and sending Web Push Notification in Django Application"; 44 homepage = "https://github.com/safwanrahman/django-webpush/"; 45 changelog = "https://github.com/safwanrahman/django-webpush/releases/tag/${src.rev}"; 46 license = licenses.gpl3Plus; 47 maintainers = with maintainers; [ derdennisop ]; 48 }; 49}