From ccf95dff97e37d5abb0a940b3d5ecfbb1abbc374 Mon Sep 17 00:00:00 2001 From: Trolli Schmittlauch Date: Fri, 27 Dec 2019 11:39:33 +0100 Subject: pythonPackages.django-simple-captcha: init at 0.5.12 co-author: Vladyslav Burzakovskyy --- .../django-simple-captcha/default.nix | 39 ++++++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/django-simple-captcha/default.nix diff --git a/pkgs/development/python-modules/django-simple-captcha/default.nix b/pkgs/development/python-modules/django-simple-captcha/default.nix new file mode 100644 index 0000000000000..67977caf9ec3e --- /dev/null +++ b/pkgs/development/python-modules/django-simple-captcha/default.nix @@ -0,0 +1,39 @@ +{ 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7ce529a9b31ec..8c05b98320292 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3213,6 +3213,8 @@ in { django-versatileimagefield = callPackage ../development/python-modules/django-versatileimagefield { }; + django-simple-captcha = callPackage ../development/python-modules/django-simple-captcha { }; + django-sites = callPackage ../development/python-modules/django-sites { }; django-sr = callPackage ../development/python-modules/django-sr { }; -- cgit 1.4.1