1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 django,
6 django-appconf,
7 celery,
8 pytest-django,
9 pytestCheckHook,
10 python,
11}:
12
13buildPythonPackage rec {
14 pname = "django-celery-email";
15 version = "3.0.0";
16 format = "setuptools";
17
18 src = fetchFromGitHub {
19 owner = "pmclanahan";
20 repo = "django-celery-email";
21 rev = version;
22 hash = "sha256-LBavz5Nh2ObmIwLCem8nHvsuKgPwkzbS/OzFPmSje/M=";
23 };
24
25 propagatedBuildInputs = [
26 django
27 django-appconf
28 celery
29 ];
30
31 DJANGO_SETTINGS_MODULE = "tests.settings";
32
33 nativeCheckInputs = [
34 pytest-django
35 pytestCheckHook
36 ];
37
38 checkPhase = ''
39 ${python.executable} runtests.py
40 '';
41
42 pythonImportsCheck = [ "djcelery_email" ];
43
44 meta = with lib; {
45 homepage = "https://github.com/pmclanahan/django-celery-email";
46 description = "Django email backend that uses a celery task for sending the email";
47 license = licenses.bsd3;
48 maintainers = with maintainers; [ onny ];
49 };
50}