biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / django-pwa / default.nix
blob0e8d3c9c59536a5c308c8f7f12e85c01c69064ec
2   lib,
3   buildPythonPackage,
4   django,
5   fetchFromGitHub,
6   python,
7   pythonOlder,
8   setuptools,
9 }:
11 buildPythonPackage rec {
12   pname = "django-pwa";
13   version = "1.1.0";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "silviolleite";
20     repo = "django-pwa";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-tP1+Jm9hdvN/ZliuVHN8tqy24/tOK1LUUiJv1xUqRrY=";
23   };
25   nativeBuildInputs = [ setuptools ];
27   propagatedBuildInputs = [ django ];
29   pythonImportsCheck = [ "pwa" ];
31   checkPhase = ''
32     runHook preCheck
33     ${python.interpreter} runtests.py
34     runHook postCheck
35   '';
37   meta = with lib; {
38     description = "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   };