1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, six
5, requests
6, django
7, boto3
8, python
9, mock
10, pytestCheckHook
11, pytest-django
12}:
13
14buildPythonPackage rec {
15 pname = "django-anymail";
16 version = "8.6";
17
18 src = fetchFromGitHub {
19 owner = "anymail";
20 repo = pname;
21 rev = "refs/tags/v${version}";
22 sha256 = "sha256-hLNILUV7qzqHfh7l3SJAoFveUIRSCHTjEQ3ZC3PhZUY=";
23 };
24
25 propagatedBuildInputs = [
26 six
27 requests
28 django
29 boto3
30 ];
31
32 checkInputs = [
33 pytestCheckHook
34 pytest-django
35 mock
36 ];
37
38 disabledTests = [
39 # Require networking
40 "test_debug_logging"
41 "test_no_debug_logging"
42 ];
43
44 pythonImportsCheck = [ "anymail" ];
45
46 DJANGO_SETTINGS_MODULE = "tests.test_settings.settings_3_2";
47
48 meta = with lib; {
49 description = "Django email backends and webhooks for Mailgun";
50 homepage = "https://github.com/anymail/django-anymail";
51 license = licenses.bsd3;
52 maintainers = with maintainers; [ onny ];
53 };
54}