summary refs log tree commit diff
path: root/pkgs/development/python-modules/django-celery-email/default.nix
blob: 950fb4f75e9314ff4d17edb4d7f714610ef8a4ad (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ lib
, buildPythonPackage
, fetchFromGitHub
, django
, django-appconf
, celery
, pytest-django
, pytestCheckHook
, python }:

buildPythonPackage rec {
  pname = "django-celery-email";
  version = "3.0.0";

  src = fetchFromGitHub {
    owner = "pmclanahan";
    repo = pname;
    rev = version;
    sha256 = "sha256-LBavz5Nh2ObmIwLCem8nHvsuKgPwkzbS/OzFPmSje/M=";
  };

  propagatedBuildInputs = [
    django
    django-appconf
    celery
  ];

  DJANGO_SETTINGS_MODULE = "tests.settings";

  checkInputs = [
    pytest-django
    pytestCheckHook
  ];

  checkPhase = ''
    ${python.executable} runtests.py
  '';

  pythonImportsCheck = [ "djcelery_email" ];

  meta = with lib; {
    homepage = "https://github.com/pmclanahan/django-celery-email";
    description = "Django email backend that uses a celery task for sending the email";
    license = licenses.bsd3;
    maintainers = with maintainers; [ onny ];
  };
}