From be63cd11080f005eecb60c550d76f2763e39da1a Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 10 Jan 2024 15:08:47 +0100 Subject: [PATCH] python312Packages.flask-sqlalchemy: ignore deprecation warning --- .../development/python-modules/flask-sqlalchemy/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/flask-sqlalchemy/default.nix b/pkgs/development/python-modules/flask-sqlalchemy/default.nix index 7146c38e5a30..7f1775418f1c 100644 --- a/pkgs/development/python-modules/flask-sqlalchemy/default.nix +++ b/pkgs/development/python-modules/flask-sqlalchemy/default.nix @@ -5,6 +5,7 @@ , mock , flit-core , pytestCheckHook +, pythonAtLeast , pythonOlder , sqlalchemy }: @@ -43,6 +44,11 @@ buildPythonPackage rec { "test_persist_selectable" ]; + pytestFlagsArray = lib.optionals (pythonAtLeast "3.12") [ + # datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. + "-W" "ignore::DeprecationWarning" + ]; + pythonImportsCheck = [ "flask_sqlalchemy" ];