1{ lib 2, buildPythonPackage 3, fetchPypi 4, python 5, six 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.5.14"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "84b5c188e6ae50e9ecec5e5d734c5bc4d2a50fbbca7f59d2c12da9a3bbee5051"; 21 extension = "zip"; 22 }; 23 24 checkInputs = [ testfixtures ]; 25 checkPhase = '' 26 cd testproject 27 ${python.interpreter} manage.py test captcha 28 ''; 29 30 propagatedBuildInputs = [ django django-ranged-response six pillow ] 31 ++ lib.optional withTTS flite; 32 33 meta = with lib; { 34 description = "An extremely simple, yet highly customizable Django application to add captcha images to any Django form"; 35 homepage = "https://github.com/mbi/django-simple-captcha"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ mrmebelman schmittlauch ]; 38 }; 39}