2020-04-24 23:36:52 +00:00
|
|
|
{
|
2021-02-05 17:12:51 +00:00
|
|
|
lib,
|
2020-04-24 23:36:52 +00:00
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
six,
|
|
|
|
requests,
|
|
|
|
django,
|
|
|
|
boto3,
|
|
|
|
python,
|
|
|
|
mock,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-anymail";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "8.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "anymail";
|
|
|
|
repo = pname;
|
2020-10-11 12:50:04 +00:00
|
|
|
rev = "v${version}";
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "08ac24hrafkk1jg3milfjky3qni1cz5qggp1rgzq9r7ina4akjma";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
requests
|
|
|
|
django
|
|
|
|
boto3
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [ mock ];
|
|
|
|
checkPhase = ''
|
|
|
|
substituteInPlace setup.py --replace "tests_require=[" "tests_require=[], #"
|
|
|
|
export CONTINUOUS_INTEGRATION=1
|
|
|
|
export ANYMAIL_SKIP_TESTS="sparkpost"
|
|
|
|
${python.interpreter} setup.py test
|
|
|
|
'';
|
|
|
|
|
|
|
|
# this package allows multiple email backends
|
|
|
|
# sparkpost is missing because it's not packaged yet
|
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;
|
2021-05-28 09:39:13 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|