1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 python, 6 testfixtures, 7 django, 8 django-ranged-response, 9 pillow, 10 withTTS ? true, 11 flite, 12}: 13 14buildPythonPackage rec { 15 pname = "django-simple-captcha"; 16 version = "0.6.0"; 17 format = "setuptools"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-0YhRbTJvrdLVrQduuJZJ1VwCyrr+P9zCFUrBjp9tS5c="; 22 }; 23 24 nativeCheckInputs = [ testfixtures ]; 25 26 checkPhase = '' 27 cd testproject 28 ${python.interpreter} manage.py test captcha 29 ''; 30 31 propagatedBuildInputs = [ 32 django 33 django-ranged-response 34 pillow 35 ] ++ lib.optional withTTS flite; 36 37 meta = with lib; { 38 description = "Customizable Django application to add captcha images to any Django form"; 39 homepage = "https://github.com/mbi/django-simple-captcha"; 40 changelog = "https://github.com/mbi/django-simple-captcha/blob/v${version}/CHANGES"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ 43 mrmebelman 44 schmittlauch 45 ]; 46 }; 47}