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