blob: 1caf53c7a2d89891754cbd4eaefc8c2089bd7735 (
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
|
{ lib
, asgiref
, blinker
, buildPythonPackage
, fetchPypi
, flask
, pytestCheckHook
, pythonAtLeast
, pythonOlder
, semantic-version
, werkzeug
}:
buildPythonPackage rec {
pname = "flask-login";
version = "0.6.2";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
pname = "Flask-Login";
inherit version;
hash = "sha256-wKe6qf3ESM3T3W8JOd9y7sUXey96vmy4L8k00pyqycM=";
};
propagatedBuildInputs = [
flask
werkzeug
];
nativeCheckInputs = [
asgiref
blinker
pytestCheckHook
semantic-version
];
disabledTests = [
# https://github.com/maxcountryman/flask-login/issues/747
"test_remember_me_accepts_duration_as_int"
"test_remember_me_custom_duration_uses_custom_cookie"
"test_remember_me_refresh_every_request"
"test_remember_me_uses_custom_cookie_parameters"
] ++ lib.optionals (pythonAtLeast "3.10") [
"test_hashable"
];
pytestFlagsArray = [
"-W" "ignore::DeprecationWarning"
];
pythonImportsCheck = [
"flask_login"
];
meta = with lib; {
description = "User session management for Flask";
homepage = "https://github.com/maxcountryman/flask-login";
license = licenses.mit;
maintainers = with maintainers; [ abbradar ];
};
}
|