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