2022-09-09 14:08:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, six
|
|
|
|
, requests
|
|
|
|
, django
|
|
|
|
, boto3
|
|
|
|
, python
|
|
|
|
, mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-django
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-anymail";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "9.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "anymail";
|
|
|
|
repo = pname;
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-01-20 10:41:00 +00:00
|
|
|
sha256 = "sha256-qEYBHsaHo1gmrsa6q7DQiUJurC7cXhv5e/SQ7R3Tkzc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
requests
|
|
|
|
django
|
|
|
|
boto3
|
|
|
|
];
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
checkInputs = [
|
|
|
|
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";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Django email backends and webhooks for Mailgun";
|
|
|
|
homepage = "https://github.com/anymail/django-anymail";
|
|
|
|
license = licenses.bsd3;
|
2022-09-09 14:08:57 +00:00
|
|
|
maintainers = with maintainers; [ onny ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|