blob: 1e619035bd054114a7c0e763b7b1ba909c664178 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
{ lib
, boto3
, buildPythonPackage
, django
, fetchFromGitHub
, hatchling
, mock
, python
, pythonOlder
, requests
, responses
, urllib3
}:
buildPythonPackage rec {
pname = "django-anymail";
version = "10.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "anymail";
repo = "django-anymail";
rev = "refs/tags/v${version}";
hash = "sha256-5uSpPeXpMkpuzMXzsGE6uQJWP/Dt/oqakB8Xb5G1eZY=";
};
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
django
requests
urllib3
];
nativeCheckInputs = [
mock
responses
] ++ passthru.optional-dependencies.amazon-ses;
passthru.optional-dependencies = {
amazon-ses = [
boto3
];
};
checkPhase = ''
runHook preCheck
CONTINUOUS_INTEGRATION=1 ${python.interpreter} runtests.py
runHook postCheck
'';
pythonImportsCheck = [
"anymail"
];
meta = with lib; {
description = "Django email backends and webhooks for Mailgun";
homepage = "https://github.com/anymail/django-anymail";
changelog = "https://github.com/anymail/django-anymail/blob/v${version}/CHANGELOG.rst";
license = licenses.bsd3;
maintainers = with maintainers; [ onny ];
};
}
|