2023-08-22 20:05:09 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, flit-core
|
|
|
|
, flask
|
|
|
|
, cachelib
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2021-12-19 01:06:50 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2024-04-21 15:54:59 +00:00
|
|
|
pname = "flask-session";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "0.5.0";
|
|
|
|
format = "pyproject";
|
2021-12-19 01:06:50 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pallets-eco";
|
|
|
|
repo = "flask-session";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-t8w6ZS4gBDpnnKvL3DLtn+rRLQNJbrT2Hxm4f3+a3Xc=";
|
2021-12-19 01:06:50 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
flit-core
|
|
|
|
];
|
2021-12-19 01:06:50 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
flask
|
|
|
|
cachelib
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-12-19 01:06:50 +00:00
|
|
|
|
|
|
|
# The rest of the tests require database servers and optional db connector dependencies
|
2023-08-22 20:05:09 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"-k"
|
|
|
|
"'null_session or filesystem_session'"
|
|
|
|
];
|
2021-12-19 01:06:50 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"flask_session"
|
|
|
|
];
|
2021-12-19 01:06:50 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Flask extension that adds support for server-side sessions";
|
2023-08-22 20:05:09 +00:00
|
|
|
homepage = "https://github.com/pallets-eco/flask-session";
|
|
|
|
changelog = "https://github.com/pallets-eco/flask-session/releases/tag/${version}";
|
2021-12-19 01:06:50 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ zhaofengli ];
|
|
|
|
};
|
|
|
|
}
|