diff --git a/python-pkgs/django-hCaptcha.nix b/python-pkgs/django-hCaptcha.nix new file mode 100644 index 0000000..19aedae --- /dev/null +++ b/python-pkgs/django-hCaptcha.nix @@ -0,0 +1,36 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + wheel, +}: + +buildPythonPackage rec { + pname = "django-hcaptcha"; + version = "0.2.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "AndrejZbin"; + repo = "django-hcaptcha"; + rev = "v${version}"; + hash = "sha256-g6I/CKxaRWuXLVhuAe1auC3+gHwcyYhoc/px+OfP4o8="; + }; + + build-system = [ + setuptools + wheel + ]; + + pythonImportsCheck = [ + "hcaptcha" + ]; + + meta = { + description = "Django hCaptcha provides a simple way to protect your django forms using hCaptcha"; + homepage = "https://github.com/AndrejZbin/django-hcaptcha.git"; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ ]; + }; +}