blob: 1cc43a51767d29d046eea476a420345b2104c8df (
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
46
47
|
{
lib,
buildPythonPackage,
django,
fetchFromGitHub,
python,
python-fsutil,
setuptools,
}:
buildPythonPackage rec {
pname = "django-maintenance-mode";
version = "0.22.0";
pyproject = true;
src = fetchFromGitHub {
owner = "fabiocaccamo";
repo = "django-maintenance-mode";
tag = version;
hash = "sha256-Gd6Bmir0bHsD7Xaq1N9S8bSMGQWbVCBIA8Cftzu6QB0=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
django
python-fsutil
];
checkPhase = ''
runHook preCheck
${python.interpreter} runtests.py
runHook postCheck
'';
pythonImportsCheck = [ "maintenance_mode" ];
meta = {
description = "Shows a 503 error page when maintenance-mode is on";
homepage = "https://github.com/fabiocaccamo/django-maintenance-mode";
changelog = "https://github.com/fabiocaccamo/django-maintenance-mode/releases/tag/${src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ mrmebelman ];
};
}
|