Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 47 lines 1.0 kB view raw
1{ 2 stdenv, 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 = "6.1.0"; 16 17 src = fetchFromGitHub { 18 owner = "anymail"; 19 repo = pname; 20 rev = "v6.1"; 21 sha256 = "04jgz3qnsnba18rlqgxyb2g9128pk3ivflnj6695kibxg724fcpv"; 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 stdenv.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; [ ivegotasthma ]; 46 }; 47}