Merge pull request #247875 from NickCao/flask-session

python310Packages.flask-session: 0.4.0 -> 0.5.0
This commit is contained in:
Nick Cao 2023-08-12 23:50:59 -06:00 committed by GitHub
commit 84a7959074
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,26 +1,51 @@
{ lib, fetchPypi, buildPythonPackage, pytestCheckHook, flask, cachelib }:
{ lib
, fetchFromGitHub
, buildPythonPackage
, flit-core
, flask
, cachelib
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "Flask-Session";
version = "0.4.0";
version = "0.5.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-ye1UMh+oxMoBMv/TNpWCdZ7aclL7SzvuSA5pDRukH0Y=";
src = fetchFromGitHub {
owner = "pallets-eco";
repo = "flask-session";
rev = "refs/tags/${version}";
hash = "sha256-t8w6ZS4gBDpnnKvL3DLtn+rRLQNJbrT2Hxm4f3+a3Xc=";
};
propagatedBuildInputs = [ flask cachelib ];
nativeBuildInputs = [
flit-core
];
nativeCheckInputs = [ pytestCheckHook ];
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'" ];
pytestFlagsArray = [
"-k"
"'null_session or filesystem_session'"
];
pythonImportsCheck = [ "flask_session" ];
pythonImportsCheck = [
"flask_session"
];
meta = with lib; {
description = "A Flask extension that adds support for server-side sessions";
homepage = "https://github.com/fengsp/flask-session";
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 ];
};