From fddf1534d86f773604b2e178b0648b0894564723 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 2 Aug 2024 19:39:55 +0200 Subject: [PATCH] python312Packages.datasette: ignore deprecation warnings --- pkgs/development/python-modules/datasette/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/datasette/default.nix b/pkgs/development/python-modules/datasette/default.nix index fd31d3bbf189..29cf78eeed88 100644 --- a/pkgs/development/python-modules/datasette/default.nix +++ b/pkgs/development/python-modules/datasette/default.nix @@ -79,7 +79,12 @@ buildPythonPackage rec { # takes 30-180 mins to run entire test suite, not worth the CPU resources, slows down reviews # with pytest-xdist, it still takes around 10 mins with 32 cores # just run the csv tests, as this should give some indictation of correctness - pytestFlagsArray = [ "tests/test_csv.py" ]; + pytestFlagsArray = [ + # datasette/app.py:14: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html + "-W" + "ignore::DeprecationWarning" + "tests/test_csv.py" + ]; disabledTests = [ "facet"