Merge pull request #192456 from gador/flask-security-5.0.0_fix

This commit is contained in:
Sandro 2022-09-23 11:48:13 +02:00 committed by GitHub
commit f2f2065df6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 54 additions and 4 deletions

View file

@ -0,0 +1,46 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, mkdocs-material-extensions
, flask
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "flask-mailman";
version = "0.3.0";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "waynerv";
repo = pname;
rev = "v${version}";
sha256 = "sha256-cfLtif+48M6fqOkBbi4PJRFpf9FRXCPesktFQky34eU=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
flask
mkdocs-material-extensions
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "flask_mailman" ];
meta = with lib; {
homepage = "https://github.com/waynerv/flask-mailman";
description = "Flask extension providing simple email sending capabilities.";
license = licenses.bsd3;
maintainers = with maintainers; [ gador ];
};
}

View file

@ -9,7 +9,8 @@
# extras: common
, bcrypt
, bleach
, flask_mail
, flask-mailman
, qrcode
# extras: fsqla
, flask-sqlalchemy
@ -19,7 +20,6 @@
# extras: mfa
, cryptography
, phonenumbers
, pyqrcode
# propagates
, blinker
@ -39,6 +39,7 @@
, peewee
, pony
, pytestCheckHook
, python-dateutil
, zxcvbn
}:
@ -71,7 +72,8 @@ buildPythonPackage rec {
common = [
bcrypt
bleach
flask_mail
flask-mailman
qrcode
];
fsqla = [
flask-sqlalchemy
@ -81,7 +83,6 @@ buildPythonPackage rec {
mfa = [
cryptography
phonenumbers
pyqrcode
];
};
@ -93,6 +94,7 @@ buildPythonPackage rec {
peewee
pony
pytestCheckHook
python-dateutil
zxcvbn
]
++ passthru.optional-dependencies.babel

View file

@ -3360,6 +3360,8 @@ in {
flask_mail = callPackage ../development/python-modules/flask-mail { };
flask-mailman = callPackage ../development/python-modules/flask-mailman { };
flask_marshmallow = callPackage ../development/python-modules/flask-marshmallow { };
flask_migrate = callPackage ../development/python-modules/flask-migrate { };