mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 21:43:32 +00:00
python310Packages.flask-session: 0.4.0 -> 0.5.0
This commit is contained in:
parent
9042b00dec
commit
fa2742617b
@ -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 ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user