about summary refs log tree commit diff
path: root/pkgs/development/python-modules/django-maintenance-mode/default.nix
blob: 76ae8338eeb26f3a9c329e4cc40a3b3ffe5d2bcd (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
25
26
27
28
29
30
{ 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;
  };
}