about summary refs log tree commit diff
path: root/pkgs/development/python-modules/django-maintenance-mode/default.nix
blob: 86bcc85eb0ae53e286ef411554c47d441c4a7ebf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, fetchFromGitHub, buildPythonPackage, pytest, django }:

buildPythonPackage rec {
  pname = "django-maintenance-mode";
  version = "0.16.2";

  src = fetchFromGitHub {
    owner = "fabiocaccamo";
    repo = pname;
    rev = version;
    sha256 = "0krcq04pf4g50q88l7q1wc53jgkhjmvif3acghfqq8c3s2y7mbz7";
  };

  checkInputs = [ pytest ];

  propagatedBuildInputs = [ django ];

  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;
  };
}