blob: 258db03a52a1469895c2c7366ddaeec818e87578 (
plain)
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
48
49
50
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
django,
django-appconf,
celery,
pytest-django,
pytestCheckHook,
python,
}:
buildPythonPackage rec {
pname = "django-celery-email";
version = "3.0.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "pmclanahan";
repo = "django-celery-email";
rev = version;
hash = "sha256-LBavz5Nh2ObmIwLCem8nHvsuKgPwkzbS/OzFPmSje/M=";
};
propagatedBuildInputs = [
django
django-appconf
celery
];
DJANGO_SETTINGS_MODULE = "tests.settings";
nativeCheckInputs = [
pytest-django
pytestCheckHook
];
checkPhase = ''
${python.executable} runtests.py
'';
pythonImportsCheck = [ "djcelery_email" ];
meta = {
homepage = "https://github.com/pmclanahan/django-celery-email";
description = "Django email backend that uses a celery task for sending the email";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ onny ];
};
}
|