diff --git a/pkgs/development/python-modules/django-recaptcha/default.nix b/pkgs/development/python-modules/django-recaptcha/default.nix new file mode 100644 index 0000000000000..a210d96235a1a --- /dev/null +++ b/pkgs/development/python-modules/django-recaptcha/default.nix @@ -0,0 +1,23 @@ +{ lib, buildPythonPackage, fetchurl, django }: + +buildPythonPackage rec { + pname = "django-recaptcha"; + version = "3.0.0"; + + src = fetchurl { + url = "https://github.com/torchbox/django-recaptcha/archive/refs/tags/${version}.tar.gz"; + sha256 = "sha256-oHOPzGPjlE5c0GWPwlBFaPrWE/GqEHPCDCyDcoNsIOk="; + }; + + propagatedBuildInputs = [ django ]; + + doCheck = false; # Requires ReCaptcha account + + meta = with lib; { + description = "Django reCAPTCHA form field/widget integration app."; + homepage = "https://github.com/torchbox/django-recaptcha"; + license = licenses.bsd3; + maintainers = with maintainers; []; + }; +} + diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 435080f826d31..617bba0ab0ded 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2595,6 +2595,8 @@ in { django-redis = callPackage ../development/python-modules/django-redis { }; + django-recaptcha = callPackage ../development/python-modules/django-recaptcha { }; + django-rest-auth = callPackage ../development/python-modules/django-rest-auth { }; django-rest-polymorphic = callPackage ../development/python-modules/django-rest-polymorphic { };