1{ lib
2, fetchFromGitHub
3, buildPythonPackage
4, flask
5, flask-sessionstore
6, flask-sqlalchemy
7, captcha
8, pytestCheckHook
9}:
10
11buildPythonPackage rec {
12 pname = "flask-session-captcha";
13 version = "1.3.0";
14 format = "setuptools";
15
16 src = fetchFromGitHub {
17 owner = "Tethik";
18 repo = pname;
19 rev = "v${version}";
20 hash = "sha256-V0f3mXCfqwH2l3OtJKOHGdrlKAFxs2ynqXvNve7Amkc=";
21 };
22
23 propagatedBuildInputs = [ flask flask-sessionstore captcha ];
24
25 pythonImportsCheck = [ "flask_session_captcha" ];
26
27 nativeCheckInputs = [ flask-sqlalchemy pytestCheckHook ];
28
29 # RuntimeError: Working outside of application context.
30 doCheck = false;
31
32 meta = with lib; {
33 description = "A captcha implemention for flask";
34 homepage = "https://github.com/Tethik/flask-session-captcha";
35 license = licenses.mit;
36 maintainers = with maintainers; [ Flakebi ];
37 };
38}