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