2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, pytest
|
|
|
|
, django
|
|
|
|
, python-fsutil
|
2022-11-27 09:42:12 +00:00
|
|
|
, pythonOlder
|
2022-08-21 13:32:41 +00:00
|
|
|
}:
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-maintenance-mode";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "0.18.0";
|
2022-11-27 09:42:12 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fabiocaccamo";
|
|
|
|
repo = pname;
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-01-20 10:41:00 +00:00
|
|
|
hash = "sha256-Mcj8O20hCINGf5T3PCG9jq0onSrm4R+Ke5CLMqMDmuU=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
django
|
|
|
|
python-fsutil
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-11-27 09:42:12 +00:00
|
|
|
pytest
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"maintenance_mode"
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-09-25 04:45:31 +00:00
|
|
|
description = "Shows a 503 error page when maintenance-mode is on";
|
|
|
|
homepage = "https://github.com/fabiocaccamo/django-maintenance-mode";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/fabiocaccamo/django-maintenance-mode/releases/tag/${version}";
|
2020-09-25 04:45:31 +00:00
|
|
|
maintainers = with maintainers; [ mrmebelman ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|