2022-01-19 23:45:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
# extras: babel
|
2022-05-18 14:49:53 +00:00
|
|
|
, babel
|
2022-04-27 09:35:20 +00:00
|
|
|
, flask-babel
|
|
|
|
|
|
|
|
# extras: common
|
|
|
|
, bcrypt
|
|
|
|
, bleach
|
2022-09-30 11:47:45 +00:00
|
|
|
, flask-mailman
|
|
|
|
, qrcode
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
# extras: fsqla
|
2022-08-12 12:06:08 +00:00
|
|
|
, flask-sqlalchemy
|
2022-04-27 09:35:20 +00:00
|
|
|
, sqlalchemy
|
|
|
|
, sqlalchemy-utils
|
|
|
|
|
|
|
|
# extras: mfa
|
|
|
|
, cryptography
|
|
|
|
, phonenumbers
|
|
|
|
|
|
|
|
# propagates
|
2022-01-19 23:45:15 +00:00
|
|
|
, blinker
|
2022-06-26 10:26:21 +00:00
|
|
|
, email-validator
|
2022-04-27 09:35:20 +00:00
|
|
|
, flask
|
2022-10-21 18:38:19 +00:00
|
|
|
, flask-login
|
2022-04-27 09:35:20 +00:00
|
|
|
, flask_principal
|
2022-06-16 17:23:12 +00:00
|
|
|
, flask-wtf
|
2022-04-27 09:35:20 +00:00
|
|
|
, itsdangerous
|
|
|
|
, passlib
|
|
|
|
|
|
|
|
# tests
|
2022-05-18 14:49:53 +00:00
|
|
|
, argon2-cffi
|
2022-01-19 23:45:15 +00:00
|
|
|
, flask-mongoengine
|
2022-04-27 09:35:20 +00:00
|
|
|
, mongoengine
|
|
|
|
, mongomock
|
2022-01-19 23:45:15 +00:00
|
|
|
, peewee
|
|
|
|
, pony
|
2022-04-27 09:35:20 +00:00
|
|
|
, pytestCheckHook
|
2022-09-30 11:47:45 +00:00
|
|
|
, python-dateutil
|
2022-01-19 23:45:15 +00:00
|
|
|
, zxcvbn
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flask-security-too";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "5.0.2";
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "Flask-Security-Too";
|
|
|
|
inherit version;
|
2022-09-30 11:47:45 +00:00
|
|
|
sha256 = "sha256-Nv7g2l0bPSEcrydFU7d1NHjCCJl8Ykq7hOu6QmHeZcI=";
|
2022-01-19 23:45:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
blinker
|
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
|
2022-01-19 23:45:15 +00:00
|
|
|
flask_principal
|
2022-06-16 17:23:12 +00:00
|
|
|
flask-wtf
|
2022-01-19 23:45:15 +00:00
|
|
|
itsdangerous
|
|
|
|
passlib
|
|
|
|
];
|
|
|
|
|
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
|
|
|
|
qrcode
|
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
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
checkInputs = [
|
2022-05-18 14:49:53 +00:00
|
|
|
argon2-cffi
|
2022-01-19 23:45:15 +00:00
|
|
|
flask-mongoengine
|
2022-04-27 09:35:20 +00:00
|
|
|
mongoengine
|
|
|
|
mongomock
|
2022-01-19 23:45:15 +00:00
|
|
|
peewee
|
|
|
|
pony
|
2022-04-27 09:35:20 +00:00
|
|
|
pytestCheckHook
|
2022-09-30 11:47:45 +00:00
|
|
|
python-dateutil
|
2022-01-19 23:45:15 +00:00
|
|
|
zxcvbn
|
2022-04-27 09:35:20 +00:00
|
|
|
]
|
2022-06-16 17:23:12 +00:00
|
|
|
++ passthru.optional-dependencies.babel
|
|
|
|
++ passthru.optional-dependencies.common
|
|
|
|
++ passthru.optional-dependencies.fsqla
|
|
|
|
++ passthru.optional-dependencies.mfa;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "flask_security" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://pypi.org/project/Flask-Security-Too/";
|
|
|
|
description = "Simple security for Flask apps (fork)";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ gador ];
|
|
|
|
};
|
|
|
|
}
|