blob: 8a71b99c1539ec1b59488feece80e62e2a33dd6b (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
{ lib
, fetchFromGitHub
, fetchpatch
, buildPythonPackage
# build-system
, setuptools
# dependencies
, captcha
, flask
, markupsafe
# tests
, flask-sqlalchemy
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "flask-session-captcha";
version = "1.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Tethik";
repo = pname;
rev = "v${version}";
hash = "sha256-V0f3mXCfqwH2l3OtJKOHGdrlKAFxs2ynqXvNve7Amkc=";
};
patches = [
(fetchpatch {
# https://github.com/Tethik/flask-session-captcha/pull/44
url = "https://github.com/Tethik/flask-session-captcha/commit/3f79c22a71c60dd60e9df61b550cce641603dcb6.patch";
hash = "sha256-MXsoSytBNbcg3HU6IWlvf2MgNUL78T5ToxKGv4YMtZw=";
})
];
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
captcha
flask
markupsafe
];
pythonImportsCheck = [
"flask_session_captcha"
];
# RuntimeError: Working outside of application context.
doCheck = false;
nativeCheckInputs = [
flask-sqlalchemy
pytestCheckHook
];
meta = with lib; {
description = "A captcha implemention for flask";
homepage = "https://github.com/Tethik/flask-session-captcha";
license = licenses.mit;
maintainers = with maintainers; [ Flakebi ];
};
}
|