1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 six, 6 requests, 7 django, 8 boto3, 9 python, 10 mock, 11}: 12 13buildPythonPackage rec { 14 pname = "django-anymail"; 15 version = "8.4"; 16 17 src = fetchFromGitHub { 18 owner = "anymail"; 19 repo = pname; 20 rev = "v${version}"; 21 sha256 = "08ac24hrafkk1jg3milfjky3qni1cz5qggp1rgzq9r7ina4akjma"; 22 }; 23 24 propagatedBuildInputs = [ 25 six 26 requests 27 django 28 boto3 29 ]; 30 31 checkInputs = [ mock ]; 32 checkPhase = '' 33 substituteInPlace setup.py --replace "tests_require=[" "tests_require=[], #" 34 export CONTINUOUS_INTEGRATION=1 35 export ANYMAIL_SKIP_TESTS="sparkpost" 36 ${python.interpreter} setup.py test 37 ''; 38 39 # this package allows multiple email backends 40 # sparkpost is missing because it's not packaged yet 41 meta = with lib; { 42 description = "Django email backends and webhooks for Mailgun"; 43 homepage = "https://github.com/anymail/django-anymail"; 44 license = licenses.bsd3; 45 maintainers = with maintainers; [ ]; 46 }; 47}