about summary refs log tree commit diff
path: root/pkgs/development/python-modules/flask-session-captcha/default.nix
blob: 115867f1c63cc33782c71c753a889a6ecbe8a48c (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
  lib,
  buildPythonPackage,
  captcha,
  fetchFromGitHub,
  flask,
  flask-session,
  flask-sqlalchemy,
  markupsafe,
  pytestCheckHook,
  pythonOlder,
  setuptools,
}:

buildPythonPackage rec {
  pname = "flask-session-captcha";
  version = "1.4.2";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "Tethik";
    repo = "flask-session-captcha";
    rev = "refs/tags/v${version}";
    hash = "sha256-hf6ifTrsWvgvUHFAPdS8ns8aKN02zquLGCq5ouQF0ck=";
  };

  build-system = [ setuptools ];

  dependencies = [
    captcha
    flask
    markupsafe
  ];

  nativeCheckInputs = [
    flask-session
    flask-sqlalchemy
    pytestCheckHook
  ];

  pythonImportsCheck = [ "flask_session_captcha" ];

  meta = with lib; {
    description = "A captcha implemention for flask";
    homepage = "https://github.com/Tethik/flask-session-captcha";
    changelog = "https://github.com/Tethik/flask-session-captcha/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ Flakebi ];
  };
}