2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, pytest
|
|
|
|
, django
|
|
|
|
, python-fsutil
|
|
|
|
}:
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-maintenance-mode";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.16.3";
|
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}";
|
2022-08-21 13:32:41 +00:00
|
|
|
hash = "sha256-G08xQpLQxnt7JbtIo06z0NlRAMbca3UWbo4aXQR/Wy0=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
propagatedBuildInputs = [ django python-fsutil ];
|
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";
|
|
|
|
maintainers = with maintainers; [ mrmebelman ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|