blob: 06cd6011ab655010ea379983e6fc3117087648fd (
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
51
52
53
54
55
56
57
58
59
60
|
{
lib,
boto3,
buildPythonPackage,
django,
fetchFromGitHub,
hatchling,
mock,
python,
requests,
responses,
urllib3,
}:
buildPythonPackage rec {
pname = "django-anymail";
version = "13.1";
pyproject = true;
src = fetchFromGitHub {
owner = "anymail";
repo = "django-anymail";
tag = "v${version}";
hash = "sha256-R/PPAar93yMslKnhiiMcv4DIZrIJEQGqMm5yLZ9Mn+8=";
};
build-system = [ hatchling ];
dependencies = [
django
requests
urllib3
];
nativeCheckInputs = [
mock
responses
]
++ optional-dependencies.amazon-ses;
optional-dependencies = {
amazon-ses = [ boto3 ];
};
checkPhase = ''
runHook preCheck
CONTINUOUS_INTEGRATION=1 ${python.interpreter} runtests.py
runHook postCheck
'';
pythonImportsCheck = [ "anymail" ];
meta = {
description = "Django email backends and webhooks for Mailgun";
homepage = "https://github.com/anymail/django-anymail";
changelog = "https://github.com/anymail/django-anymail/blob/${src.tag}/CHANGELOG.rst";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ onny ];
};
}
|