depot/third_party/nixpkgs/pkgs/development/python-modules/django-simple-captcha/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

39 lines
918 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, python
, six
, testfixtures
, django
, django-ranged-response
, pillow
, withTTS ? true
, flite
}:
buildPythonPackage rec {
pname = "django-simple-captcha";
version = "0.5.12";
src = fetchPypi {
inherit pname version;
sha256 = "sha256:1g92sdgcb81r3il34pg0z210cz6wm14k00b558nshai8br1g09gw";
extension = "zip";
};
checkInputs = [ testfixtures ];
checkPhase = ''
cd testproject
${python.interpreter} manage.py test captcha
'';
propagatedBuildInputs = [ django django-ranged-response six pillow ]
++ lib.optional withTTS flite;
meta = with lib; {
description = "An extremely simple, yet highly customizable Django application to add captcha images to any Django form";
homepage = "https://github.com/mbi/django-simple-captcha";
license = licenses.mit;
maintainers = with maintainers; [ mrmebelman schmittlauch ];
};
}