d78648fec4
fix staging-next due to werkzeug error Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
52 lines
901 B
Nix
52 lines
901 B
Nix
{ lib
|
|
, 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;
|
|
sha256 = "sha256-wKe6qf3ESM3T3W8JOd9y7sUXey96vmy4L8k00pyqycM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
flask
|
|
werkzeug
|
|
];
|
|
|
|
checkInputs = [
|
|
blinker
|
|
pytestCheckHook
|
|
semantic-version
|
|
];
|
|
|
|
disabledTests = lib.optionals (pythonAtLeast "3.10") [
|
|
"test_hashable"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|