1{ lib 2, buildPythonPackage 3, fetchPypi 4, python 5, testfixtures 6, django 7, django-ranged-response 8, pillow 9, withTTS ? true 10, flite 11}: 12 13buildPythonPackage rec { 14 pname = "django-simple-captcha"; 15 version = "0.5.20"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-ICcwCae+tEKX6fbHpr0hraPS+pPDFNL2v145TO62opc="; 20 }; 21 22 nativeCheckInputs = [ 23 testfixtures 24 ]; 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; [ mrmebelman schmittlauch ]; 43 }; 44}