blob: c781ba6e01c1ec57bd269cbf88d91eaeddf37a12 (
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
|
{
lib,
fetchFromGitHub,
buildPythonPackage,
flit-core,
flask,
cachelib,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "flask-session";
version = "0.5.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "pallets-eco";
repo = "flask-session";
rev = "refs/tags/${version}";
hash = "sha256-t8w6ZS4gBDpnnKvL3DLtn+rRLQNJbrT2Hxm4f3+a3Xc=";
};
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [
flask
cachelib
];
nativeCheckInputs = [ pytestCheckHook ];
# The rest of the tests require database servers and optional db connector dependencies
pytestFlagsArray = [
"-k"
"'null_session or filesystem_session'"
];
pythonImportsCheck = [ "flask_session" ];
meta = with lib; {
description = "Flask extension that adds support for server-side sessions";
homepage = "https://github.com/pallets-eco/flask-session";
changelog = "https://github.com/pallets-eco/flask-session/releases/tag/${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ zhaofengli ];
};
}
|