package new dependencies for python3 Seafile 7.1.1
This commit is contained in:
parent
2fbfda643b
commit
6b5ed21c12
5 changed files with 101 additions and 8 deletions
30
django-simple-captcha/default.nix
Normal file
30
django-simple-captcha/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ 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";
|
||||
};
|
||||
# ToDo: fix tests
|
||||
doCheck = false;
|
||||
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 ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue