summary refs log tree commit diff
path: root/pkgs/development/python-modules/flask-session-captcha/default.nix
blob: a720d2a4b555ed8aeaacf46df57fa0f7be46c7b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ 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 ];
  };
}