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