Unverified Commit fbe371c0 authored by Flakebi's avatar Flakebi
Browse files

python310Packages.flask-session-captcha: init at 1.3.0

parent 68719046
Loading
Loading
Loading
Loading
+38 −0
Original line number Diff line number Diff line
{ lib
, fetchFromGitHub
, buildPythonPackage
, flask
, flask-sessionstore
, flask-sqlalchemy
, captcha
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "flask-session-captcha";
  version = "1.3.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "Tethik";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-V0f3mXCfqwH2l3OtJKOHGdrlKAFxs2ynqXvNve7Amkc=";
  };

  propagatedBuildInputs = [ flask flask-sessionstore captcha ];

  pythonImportsCheck = [ "flask_session_captcha" ];

  nativeCheckInputs = [ flask-sqlalchemy pytestCheckHook ];

  # RuntimeError: Working outside of application context.
  doCheck = false;

  meta = with lib; {
    description = "A captcha implemention for flask";
    homepage = "https://github.com/Tethik/flask-session-captcha";
    license = licenses.mit;
    maintainers = with maintainers; [ Flakebi ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -3625,6 +3625,8 @@ self: super: with self; {

  flask-session = callPackage ../development/python-modules/flask-session { };

  flask-session-captcha = callPackage ../development/python-modules/flask-session-captcha { };

  flask-sessionstore = callPackage ../development/python-modules/flask-sessionstore { };

  flask-security-too = callPackage ../development/python-modules/flask-security-too { };