1{ lib 2, buildPythonPackage 3, django 4, fetchFromGitHub 5, python 6, pythonOlder 7, setuptools 8}: 9 10buildPythonPackage rec { 11 pname = "django-pwa"; 12 version = "1.1.0"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "silviolleite"; 19 repo = "django-pwa"; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-tP1+Jm9hdvN/ZliuVHN8tqy24/tOK1LUUiJv1xUqRrY="; 22 }; 23 24 nativeBuildInputs = [ 25 setuptools 26 ]; 27 28 propagatedBuildInputs = [ 29 django 30 ]; 31 32 pyImportCheck = [ 33 "pwa" 34 ]; 35 36 checkPhase = '' 37 runHook preCheck 38 ${python.interpreter} runtests.py 39 runHook postCheck 40 ''; 41 42 meta = with lib; { 43 description = "A Django app to include a manifest.json and Service Worker instance to enable progressive web app behavoir"; 44 homepage = "https://github.com/silviolleite/django-pwa"; 45 changelog = "https://github.com/silviolleite/django-pwa/releases/tag/v${version}"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ derdennisop ]; 48 }; 49}