depot/third_party/nixpkgs/pkgs/development/python-modules/django-maintenance-mode/default.nix
Default email 13da32182d Project import generated by Copybara.
GitOrigin-RevId: a7855f2235a1876f97473a76151fec2afa02b287
2022-08-21 15:32:41 +02:00

30 lines
683 B
Nix

{ lib
, fetchFromGitHub
, buildPythonPackage
, pytest
, django
, python-fsutil
}:
buildPythonPackage rec {
pname = "django-maintenance-mode";
version = "0.16.3";
src = fetchFromGitHub {
owner = "fabiocaccamo";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-G08xQpLQxnt7JbtIo06z0NlRAMbca3UWbo4aXQR/Wy0=";
};
checkInputs = [ pytest ];
propagatedBuildInputs = [ django python-fsutil ];
meta = with lib; {
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;
};
}