Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 47 lines 1.0 kB view raw
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.2"; 16 17 src = fetchFromGitHub { 18 owner = "anymail"; 19 repo = pname; 20 rev = "v${version}"; 21 sha256 = "0zd4w707az36pp8wimlz6sfxwy9w190qp93brl78pva3rhnx5p97"; 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}