summary refs log tree commit diff
path: root/pkgs/development/python-modules/django-anymail/default.nix
blob: fb8ca502695d4cb6ea2db07b21e00cab61c5eec4 (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, six
, requests
, django
, boto3
, python
, mock
, pytestCheckHook
, pytest-django
}:

buildPythonPackage rec {
  pname = "django-anymail";
  version = "9.0";

  src = fetchFromGitHub {
    owner = "anymail";
    repo = pname;
    rev = "refs/tags/v${version}";
    hash = "sha256-qEYBHsaHo1gmrsa6q7DQiUJurC7cXhv5e/SQ7R3Tkzc=";
  };

  propagatedBuildInputs = [
    six
    requests
    django
    boto3
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-django
    mock
  ];

  disabledTests = [
    # Require networking
    "test_debug_logging"
    "test_no_debug_logging"
  ];

  pythonImportsCheck = [ "anymail" ];

  DJANGO_SETTINGS_MODULE = "tests.test_settings.settings_3_2";

  meta = with lib; {
    description = "Django email backends and webhooks for Mailgun";
    homepage = "https://github.com/anymail/django-anymail";
    license = licenses.bsd3;
    maintainers = with maintainers; [ onny ];
  };
}