Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / django-pwa / default.nix
blob91a216f0ac5cd7e21f8f8c47924e12434398ad55
1 { lib
2 , buildPythonPackage
3 , django
4 , fetchFromGitHub
5 , python
6 , pythonOlder
7 , setuptools
8 }:
10 buildPythonPackage rec {
11   pname = "django-pwa";
12   version = "1.1.0";
13   pyproject = true;
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "silviolleite";
19     repo = "django-pwa";
20     rev = "refs/tags/v${version}";
21     hash = "sha256-tP1+Jm9hdvN/ZliuVHN8tqy24/tOK1LUUiJv1xUqRrY=";
22   };
24   nativeBuildInputs = [
25     setuptools
26   ];
28   propagatedBuildInputs = [
29     django
30   ];
32   pyImportCheck = [
33     "pwa"
34   ];
36   checkPhase = ''
37     runHook preCheck
38     ${python.interpreter} runtests.py
39     runHook postCheck
40   '';
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   };