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