Something went wrong. Try again.
lol
Something went wrong. Try again.
2.3 kB · 134 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135{ lib, buildPythonPackage, fetchFromGitHub, flit-core,
# extras: babel babel, flask-babel,
# extras: common argon2-cffi, bcrypt, bleach, flask-mail,
# extras: fsqla flask-sqlalchemy, sqlalchemy, sqlalchemy-utils,
# extras: mfa cryptography, phonenumberslite, webauthn, qrcode,
# propagates email-validator, flask, flask-login, flask-principal, flask-wtf, libpass, markupsafe, passlib, importlib-resources, wtforms,
# tests authlib, flask-sqlalchemy-lite, freezegun, mongoengine, mongomock, peewee, pytestCheckHook, requests, zxcvbn,}:
buildPythonPackage rec { pname = "flask-security"; version = "5.8.0"; pyproject = true;
src = fetchFromGitHub { owner = "pallets-eco"; repo = "flask-security"; tag = version; hash = "sha256-ocHxrcdwO4nvpwMJUhT6TYmzPt7V3nkmES3HdxBkzyQ="; };
build-system = [ flit-core ];
dependencies = [ email-validator flask flask-login flask-principal flask-wtf markupsafe libpass wtforms ];
optional-dependencies = { babel = [ babel flask-babel ]; common = [ argon2-cffi bcrypt bleach flask-mail ]; fsqla = [ flask-sqlalchemy sqlalchemy ]; mfa = [ cryptography phonenumberslite webauthn qrcode ]; };
nativeCheckInputs = [ authlib flask-sqlalchemy-lite freezegun mongoengine mongomock peewee pytestCheckHook requests zxcvbn ] ++ optional-dependencies.babel ++ optional-dependencies.common ++ optional-dependencies.fsqla ++ optional-dependencies.mfa;
preCheck = '' pybabel compile --domain flask_security -d flask_security/translations '';
disabledTests = [ # needs /etc/resolv.conf "test_login_email_whatever" ];
pythonImportsCheck = [ "flask_security" ];
meta = { changelog = "https://github.com/pallets-eco/flask-security/blob/${src.tag}/CHANGES.rst"; homepage = "https://github.com/pallets-eco/flask-security"; description = "Quickly add security features to your Flask application"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ gador ]; };}