at master 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 django, 5 fetchFromGitHub, 6 hatch-vcs, 7 hatchling, 8 python, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "django-pwa"; 14 version = "2.0.1"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "silviolleite"; 21 repo = "django-pwa"; 22 tag = version; 23 hash = "sha256-EAjDK3rkjoPw8jyVVZdhMNHmTqr0/ERiMwGMxmVbsls="; 24 }; 25 26 build-system = [ 27 hatch-vcs 28 hatchling 29 ]; 30 31 dependencies = [ django ]; 32 33 pythonImportsCheck = [ "pwa" ]; 34 35 checkPhase = '' 36 runHook preCheck 37 ${python.interpreter} runtests.py 38 runHook postCheck 39 ''; 40 41 meta = with lib; { 42 description = "Django app to include a manifest.json and Service Worker instance to enable progressive web app behavior"; 43 homepage = "https://github.com/silviolleite/django-pwa"; 44 changelog = "https://github.com/silviolleite/django-pwa/releases/tag/${src.tag}"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ derdennisop ]; 47 }; 48}