2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
|
|
|
|
# extras: babel
|
|
|
|
babel,
|
|
|
|
flask-babel,
|
|
|
|
|
|
|
|
# extras: common
|
|
|
|
bcrypt,
|
|
|
|
bleach,
|
|
|
|
flask-mailman,
|
|
|
|
|
|
|
|
# extras: fsqla
|
|
|
|
flask-sqlalchemy,
|
|
|
|
sqlalchemy,
|
|
|
|
sqlalchemy-utils,
|
|
|
|
|
|
|
|
# extras: mfa
|
|
|
|
cryptography,
|
|
|
|
phonenumbers,
|
|
|
|
webauthn,
|
|
|
|
qrcode,
|
|
|
|
|
|
|
|
# propagates
|
|
|
|
email-validator,
|
|
|
|
flask,
|
|
|
|
flask-login,
|
|
|
|
flask-principal,
|
|
|
|
flask-wtf,
|
|
|
|
passlib,
|
|
|
|
importlib-resources,
|
|
|
|
wtforms,
|
|
|
|
|
|
|
|
# tests
|
|
|
|
argon2-cffi,
|
|
|
|
freezegun,
|
|
|
|
mongoengine,
|
|
|
|
mongomock,
|
|
|
|
peewee,
|
|
|
|
pony,
|
|
|
|
pytestCheckHook,
|
|
|
|
zxcvbn,
|
2022-01-19 23:45:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flask-security-too";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "5.4.3";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "Flask-Security-Too";
|
|
|
|
inherit version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-YrGTl+jXGo1MuNwNRAnMehSXmCVJAwOWlgruUYdV5YM=";
|
2022-01-19 23:45:15 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [ setuptools ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
# flask-login>=0.6.2 not satisfied by version 0.7.0.dev0
|
|
|
|
pythonRelaxDeps = [ "flask-login" ];
|
|
|
|
|
|
|
|
dependencies = [
|
2022-06-26 10:26:21 +00:00
|
|
|
email-validator
|
2022-01-19 23:45:15 +00:00
|
|
|
flask
|
2022-10-21 18:38:19 +00:00
|
|
|
flask-login
|
2023-10-09 19:29:22 +00:00
|
|
|
flask-principal
|
2022-06-16 17:23:12 +00:00
|
|
|
flask-wtf
|
2022-01-19 23:45:15 +00:00
|
|
|
passlib
|
2023-11-16 04:20:00 +00:00
|
|
|
importlib-resources
|
|
|
|
wtforms
|
2022-01-19 23:45:15 +00:00
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
passthru.optional-dependencies = {
|
2022-04-27 09:35:20 +00:00
|
|
|
babel = [
|
2022-05-18 14:49:53 +00:00
|
|
|
babel
|
2022-04-27 09:35:20 +00:00
|
|
|
flask-babel
|
|
|
|
];
|
|
|
|
common = [
|
|
|
|
bcrypt
|
|
|
|
bleach
|
2022-09-30 11:47:45 +00:00
|
|
|
flask-mailman
|
2022-04-27 09:35:20 +00:00
|
|
|
];
|
|
|
|
fsqla = [
|
2022-08-12 12:06:08 +00:00
|
|
|
flask-sqlalchemy
|
2022-04-27 09:35:20 +00:00
|
|
|
sqlalchemy
|
|
|
|
sqlalchemy-utils
|
|
|
|
];
|
|
|
|
mfa = [
|
|
|
|
cryptography
|
|
|
|
phonenumbers
|
2023-11-16 04:20:00 +00:00
|
|
|
webauthn
|
|
|
|
qrcode
|
2022-04-27 09:35:20 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs =
|
|
|
|
[
|
|
|
|
argon2-cffi
|
|
|
|
freezegun
|
|
|
|
mongoengine
|
|
|
|
mongomock
|
|
|
|
peewee
|
|
|
|
pony
|
|
|
|
pytestCheckHook
|
|
|
|
zxcvbn
|
|
|
|
freezegun
|
|
|
|
]
|
|
|
|
++ passthru.optional-dependencies.babel
|
|
|
|
++ passthru.optional-dependencies.common
|
|
|
|
++ passthru.optional-dependencies.fsqla
|
|
|
|
++ passthru.optional-dependencies.mfa;
|
2022-01-19 23:45:15 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabledTests = [
|
|
|
|
# needs /etc/resolv.conf
|
|
|
|
"test_login_email_whatever"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "flask_security" ];
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/Flask-Middleware/flask-security/blob/${version}/CHANGES.rst";
|
|
|
|
homepage = "https://github.com/Flask-Middleware/flask-security";
|
2022-01-19 23:45:15 +00:00
|
|
|
description = "Simple security for Flask apps (fork)";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ gador ];
|
|
|
|
};
|
|
|
|
}
|