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";
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "8.6";
|
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}";
|
|
|
|
sha256 = "sha256-hLNILUV7qzqHfh7l3SJAoFveUIRSCHTjEQ3ZC3PhZUY=";
|
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
|
|
|
};
|
|
|
|
}
|