diff --git a/pkgs/by-name/ab/ablog/package.nix b/pkgs/by-name/ab/ablog/package.nix index 10b604b697df..624519d60a04 100644 --- a/pkgs/by-name/ab/ablog/package.nix +++ b/pkgs/by-name/ab/ablog/package.nix @@ -39,13 +39,10 @@ python3Packages.buildPythonApplication rec { defusedxml ]; - pytestFlagsArray = [ - "-W" - "ignore::sphinx.deprecation.RemovedInSphinx90Warning" - "--rootdir" - "src/ablog" - "-W" - "ignore::sphinx.deprecation.RemovedInSphinx90Warning" # Ignore ImportError + pytestFlags = [ + "-Wignore::sphinx.deprecation.RemovedInSphinx90Warning" + "--rootdir=src/ablog" + "-Wignore::sphinx.deprecation.RemovedInSphinx90Warning" # Ignore ImportError ]; # assert "post 1" not in html diff --git a/pkgs/by-name/aw/aws-encryption-sdk-cli/package.nix b/pkgs/by-name/aw/aws-encryption-sdk-cli/package.nix index 675645240b43..fd486d0344d4 100644 --- a/pkgs/by-name/aw/aws-encryption-sdk-cli/package.nix +++ b/pkgs/by-name/aw/aws-encryption-sdk-cli/package.nix @@ -60,9 +60,8 @@ localPython.pkgs.buildPythonApplication rec { ]; # Upstream did not adapt to pytest 8 yet. - pytestFlagsArray = [ - "-W" - "ignore::pytest.PytestRemovedIn8Warning" + pytestFlags = [ + "-Wignore::pytest.PytestRemovedIn8Warning" ]; passthru = { diff --git a/pkgs/by-name/aw/awscli2/package.nix b/pkgs/by-name/aw/awscli2/package.nix index 763e992b5594..16c9323c0a19 100644 --- a/pkgs/by-name/aw/awscli2/package.nix +++ b/pkgs/by-name/aw/awscli2/package.nix @@ -144,7 +144,7 @@ py.pkgs.buildPythonApplication rec { # tests/unit/customizations/sso/test_utils.py uses sockets __darwinAllowLocalNetworking = true; - pytestFlagsArray = [ + pytestFlags = [ "-Wignore::DeprecationWarning" ]; diff --git a/pkgs/by-name/bo/borgbackup/package.nix b/pkgs/by-name/bo/borgbackup/package.nix index afcc6d71902d..aa301a94b4c5 100644 --- a/pkgs/by-name/bo/borgbackup/package.nix +++ b/pkgs/by-name/bo/borgbackup/package.nix @@ -101,7 +101,7 @@ python.pkgs.buildPythonApplication rec { pytestCheckHook ]; - pytestFlagsArray = [ + pytestFlags = [ "--benchmark-skip" "--pyargs" "borg.testsuite" diff --git a/pkgs/by-name/br/browsr/package.nix b/pkgs/by-name/br/browsr/package.nix index f5044812fd43..7cef53974cd7 100644 --- a/pkgs/by-name/br/browsr/package.nix +++ b/pkgs/by-name/br/browsr/package.nix @@ -71,7 +71,7 @@ python3.pkgs.buildPythonApplication rec { "browsr" ]; - pytestFlagsArray = [ + pytestFlags = [ "--snapshot-update" ]; diff --git a/pkgs/by-name/de/devpi-client/package.nix b/pkgs/by-name/de/devpi-client/package.nix index 074c39d973e3..22b8ad286aff 100644 --- a/pkgs/by-name/de/devpi-client/package.nix +++ b/pkgs/by-name/de/devpi-client/package.nix @@ -56,7 +56,7 @@ python3.pkgs.buildPythonApplication rec { export HOME=$(mktemp -d); ''; - pytestFlagsArray = [ + pytestFlags = [ # --fast skips tests which try to start a devpi-server improperly "--fast" ]; diff --git a/pkgs/by-name/di/diffoscope/package.nix b/pkgs/by-name/di/diffoscope/package.nix index 81da5329a39d..fc6680b0ac49 100644 --- a/pkgs/by-name/di/diffoscope/package.nix +++ b/pkgs/by-name/di/diffoscope/package.nix @@ -259,7 +259,7 @@ python.pkgs.buildPythonApplication rec { nativeCheckInputs = with python.pkgs; [ pytestCheckHook ] ++ pythonPath; - pytestFlagsArray = [ + pytestFlags = [ # Always show more information when tests fail "-vv" ]; diff --git a/pkgs/by-name/gd/gdal/package.nix b/pkgs/by-name/gd/gdal/package.nix index 609ce18ba532..c10c88a916ca 100644 --- a/pkgs/by-name/gd/gdal/package.nix +++ b/pkgs/by-name/gd/gdal/package.nix @@ -268,7 +268,7 @@ stdenv.mkDerivation (finalAttrs: { filelock lxml ]; - pytestFlagsArray = [ + pytestFlags = [ "--benchmark-disable" ]; disabledTestPaths = [ diff --git a/pkgs/by-name/ma/maigret/package.nix b/pkgs/by-name/ma/maigret/package.nix index cdea13a209a5..581d85c0db86 100644 --- a/pkgs/by-name/ma/maigret/package.nix +++ b/pkgs/by-name/ma/maigret/package.nix @@ -80,9 +80,9 @@ python3.pkgs.buildPythonApplication rec { pythonRemoveDeps = [ "future-annotations" ]; - pytestFlagsArray = [ + pytestFlags = [ # DeprecationWarning: There is no current event loop - "-W ignore::DeprecationWarning" + "-Wignore::DeprecationWarning" ]; disabledTests = diff --git a/pkgs/by-name/me/memtree/package.nix b/pkgs/by-name/me/memtree/package.nix index aa39b2aa2250..d4f28d716982 100644 --- a/pkgs/by-name/me/memtree/package.nix +++ b/pkgs/by-name/me/memtree/package.nix @@ -32,7 +32,7 @@ python3Packages.buildPythonApplication { pytestCheckHook ]; - pytestFlagsArray = [ "-v" ]; + pytestFlags = [ "-v" ]; pythonImportsCheck = [ "memtree" ]; passthru.updateScript = nix-update-script { diff --git a/pkgs/by-name/ni/nixos-rebuild-ng/package.nix b/pkgs/by-name/ni/nixos-rebuild-ng/package.nix index 8590cc90549a..51601bb10880 100644 --- a/pkgs/by-name/ni/nixos-rebuild-ng/package.nix +++ b/pkgs/by-name/ni/nixos-rebuild-ng/package.nix @@ -77,7 +77,7 @@ python3Packages.buildPythonApplication rec { pytestCheckHook ]; - pytestFlagsArray = [ "-vv" ]; + pytestFlags = [ "-vv" ]; makeWrapperArgs = lib.optionals (withTmpdir != null) [ "--set TMPDIR ${withTmpdir}" diff --git a/pkgs/by-name/pr/pre-commit/package.nix b/pkgs/by-name/pr/pre-commit/package.nix index d3fe6c9f57ce..0910b550be66 100644 --- a/pkgs/by-name/pr/pre-commit/package.nix +++ b/pkgs/by-name/pr/pre-commit/package.nix @@ -103,7 +103,7 @@ python3Packages.buildPythonApplication rec { patchShebangs pre_commit/resources/hook-tmpl ''; - pytestFlagsArray = [ + pytestFlags = [ "--forked" ]; diff --git a/pkgs/by-name/pr/pretix/package.nix b/pkgs/by-name/pr/pretix/package.nix index 8743450e547d..d26869cc1794 100644 --- a/pkgs/by-name/pr/pretix/package.nix +++ b/pkgs/by-name/pr/pretix/package.nix @@ -245,9 +245,8 @@ python.pkgs.buildPythonApplication rec { ] ++ lib.flatten (lib.attrValues optional-dependencies); - pytestFlagsArray = [ - "--reruns" - "3" + pytestFlags = [ + "--reruns=3" ]; disabledTests = [ diff --git a/pkgs/by-name/sn/snowflake-cli/package.nix b/pkgs/by-name/sn/snowflake-cli/package.nix index 694a094c50cd..709bb409b819 100644 --- a/pkgs/by-name/sn/snowflake-cli/package.nix +++ b/pkgs/by-name/sn/snowflake-cli/package.nix @@ -52,9 +52,7 @@ python3Packages.buildPythonApplication rec { pytest-httpserver ]; - pytestFlagsArray = [ - "-n" - "$NIX_BUILD_CORES" + pytestFlags = [ "--snapshot-warn-unused" ]; diff --git a/pkgs/development/embedded/fpga/apio/default.nix b/pkgs/development/embedded/fpga/apio/default.nix index 85e011d22dc1..8708ad84bf7d 100644 --- a/pkgs/development/embedded/fpga/apio/default.nix +++ b/pkgs/development/embedded/fpga/apio/default.nix @@ -76,7 +76,7 @@ buildPythonApplication rec { "test2" ]; - pytestFlagsArray = [ "--offline" ]; + pytestFlags = [ "--offline" ]; strictDeps = true; diff --git a/pkgs/development/python-modules/aioazuredevops/default.nix b/pkgs/development/python-modules/aioazuredevops/default.nix index db244468ca8c..806880082f24 100644 --- a/pkgs/development/python-modules/aioazuredevops/default.nix +++ b/pkgs/development/python-modules/aioazuredevops/default.nix @@ -65,7 +65,7 @@ buildPythonPackage rec { "test_get_build" ]; - pytestFlagsArray = [ "--snapshot-update" ]; + pytestFlags = [ "--snapshot-update" ]; pythonImportsCheck = [ "aioazuredevops" ]; diff --git a/pkgs/development/python-modules/aioelectricitymaps/default.nix b/pkgs/development/python-modules/aioelectricitymaps/default.nix index ca8b267c2f0f..af761db4b26f 100644 --- a/pkgs/development/python-modules/aioelectricitymaps/default.nix +++ b/pkgs/development/python-modules/aioelectricitymaps/default.nix @@ -52,7 +52,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "aioelectricitymaps" ]; # https://github.com/jpbede/aioelectricitymaps/pull/415 - pytestFlagsArray = [ "--snapshot-update" ]; + pytestFlags = [ "--snapshot-update" ]; meta = with lib; { description = "Module for interacting with Electricity maps"; diff --git a/pkgs/development/python-modules/aiogithubapi/default.nix b/pkgs/development/python-modules/aiogithubapi/default.nix index 8d948ef3f24f..414f6b1ba250 100644 --- a/pkgs/development/python-modules/aiogithubapi/default.nix +++ b/pkgs/development/python-modules/aiogithubapi/default.nix @@ -55,7 +55,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ "--asyncio-mode=auto" ]; + pytestFlags = [ "--asyncio-mode=auto" ]; preCheck = '' export HOME=$(mktemp -d) diff --git a/pkgs/development/python-modules/aiohttp-jinja2/default.nix b/pkgs/development/python-modules/aiohttp-jinja2/default.nix index 57af49298227..b1994904e104 100644 --- a/pkgs/development/python-modules/aiohttp-jinja2/default.nix +++ b/pkgs/development/python-modules/aiohttp-jinja2/default.nix @@ -38,9 +38,8 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::DeprecationWarning" ]; pythonImportsCheck = [ "aiohttp_jinja2" ]; diff --git a/pkgs/development/python-modules/aiohttp-retry/default.nix b/pkgs/development/python-modules/aiohttp-retry/default.nix index a94e4d8b4646..faea017d26fd 100644 --- a/pkgs/development/python-modules/aiohttp-retry/default.nix +++ b/pkgs/development/python-modules/aiohttp-retry/default.nix @@ -36,7 +36,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "aiohttp_retry" ]; - pytestFlagsArray = [ "--asyncio-mode=auto" ]; + pytestFlags = [ "--asyncio-mode=auto" ]; meta = with lib; { description = "Retry client for aiohttp"; diff --git a/pkgs/development/python-modules/aiosyncthing/default.nix b/pkgs/development/python-modules/aiosyncthing/default.nix index 08e1599f4597..6385bac8e10d 100644 --- a/pkgs/development/python-modules/aiosyncthing/default.nix +++ b/pkgs/development/python-modules/aiosyncthing/default.nix @@ -41,7 +41,7 @@ buildPythonPackage rec { pytest-mock ]; - pytestFlagsArray = [ "--asyncio-mode=auto" ]; + pytestFlags = [ "--asyncio-mode=auto" ]; pythonImportsCheck = [ "aiosyncthing" ]; diff --git a/pkgs/development/python-modules/aiounifi/default.nix b/pkgs/development/python-modules/aiounifi/default.nix index 6a170f7a5185..53784fc50cf7 100644 --- a/pkgs/development/python-modules/aiounifi/default.nix +++ b/pkgs/development/python-modules/aiounifi/default.nix @@ -52,7 +52,7 @@ buildPythonPackage rec { trustme ]; - pytestFlagsArray = [ "--asyncio-mode=auto" ]; + pytestFlags = [ "--asyncio-mode=auto" ]; pythonImportsCheck = [ "aiounifi" ]; diff --git a/pkgs/development/python-modules/aiowaqi/default.nix b/pkgs/development/python-modules/aiowaqi/default.nix index 5a1c0488996a..fbdf613c443c 100644 --- a/pkgs/development/python-modules/aiowaqi/default.nix +++ b/pkgs/development/python-modules/aiowaqi/default.nix @@ -51,7 +51,7 @@ buildPythonPackage rec { "test_search" ]; - pytestFlagsArray = [ "--snapshot-update" ]; + pytestFlags = [ "--snapshot-update" ]; meta = with lib; { description = "Module to interact with the WAQI API"; diff --git a/pkgs/development/python-modules/aiowithings/default.nix b/pkgs/development/python-modules/aiowithings/default.nix index 527072eb4824..a728f0a61b20 100644 --- a/pkgs/development/python-modules/aiowithings/default.nix +++ b/pkgs/development/python-modules/aiowithings/default.nix @@ -44,7 +44,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "aiowithings" ]; - pytestFlagsArray = [ "--snapshot-update" ]; + pytestFlags = [ "--snapshot-update" ]; disabledTests = [ # Tests require network access diff --git a/pkgs/development/python-modules/amqtt/default.nix b/pkgs/development/python-modules/amqtt/default.nix index a04da6074231..fb4c667edb7f 100644 --- a/pkgs/development/python-modules/amqtt/default.nix +++ b/pkgs/development/python-modules/amqtt/default.nix @@ -55,7 +55,7 @@ buildPythonPackage { pytestCheckHook ]; - pytestFlagsArray = [ "--asyncio-mode=auto" ]; + pytestFlags = [ "--asyncio-mode=auto" ]; disabledTests = lib.optionals (pythonAtLeast "3.12") [ # stuck in epoll diff --git a/pkgs/development/python-modules/androguard/default.nix b/pkgs/development/python-modules/androguard/default.nix index 7349d4f5d705..26a930fbda84 100644 --- a/pkgs/development/python-modules/androguard/default.nix +++ b/pkgs/development/python-modules/androguard/default.nix @@ -84,7 +84,7 @@ buildPythonPackage rec { ]; # If it won't be verbose, you'll see nothing going on for a long time. - pytestFlagsArray = [ "--verbose" ]; + pytestFlags = [ "--verbose" ]; preFixup = lib.optionalString withGui '' makeWrapperArgs+=("''${qtWrapperArgs[@]}") diff --git a/pkgs/development/python-modules/anthropic/default.nix b/pkgs/development/python-modules/anthropic/default.nix index de7f25e359e7..1b310238ca95 100644 --- a/pkgs/development/python-modules/anthropic/default.nix +++ b/pkgs/development/python-modules/anthropic/default.nix @@ -86,9 +86,8 @@ buildPythonPackage rec { "tests/lib/test_bedrock.py" ]; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::DeprecationWarning" ]; meta = { diff --git a/pkgs/development/python-modules/ariadne/default.nix b/pkgs/development/python-modules/ariadne/default.nix index ed617ed04164..2a8365960e73 100644 --- a/pkgs/development/python-modules/ariadne/default.nix +++ b/pkgs/development/python-modules/ariadne/default.nix @@ -54,7 +54,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "ariadne" ]; - pytestFlagsArray = [ "--snapshot-update" ]; + pytestFlags = [ "--snapshot-update" ]; disabledTests = [ # TypeError: TestClient.request() got an unexpected keyword argument 'content' diff --git a/pkgs/development/python-modules/aspectlib/default.nix b/pkgs/development/python-modules/aspectlib/default.nix index 752484f21374..8e18c25dc560 100644 --- a/pkgs/development/python-modules/aspectlib/default.nix +++ b/pkgs/development/python-modules/aspectlib/default.nix @@ -50,7 +50,7 @@ buildPythonPackage rec { tornado ]; - pytestFlagsArray = [ "-W ignore::DeprecationWarning" ]; + pytestFlags = [ "-Wignore::DeprecationWarning" ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/astropy/default.nix b/pkgs/development/python-modules/astropy/default.nix index 54d41608b31c..ef5064675c7c 100644 --- a/pkgs/development/python-modules/astropy/default.nix +++ b/pkgs/development/python-modules/astropy/default.nix @@ -142,7 +142,7 @@ buildPythonPackage rec { # https://github.com/NixOS/nixpkgs/issues/255262 cd "$out" ''; - pytestFlagsArray = [ + pytestFlags = [ "--hypothesis-profile=ci" ]; postCheck = '' diff --git a/pkgs/development/python-modules/astroquery/default.nix b/pkgs/development/python-modules/astroquery/default.nix index 94ee306cd74e..ff82ba44b9e3 100644 --- a/pkgs/development/python-modules/astroquery/default.nix +++ b/pkgs/development/python-modules/astroquery/default.nix @@ -62,10 +62,9 @@ buildPythonPackage rec { pytest-rerunfailures ]; - pytestFlagsArray = [ + pytestFlags = [ # DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13 - "-W" - "ignore::DeprecationWarning" + "-Wignore::DeprecationWarning" ]; # Tests must be run in the build directory. The tests create files diff --git a/pkgs/development/python-modules/asyncclick/default.nix b/pkgs/development/python-modules/asyncclick/default.nix index c5e40061f262..a6064cada31e 100644 --- a/pkgs/development/python-modules/asyncclick/default.nix +++ b/pkgs/development/python-modules/asyncclick/default.nix @@ -32,9 +32,8 @@ buildPythonPackage rec { trio ]; - pytestFlagsArray = [ - "-W" - "ignore::trio.TrioDeprecationWarning" + pytestFlags = [ + "-Wignore::trio.TrioDeprecationWarning" ]; disabledTests = [ diff --git a/pkgs/development/python-modules/bindep/default.nix b/pkgs/development/python-modules/bindep/default.nix index 54355d076662..e4944cceaeae 100644 --- a/pkgs/development/python-modules/bindep/default.nix +++ b/pkgs/development/python-modules/bindep/default.nix @@ -49,7 +49,7 @@ buildPythonPackage rec { export PATH=$PATH:$out/bin ''; - pytestFlagsArray = [ "-s" ]; + pytestFlags = [ "-s" ]; pythonImportsCheck = [ "bindep" ]; diff --git a/pkgs/development/python-modules/bitstring/default.nix b/pkgs/development/python-modules/bitstring/default.nix index 75a0713efcaf..d510271cbae9 100644 --- a/pkgs/development/python-modules/bitstring/default.nix +++ b/pkgs/development/python-modules/bitstring/default.nix @@ -34,7 +34,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ + pytestFlags = [ "--benchmark-disable" ]; diff --git a/pkgs/development/python-modules/black/default.nix b/pkgs/development/python-modules/black/default.nix index 37c8e876fa62..3bc806517864 100644 --- a/pkgs/development/python-modules/black/default.nix +++ b/pkgs/development/python-modules/black/default.nix @@ -73,9 +73,8 @@ buildPythonPackage rec { parameterized ] ++ lib.flatten (lib.attrValues optional-dependencies); - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::DeprecationWarning" ]; preCheck = diff --git a/pkgs/development/python-modules/blackjax/default.nix b/pkgs/development/python-modules/blackjax/default.nix index 7228669a13f9..e982cfcd9c23 100644 --- a/pkgs/development/python-modules/blackjax/default.nix +++ b/pkgs/development/python-modules/blackjax/default.nix @@ -49,10 +49,9 @@ buildPythonPackage rec { pytest-xdist ]; - pytestFlagsArray = [ + pytestFlags = [ # DeprecationWarning: JAXopt is no longer maintained - "-W" - "ignore::DeprecationWarning" + "-Wignore::DeprecationWarning" ]; disabledTestPaths = [ diff --git a/pkgs/development/python-modules/bluetooth-data-tools/default.nix b/pkgs/development/python-modules/bluetooth-data-tools/default.nix index 9f73d52bbc24..8a69525e7475 100644 --- a/pkgs/development/python-modules/bluetooth-data-tools/default.nix +++ b/pkgs/development/python-modules/bluetooth-data-tools/default.nix @@ -47,7 +47,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ "--benchmark-disable" ]; + pytestFlags = [ "--benchmark-disable" ]; pythonImportsCheck = [ "bluetooth_data_tools" ]; diff --git a/pkgs/development/python-modules/buienradar/default.nix b/pkgs/development/python-modules/buienradar/default.nix index 30eb1ec3eefe..e068e0655bf9 100644 --- a/pkgs/development/python-modules/buienradar/default.nix +++ b/pkgs/development/python-modules/buienradar/default.nix @@ -58,7 +58,7 @@ buildPythonPackage rec { "test_readdata3" ]; - pytestFlagsArray = [ + pytestFlags = [ "--snapshot-warn-unused" ]; diff --git a/pkgs/development/python-modules/build/default.nix b/pkgs/development/python-modules/build/default.nix index ec12662ecc45..15b3a5965482 100644 --- a/pkgs/development/python-modules/build/default.nix +++ b/pkgs/development/python-modules/build/default.nix @@ -70,9 +70,8 @@ buildPythonPackage rec { wheel ]; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::DeprecationWarning" ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/certbot-dns-cloudflare/default.nix b/pkgs/development/python-modules/certbot-dns-cloudflare/default.nix index 257ed1daa9a6..f1872a0abbe6 100644 --- a/pkgs/development/python-modules/certbot-dns-cloudflare/default.nix +++ b/pkgs/development/python-modules/certbot-dns-cloudflare/default.nix @@ -27,12 +27,11 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "-p no:cacheprovider" + pytestFlags = [ + "-pno:cacheprovider" # Monitor https://github.com/certbot/certbot/issues/9606 for a solution - "-W" - "ignore::DeprecationWarning" + "-Wignore::DeprecationWarning" ]; meta = certbot.meta // { diff --git a/pkgs/development/python-modules/certbot-dns-google/default.nix b/pkgs/development/python-modules/certbot-dns-google/default.nix index ed1d24e44ba4..d3a19d066350 100644 --- a/pkgs/development/python-modules/certbot-dns-google/default.nix +++ b/pkgs/development/python-modules/certbot-dns-google/default.nix @@ -26,8 +26,8 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "-p no:cacheprovider" + pytestFlags = [ + "-pno:cacheprovider" ]; meta = certbot.meta // { diff --git a/pkgs/development/python-modules/certbot-dns-ovh/default.nix b/pkgs/development/python-modules/certbot-dns-ovh/default.nix index 5c71ebee3d78..82132011ddb9 100644 --- a/pkgs/development/python-modules/certbot-dns-ovh/default.nix +++ b/pkgs/development/python-modules/certbot-dns-ovh/default.nix @@ -27,12 +27,11 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "-p no:cacheprovider" + pytestFlags = [ + "-pno:cacheprovider" # Monitor https://github.com/certbot/certbot/issues/9606 for a solution - "-W" - "ignore::DeprecationWarning" + "-Wignore::DeprecationWarning" ]; meta = certbot.meta // { diff --git a/pkgs/development/python-modules/certbot-dns-rfc2136/default.nix b/pkgs/development/python-modules/certbot-dns-rfc2136/default.nix index c870636194d2..a3f483eff601 100644 --- a/pkgs/development/python-modules/certbot-dns-rfc2136/default.nix +++ b/pkgs/development/python-modules/certbot-dns-rfc2136/default.nix @@ -24,12 +24,11 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "-p no:cacheprovider" + pytestFlags = [ + "-pno:cacheprovider" # Monitor https://github.com/certbot/certbot/issues/9606 for a solution - "-W" - "ignore::DeprecationWarning" + "-Wignore::DeprecationWarning" ]; meta = certbot.meta // { diff --git a/pkgs/development/python-modules/certbot-dns-route53/default.nix b/pkgs/development/python-modules/certbot-dns-route53/default.nix index a8e3f476350c..bf05e23a8dc6 100644 --- a/pkgs/development/python-modules/certbot-dns-route53/default.nix +++ b/pkgs/development/python-modules/certbot-dns-route53/default.nix @@ -27,12 +27,11 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "-p no:cacheprovider" + pytestFlags = [ + "-pno:cacheprovider" # Monitor https://github.com/certbot/certbot/issues/9606 for a solution - "-W" - "ignore::DeprecationWarning" + "-Wignore::DeprecationWarning" ]; meta = certbot.meta // { diff --git a/pkgs/development/python-modules/certbot/default.nix b/pkgs/development/python-modules/certbot/default.nix index 70ad22558a2f..08cb1c05d5e5 100644 --- a/pkgs/development/python-modules/certbot/default.nix +++ b/pkgs/development/python-modules/certbot/default.nix @@ -61,10 +61,9 @@ buildPythonPackage rec { pytest-xdist ]; - pytestFlagsArray = [ - "-p no:cacheprovider" - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-pno:cacheprovider" + "-Wignore::DeprecationWarning" ]; makeWrapperArgs = [ "--prefix PATH : ${dialog}/bin" ]; diff --git a/pkgs/development/python-modules/cherrypy/default.nix b/pkgs/development/python-modules/cherrypy/default.nix index fbef13be43ad..240cbc60a50f 100644 --- a/pkgs/development/python-modules/cherrypy/default.nix +++ b/pkgs/development/python-modules/cherrypy/default.nix @@ -66,9 +66,8 @@ buildPythonPackage rec { export CI=true ''; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::DeprecationWarning" ]; disabledTests = diff --git a/pkgs/development/python-modules/chromadb/default.nix b/pkgs/development/python-modules/chromadb/default.nix index cf2aaa3dc9fa..9f7a1bfbbdf6 100644 --- a/pkgs/development/python-modules/chromadb/default.nix +++ b/pkgs/development/python-modules/chromadb/default.nix @@ -181,13 +181,11 @@ buildPythonPackage rec { SWAGGER_UI_DOWNLOAD_URL = "file://${swagger-ui}"; }; - pytestFlagsArray = [ + pytestFlags = [ "-x" # these are slow tests, so stop on the first failure "-v" - "-W" - "ignore:DeprecationWarning" - "-W" - "ignore:PytestCollectionWarning" + "-Wignore:DeprecationWarning" + "-Wignore:PytestCollectionWarning" ]; preCheck = '' diff --git a/pkgs/development/python-modules/colour/default.nix b/pkgs/development/python-modules/colour/default.nix index de2006bacb2d..7635affe7b8b 100644 --- a/pkgs/development/python-modules/colour/default.nix +++ b/pkgs/development/python-modules/colour/default.nix @@ -22,8 +22,8 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "--doctest-glob=\"*.rst\"" + pytestFlags = [ + "--doctest-glob=*.rst" "--doctest-modules" ]; diff --git a/pkgs/development/python-modules/connect-box/default.nix b/pkgs/development/python-modules/connect-box/default.nix index be300f03c182..f0a52e39b249 100644 --- a/pkgs/development/python-modules/connect-box/default.nix +++ b/pkgs/development/python-modules/connect-box/default.nix @@ -44,7 +44,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "connect_box" ]; - pytestFlagsArray = [ "--vcr-record=none" ]; + pytestFlags = [ "--vcr-record=none" ]; meta = with lib; { description = "Interact with a Compal CH7465LG cable modem/router"; diff --git a/pkgs/development/python-modules/cons/default.nix b/pkgs/development/python-modules/cons/default.nix index b7ecf05e72d0..2bf66255fd27 100644 --- a/pkgs/development/python-modules/cons/default.nix +++ b/pkgs/development/python-modules/cons/default.nix @@ -31,7 +31,7 @@ buildPythonPackage rec { pytest-html ]; - pytestFlagsArray = [ + pytestFlags = [ "--html=testing-report.html" "--self-contained-html" ]; diff --git a/pkgs/development/python-modules/cryptography/default.nix b/pkgs/development/python-modules/cryptography/default.nix index 055ac3a4eac5..27e2e0b7b800 100644 --- a/pkgs/development/python-modules/cryptography/default.nix +++ b/pkgs/development/python-modules/cryptography/default.nix @@ -69,7 +69,7 @@ buildPythonPackage rec { pytest-xdist ] ++ optional-dependencies.ssh; - pytestFlagsArray = [ "--disable-pytest-warnings" ]; + pytestFlags = [ "--disable-pytest-warnings" ]; disabledTestPaths = [ # save compute time by not running benchmarks diff --git a/pkgs/development/python-modules/cypherpunkpay/default.nix b/pkgs/development/python-modules/cypherpunkpay/default.nix index 1a19caa734c4..f9eee1ec1e5b 100644 --- a/pkgs/development/python-modules/cypherpunkpay/default.nix +++ b/pkgs/development/python-modules/cypherpunkpay/default.nix @@ -77,9 +77,8 @@ buildPythonPackage rec { webtest ]; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::DeprecationWarning" ]; disabledTestPaths = [ diff --git a/pkgs/development/python-modules/datafusion/default.nix b/pkgs/development/python-modules/datafusion/default.nix index 07961a2e2075..56c44a1e5e27 100644 --- a/pkgs/development/python-modules/datafusion/default.nix +++ b/pkgs/development/python-modules/datafusion/default.nix @@ -75,7 +75,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "datafusion" ]; - pytestFlagsArray = [ + pytestFlags = [ "--pyargs" pname ]; diff --git a/pkgs/development/python-modules/datalad/default.nix b/pkgs/development/python-modules/datalad/default.nix index d7e11df94ade..b4dd1a8b5ebf 100644 --- a/pkgs/development/python-modules/datalad/default.nix +++ b/pkgs/development/python-modules/datalad/default.nix @@ -230,10 +230,9 @@ buildPythonPackage rec { httpretty ]; - pytestFlagsArray = [ + pytestFlags = [ # Deprecated in 3.13. Use exc_type_str instead. - "-W" - "ignore::DeprecationWarning" + "-Wignore::DeprecationWarning" ]; pythonImportsCheck = [ "datalad" ]; diff --git a/pkgs/development/python-modules/deploykit/default.nix b/pkgs/development/python-modules/deploykit/default.nix index 0b2b6bde553d..1d45fe591624 100644 --- a/pkgs/development/python-modules/deploykit/default.nix +++ b/pkgs/development/python-modules/deploykit/default.nix @@ -35,7 +35,7 @@ buildPythonPackage rec { disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ "test_ssh" ]; # don't swallow stdout/stderr - pytestFlagsArray = [ "-s" ]; + pytestFlags = [ "-s" ]; pythonImportsCheck = [ "deploykit" ]; diff --git a/pkgs/development/python-modules/discovery30303/default.nix b/pkgs/development/python-modules/discovery30303/default.nix index bf498e5dcc20..958db4e7573d 100644 --- a/pkgs/development/python-modules/discovery30303/default.nix +++ b/pkgs/development/python-modules/discovery30303/default.nix @@ -31,7 +31,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ "--asyncio-mode=auto" ]; + pytestFlags = [ "--asyncio-mode=auto" ]; pythonImportsCheck = [ "discovery30303" ]; diff --git a/pkgs/development/python-modules/django-redis/default.nix b/pkgs/development/python-modules/django-redis/default.nix index 6dacbbc2e433..eff8bd123ca3 100644 --- a/pkgs/development/python-modules/django-redis/default.nix +++ b/pkgs/development/python-modules/django-redis/default.nix @@ -67,9 +67,8 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies); - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::DeprecationWarning" ]; disabledTests = [ diff --git a/pkgs/development/python-modules/dynalite-devices/default.nix b/pkgs/development/python-modules/dynalite-devices/default.nix index 351e1ac1bb25..c826f181d41e 100644 --- a/pkgs/development/python-modules/dynalite-devices/default.nix +++ b/pkgs/development/python-modules/dynalite-devices/default.nix @@ -33,7 +33,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ "--asyncio-mode=auto" ]; + pytestFlags = [ "--asyncio-mode=auto" ]; pythonImportsCheck = [ "dynalite_devices_lib" ]; diff --git a/pkgs/development/python-modules/elastic-transport/default.nix b/pkgs/development/python-modules/elastic-transport/default.nix index 394d3cd16331..fe29e2841651 100644 --- a/pkgs/development/python-modules/elastic-transport/default.nix +++ b/pkgs/development/python-modules/elastic-transport/default.nix @@ -58,9 +58,8 @@ buildPythonPackage rec { pythonImportsCheck = [ "elastic_transport" ]; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::DeprecationWarning" ]; disabledTests = [ diff --git a/pkgs/development/python-modules/etuples/default.nix b/pkgs/development/python-modules/etuples/default.nix index e9dba494ac73..855e42fa6e86 100644 --- a/pkgs/development/python-modules/etuples/default.nix +++ b/pkgs/development/python-modules/etuples/default.nix @@ -35,7 +35,7 @@ buildPythonPackage rec { pytest-html ]; - pytestFlagsArray = [ + pytestFlags = [ "--html=testing-report.html" "--self-contained-html" ]; diff --git a/pkgs/development/python-modules/execnet/default.nix b/pkgs/development/python-modules/execnet/default.nix index 5c67eb044464..550bf4399df4 100644 --- a/pkgs/development/python-modules/execnet/default.nix +++ b/pkgs/development/python-modules/execnet/default.nix @@ -51,7 +51,7 @@ buildPythonPackage rec { "test_stdouterrin_setnull" ]; - pytestFlagsArray = [ "-vvv" ]; + pytestFlags = [ "-vvv" ]; pythonImportsCheck = [ "execnet" ]; diff --git a/pkgs/development/python-modules/fairseq/default.nix b/pkgs/development/python-modules/fairseq/default.nix index c5e6bcd22f20..5db576e5e9f0 100644 --- a/pkgs/development/python-modules/fairseq/default.nix +++ b/pkgs/development/python-modules/fairseq/default.nix @@ -89,7 +89,7 @@ buildPythonPackage rec { cd tests ''; - pytestFlagsArray = [ "--import-mode append" ]; + pytestFlags = [ "--import-mode=append" ]; disabledTests = [ # this test requires xformers diff --git a/pkgs/development/python-modules/fastapi/default.nix b/pkgs/development/python-modules/fastapi/default.nix index e99f4d0d5f48..93f3d9823fc3 100644 --- a/pkgs/development/python-modules/fastapi/default.nix +++ b/pkgs/development/python-modules/fastapi/default.nix @@ -116,11 +116,11 @@ buildPythonPackage rec { ++ passlib.optional-dependencies.bcrypt ++ optional-dependencies.all; - pytestFlagsArray = [ + pytestFlags = [ # ignoring deprecation warnings to avoid test failure from # tests/test_tutorial/test_testing/test_tutorial001.py - "-W ignore::DeprecationWarning" - "-W ignore::pytest.PytestUnraisableExceptionWarning" + "-Wignore::DeprecationWarning" + "-Wignore::pytest.PytestUnraisableExceptionWarning" ]; disabledTests = [ diff --git a/pkgs/development/python-modules/fastdiff/default.nix b/pkgs/development/python-modules/fastdiff/default.nix index 4b906c6d6c1d..6d4bca13fc24 100644 --- a/pkgs/development/python-modules/fastdiff/default.nix +++ b/pkgs/development/python-modules/fastdiff/default.nix @@ -38,7 +38,7 @@ buildPythonPackage rec { pytest-benchmark ]; - pytestFlagsArray = [ "--benchmark-skip" ]; + pytestFlags = [ "--benchmark-skip" ]; pythonImportsCheck = [ "fastdiff" ]; diff --git a/pkgs/development/python-modules/fastnumbers/default.nix b/pkgs/development/python-modules/fastnumbers/default.nix index 142d3a76355c..05fa830c1421 100644 --- a/pkgs/development/python-modules/fastnumbers/default.nix +++ b/pkgs/development/python-modules/fastnumbers/default.nix @@ -39,7 +39,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ "--hypothesis-profile=standard" ]; + pytestFlags = [ "--hypothesis-profile=standard" ]; pythonImportsCheck = [ "fastnumbers" ]; diff --git a/pkgs/development/python-modules/flask-marshmallow/default.nix b/pkgs/development/python-modules/flask-marshmallow/default.nix index 13aa66bb0111..f4207bf700c8 100644 --- a/pkgs/development/python-modules/flask-marshmallow/default.nix +++ b/pkgs/development/python-modules/flask-marshmallow/default.nix @@ -43,9 +43,8 @@ buildPythonPackage rec { pythonImportsCheck = [ "flask_marshmallow" ]; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::DeprecationWarning" ]; meta = { diff --git a/pkgs/development/python-modules/flask-sqlalchemy/default.nix b/pkgs/development/python-modules/flask-sqlalchemy/default.nix index 8fe842c2b6a0..bfbe41f1860c 100644 --- a/pkgs/development/python-modules/flask-sqlalchemy/default.nix +++ b/pkgs/development/python-modules/flask-sqlalchemy/default.nix @@ -45,10 +45,9 @@ buildPythonPackage rec { "test_explicit_table" ]; - pytestFlagsArray = lib.optionals (pythonAtLeast "3.12") [ + pytestFlags = lib.optionals (pythonAtLeast "3.12") [ # datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. - "-W" - "ignore::DeprecationWarning" + "-Wignore::DeprecationWarning" ]; pythonImportsCheck = [ "flask_sqlalchemy" ]; diff --git a/pkgs/development/python-modules/flufl/lock.nix b/pkgs/development/python-modules/flufl/lock.nix index 36ef3c86a329..7fd0cf4ccaec 100644 --- a/pkgs/development/python-modules/flufl/lock.nix +++ b/pkgs/development/python-modules/flufl/lock.nix @@ -40,7 +40,7 @@ buildPythonPackage rec { # disable code coverage checks for all OS. Upstream does not enforce these # checks on Darwin, and code coverage cannot be improved downstream nor is it # relevant to the user. - pytestFlagsArray = [ "--no-cov" ]; + pytestFlags = [ "--no-cov" ]; pythonImportsCheck = [ "flufl.lock" ]; diff --git a/pkgs/development/python-modules/fyta-cli/default.nix b/pkgs/development/python-modules/fyta-cli/default.nix index 75c6d6e7c1f1..c81ec0c160a6 100644 --- a/pkgs/development/python-modules/fyta-cli/default.nix +++ b/pkgs/development/python-modules/fyta-cli/default.nix @@ -42,7 +42,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "fyta_cli" ]; - pytestFlagsArray = [ "--snapshot-update" ]; + pytestFlags = [ "--snapshot-update" ]; meta = with lib; { description = "Module to access the FYTA API"; diff --git a/pkgs/development/python-modules/geopy/default.nix b/pkgs/development/python-modules/geopy/default.nix index 775044f95eef..b9cf371ab744 100644 --- a/pkgs/development/python-modules/geopy/default.nix +++ b/pkgs/development/python-modules/geopy/default.nix @@ -38,7 +38,7 @@ buildPythonPackage rec { disabledTestPaths = lib.optionals (pythonAtLeast "3.12") [ "test/test_init.py" ]; - pytestFlagsArray = [ "--skip-tests-requiring-internet" ]; + pytestFlags = [ "--skip-tests-requiring-internet" ]; pythonImportsCheck = [ "geopy" ]; diff --git a/pkgs/development/python-modules/graphene/default.nix b/pkgs/development/python-modules/graphene/default.nix index 68e03c415e06..76689c5c555f 100644 --- a/pkgs/development/python-modules/graphene/default.nix +++ b/pkgs/development/python-modules/graphene/default.nix @@ -44,7 +44,7 @@ buildPythonPackage rec { pytest-mock ]; - pytestFlagsArray = [ "--benchmark-disable" ]; + pytestFlags = [ "--benchmark-disable" ]; pythonImportsCheck = [ "graphene" ]; diff --git a/pkgs/development/python-modules/grpc-google-iam-v1/default.nix b/pkgs/development/python-modules/grpc-google-iam-v1/default.nix index 47adf6c231dc..c0aaca146664 100644 --- a/pkgs/development/python-modules/grpc-google-iam-v1/default.nix +++ b/pkgs/development/python-modules/grpc-google-iam-v1/default.nix @@ -36,9 +36,8 @@ buildPythonPackage rec { "google.iam.v1" ]; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::DeprecationWarning" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/guessit/default.nix b/pkgs/development/python-modules/guessit/default.nix index c86ecb59ef33..6efbb7693c81 100644 --- a/pkgs/development/python-modules/guessit/default.nix +++ b/pkgs/development/python-modules/guessit/default.nix @@ -38,7 +38,7 @@ buildPythonPackage rec { pyyaml ]; - pytestFlagsArray = [ "--benchmark-disable" ]; + pytestFlags = [ "--benchmark-disable" ]; pythonImportsCheck = [ "guessit" ]; diff --git a/pkgs/development/python-modules/habiticalib/default.nix b/pkgs/development/python-modules/habiticalib/default.nix index d10e2ca5760e..eda906ce4afe 100644 --- a/pkgs/development/python-modules/habiticalib/default.nix +++ b/pkgs/development/python-modules/habiticalib/default.nix @@ -52,7 +52,7 @@ buildPythonPackage rec { syrupy ]; - pytestFlagsArray = [ "--snapshot-update" ]; + pytestFlags = [ "--snapshot-update" ]; pythonImportsCheck = [ "habiticalib" ]; diff --git a/pkgs/development/python-modules/hmmlearn/default.nix b/pkgs/development/python-modules/hmmlearn/default.nix index e9183014eaa7..deaaa0362269 100644 --- a/pkgs/development/python-modules/hmmlearn/default.nix +++ b/pkgs/development/python-modules/hmmlearn/default.nix @@ -38,7 +38,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "hmmlearn" ]; - pytestFlagsArray = [ + pytestFlags = [ "--pyargs" "hmmlearn" ]; diff --git a/pkgs/development/python-modules/homematicip/default.nix b/pkgs/development/python-modules/homematicip/default.nix index e7f7530d152a..03372c9c4030 100644 --- a/pkgs/development/python-modules/homematicip/default.nix +++ b/pkgs/development/python-modules/homematicip/default.nix @@ -46,7 +46,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ "--asyncio-mode=auto" ]; + pytestFlags = [ "--asyncio-mode=auto" ]; disabledTests = [ # Assert issues with datetime diff --git a/pkgs/development/python-modules/httpx/default.nix b/pkgs/development/python-modules/httpx/default.nix index 17b2012c8b37..6602f1be45e7 100644 --- a/pkgs/development/python-modules/httpx/default.nix +++ b/pkgs/development/python-modules/httpx/default.nix @@ -85,11 +85,9 @@ buildPythonPackage rec { export PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH ''; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" - "-W" - "ignore::trio.TrioDeprecationWarning" + pytestFlags = [ + "-Wignore::DeprecationWarning" + "-Wignore::trio.TrioDeprecationWarning" ]; disabledTests = [ diff --git a/pkgs/development/python-modules/hydra-core/default.nix b/pkgs/development/python-modules/hydra-core/default.nix index 1484503de7aa..5a7b10b2b841 100644 --- a/pkgs/development/python-modules/hydra-core/default.nix +++ b/pkgs/development/python-modules/hydra-core/default.nix @@ -72,9 +72,8 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "-W" - "ignore::UserWarning" + pytestFlags = [ + "-Wignore::UserWarning" ]; # Test environment setup broken under Nix for a few tests: diff --git a/pkgs/development/python-modules/icontract/default.nix b/pkgs/development/python-modules/icontract/default.nix index d5584869bc69..c3005903d75a 100644 --- a/pkgs/development/python-modules/icontract/default.nix +++ b/pkgs/development/python-modules/icontract/default.nix @@ -67,10 +67,9 @@ buildPythonPackage rec { "tests/test_typeguard.py" ]; - pytestFlagsArray = [ + pytestFlags = [ # RuntimeWarning: coroutine '*' was never awaited - "-W" - "ignore::RuntimeWarning" + "-Wignore::RuntimeWarning" ]; pythonImportsCheck = [ "icontract" ]; diff --git a/pkgs/development/python-modules/ifcopenshell/default.nix b/pkgs/development/python-modules/ifcopenshell/default.nix index b225756302d6..c7129931b7cc 100644 --- a/pkgs/development/python-modules/ifcopenshell/default.nix +++ b/pkgs/development/python-modules/ifcopenshell/default.nix @@ -183,8 +183,8 @@ buildPythonPackage rec { popd ''; - pytestFlagsArray = [ - "-p no:pytest-blender" + pytestFlags = [ + "-pno:pytest-blender" ]; disabledTestPaths = [ diff --git a/pkgs/development/python-modules/imread/default.nix b/pkgs/development/python-modules/imread/default.nix index 632a3aefb8d9..cedd3a7ee1e6 100644 --- a/pkgs/development/python-modules/imread/default.nix +++ b/pkgs/development/python-modules/imread/default.nix @@ -37,7 +37,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ + pytestFlags = [ # verbose build outputs needed to debug hard-to-reproduce hydra failures "-v" "--pyargs" diff --git a/pkgs/development/python-modules/janus/default.nix b/pkgs/development/python-modules/janus/default.nix index 62366b1ddd78..b4cfb2d61264 100644 --- a/pkgs/development/python-modules/janus/default.nix +++ b/pkgs/development/python-modules/janus/default.nix @@ -31,7 +31,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ "--benchmark-disable" ]; + pytestFlags = [ "--benchmark-disable" ]; meta = with lib; { description = "Mixed sync-async queue"; diff --git a/pkgs/development/python-modules/jupyter-core/default.nix b/pkgs/development/python-modules/jupyter-core/default.nix index 9684013f350f..ef123821e43f 100644 --- a/pkgs/development/python-modules/jupyter-core/default.nix +++ b/pkgs/development/python-modules/jupyter-core/default.nix @@ -45,9 +45,9 @@ buildPythonPackage rec { export HOME=$TMPDIR ''; - pytestFlagsArray = [ + pytestFlags = [ # suppress pytest.PytestUnraisableExceptionWarning: Exception ignored in: - "-W ignore::pytest.PytestUnraisableExceptionWarning" + "-Wignore::pytest.PytestUnraisableExceptionWarning" ]; disabledTests = [ diff --git a/pkgs/development/python-modules/jupyter-packaging/default.nix b/pkgs/development/python-modules/jupyter-packaging/default.nix index 517ccefadf5d..d1c9851f7655 100644 --- a/pkgs/development/python-modules/jupyter-packaging/default.nix +++ b/pkgs/development/python-modules/jupyter-packaging/default.nix @@ -47,7 +47,7 @@ buildPythonPackage rec { pytest-timeout ]; - pytestFlagsArray = [ "-Wignore::DeprecationWarning" ]; + pytestFlags = [ "-Wignore::DeprecationWarning" ]; preCheck = '' export HOME=$(mktemp -d) diff --git a/pkgs/development/python-modules/jupyter-server/default.nix b/pkgs/development/python-modules/jupyter-server/default.nix index 449f13a74689..a42c206058f7 100644 --- a/pkgs/development/python-modules/jupyter-server/default.nix +++ b/pkgs/development/python-modules/jupyter-server/default.nix @@ -86,14 +86,12 @@ buildPythonPackage rec { flaky ]; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::DeprecationWarning" # 19 failures on python 3.13: # ResourceWarning: unclosed database in # TODO: Can probably be removed at the next update - "-W" - "ignore::pytest.PytestUnraisableExceptionWarning" + "-Wignore::pytest.PytestUnraisableExceptionWarning" ]; preCheck = '' diff --git a/pkgs/development/python-modules/jupyterlab-server/default.nix b/pkgs/development/python-modules/jupyterlab-server/default.nix index 968afeb9cce8..0bd3fb162a24 100644 --- a/pkgs/development/python-modules/jupyterlab-server/default.nix +++ b/pkgs/development/python-modules/jupyterlab-server/default.nix @@ -67,9 +67,8 @@ buildPythonPackage rec { export HOME=$(mktemp -d) ''; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::DeprecationWarning" ]; disabledTestPaths = [ diff --git a/pkgs/development/python-modules/langgraph-prebuilt/default.nix b/pkgs/development/python-modules/langgraph-prebuilt/default.nix index 5e41724eebb7..30cecc12a919 100644 --- a/pkgs/development/python-modules/langgraph-prebuilt/default.nix +++ b/pkgs/development/python-modules/langgraph-prebuilt/default.nix @@ -73,11 +73,9 @@ buildPythonPackage rec { export PYTHONPATH=${src}/libs/langgraph:$PYTHONPATH ''; - pytestFlagsArray = [ - "-W" - "ignore::pytest.PytestDeprecationWarning" - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::pytest.PytestDeprecationWarning" + "-Wignore::DeprecationWarning" ]; disabledTestPaths = [ diff --git a/pkgs/development/python-modules/logical-unification/default.nix b/pkgs/development/python-modules/logical-unification/default.nix index ef0bf25cc8ff..f3b5d6e990be 100644 --- a/pkgs/development/python-modules/logical-unification/default.nix +++ b/pkgs/development/python-modules/logical-unification/default.nix @@ -40,7 +40,7 @@ buildPythonPackage rec { "test_reify_recursion_limit" ]; - pytestFlagsArray = [ + pytestFlags = [ "--benchmark-skip" "--html=testing-report.html" "--self-contained-html" diff --git a/pkgs/development/python-modules/marshmallow-dataclass/default.nix b/pkgs/development/python-modules/marshmallow-dataclass/default.nix index 7a2ebe81d97b..dd4d851bc5ff 100644 --- a/pkgs/development/python-modules/marshmallow-dataclass/default.nix +++ b/pkgs/development/python-modules/marshmallow-dataclass/default.nix @@ -38,10 +38,9 @@ buildPythonPackage rec { typeguard ]; - pytestFlagsArray = [ + pytestFlags = [ # DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. - "-W" - "ignore::DeprecationWarning" + "-Wignore::DeprecationWarning" ]; disabledTests = lib.optionals (pythonAtLeast "3.10") [ diff --git a/pkgs/development/python-modules/matrix-nio/default.nix b/pkgs/development/python-modules/matrix-nio/default.nix index a219fa49c817..3bbf04b5d3f6 100644 --- a/pkgs/development/python-modules/matrix-nio/default.nix +++ b/pkgs/development/python-modules/matrix-nio/default.nix @@ -97,7 +97,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ "--benchmark-disable" ]; + pytestFlags = [ "--benchmark-disable" ]; disabledTestPaths = lib.optionals (!withOlm) [ "tests/encryption_test.py" diff --git a/pkgs/development/python-modules/mcp/default.nix b/pkgs/development/python-modules/mcp/default.nix index ed05bed977be..c72cfe1a8f85 100644 --- a/pkgs/development/python-modules/mcp/default.nix +++ b/pkgs/development/python-modules/mcp/default.nix @@ -96,9 +96,8 @@ buildPythonPackage rec { requests ] ++ lib.flatten (lib.attrValues optional-dependencies); - pytestFlagsArray = [ - "-W" - "ignore::pydantic.warnings.PydanticDeprecatedSince211" + pytestFlags = [ + "-Wignore::pydantic.warnings.PydanticDeprecatedSince211" ]; disabledTests = diff --git a/pkgs/development/python-modules/minikanren/default.nix b/pkgs/development/python-modules/minikanren/default.nix index 7ac0d401096a..9e28d4c6bb8d 100644 --- a/pkgs/development/python-modules/minikanren/default.nix +++ b/pkgs/development/python-modules/minikanren/default.nix @@ -38,7 +38,7 @@ buildPythonPackage { pytest-html ]; - pytestFlagsArray = [ + pytestFlags = [ "--html=testing-report.html" "--self-contained-html" ]; diff --git a/pkgs/development/python-modules/mlrose/default.nix b/pkgs/development/python-modules/mlrose/default.nix index 284222299cd3..8e303b4de62f 100644 --- a/pkgs/development/python-modules/mlrose/default.nix +++ b/pkgs/development/python-modules/mlrose/default.nix @@ -45,7 +45,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "mlrose" ]; # Fix random seed during tests - pytestFlagsArray = [ "--randomly-seed 0" ]; + pytestFlags = [ "--randomly-seed=0" ]; meta = with lib; { description = "Machine Learning, Randomized Optimization and SEarch"; diff --git a/pkgs/development/python-modules/mlxtend/default.nix b/pkgs/development/python-modules/mlxtend/default.nix index db5689580279..8771435d892f 100644 --- a/pkgs/development/python-modules/mlxtend/default.nix +++ b/pkgs/development/python-modules/mlxtend/default.nix @@ -45,7 +45,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ "-sv" ]; + pytestFlags = [ "-sv" ]; disabledTests = [ # Type changed in numpy2 test should be updated diff --git a/pkgs/development/python-modules/motmetrics/default.nix b/pkgs/development/python-modules/motmetrics/default.nix index 166e80b73924..b29ed9b00602 100644 --- a/pkgs/development/python-modules/motmetrics/default.nix +++ b/pkgs/development/python-modules/motmetrics/default.nix @@ -44,7 +44,7 @@ buildPythonPackage { pytest-benchmark ]; - pytestFlagsArray = [ "--benchmark-disable" ]; + pytestFlags = [ "--benchmark-disable" ]; pythonImportsCheck = [ "motmetrics" ]; diff --git a/pkgs/development/python-modules/moviepy/default.nix b/pkgs/development/python-modules/moviepy/default.nix index 272eb3ad8843..a2001fc5f826 100644 --- a/pkgs/development/python-modules/moviepy/default.nix +++ b/pkgs/development/python-modules/moviepy/default.nix @@ -72,7 +72,7 @@ buildPythonPackage rec { ] ++ lib.flatten (lib.attrValues optional-dependencies); # See https://github.com/NixOS/nixpkgs/issues/381908 and https://github.com/NixOS/nixpkgs/issues/385450. - pytestFlagsArray = [ "--timeout=600" ]; + pytestFlags = [ "--timeout=600" ]; pythonImportsCheck = [ "moviepy" ]; diff --git a/pkgs/development/python-modules/narwhals/default.nix b/pkgs/development/python-modules/narwhals/default.nix index c1082a14be28..0dfe7efcfd7f 100644 --- a/pkgs/development/python-modules/narwhals/default.nix +++ b/pkgs/development/python-modules/narwhals/default.nix @@ -69,9 +69,8 @@ buildPythonPackage rec { "test_unary_two_elements" ]; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::DeprecationWarning" ]; meta = { diff --git a/pkgs/development/python-modules/nbconvert/default.nix b/pkgs/development/python-modules/nbconvert/default.nix index 90c543962bf8..a4945c93868e 100644 --- a/pkgs/development/python-modules/nbconvert/default.nix +++ b/pkgs/development/python-modules/nbconvert/default.nix @@ -87,9 +87,8 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::DeprecationWarning" ]; disabledTests = [ diff --git a/pkgs/development/python-modules/neurokit2/default.nix b/pkgs/development/python-modules/neurokit2/default.nix index ebc3ceae150a..923eaa7b7e42 100644 --- a/pkgs/development/python-modules/neurokit2/default.nix +++ b/pkgs/development/python-modules/neurokit2/default.nix @@ -90,7 +90,7 @@ buildPythonPackage rec { "tests/tests_microstates.py" ]; - pytestFlagsArray = [ + pytestFlags = [ # Otherwise, test collection fails with: # AttributeError: module 'scipy.ndimage._delegators' has no attribute '@py_builtins_signature'. Did you mean: 'grey_dilation_signature'? # https://github.com/scipy/scipy/issues/22236 diff --git a/pkgs/development/python-modules/notebook/default.nix b/pkgs/development/python-modules/notebook/default.nix index 114fb07b7b51..b31ec62cee30 100644 --- a/pkgs/development/python-modules/notebook/default.nix +++ b/pkgs/development/python-modules/notebook/default.nix @@ -77,9 +77,8 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::DeprecationWarning" ]; env = { diff --git a/pkgs/development/python-modules/numpyro/default.nix b/pkgs/development/python-modules/numpyro/default.nix index e301301af113..c80c6062ae7f 100644 --- a/pkgs/development/python-modules/numpyro/default.nix +++ b/pkgs/development/python-modules/numpyro/default.nix @@ -64,7 +64,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "numpyro" ]; - pytestFlagsArray = [ + pytestFlags = [ # Tests memory consumption grows significantly with the number of parallel processes (reaches ~200GB with 80 jobs) "--maxprocesses=8" @@ -72,8 +72,7 @@ buildPythonPackage rec { # UserWarning: There are not enough devices to run parallel chains: expected 2 but got 1. # Chains will be drawn sequentially. If you are running MCMC in CPU, consider using `numpyro.set_host_device_count(2)` at the beginning of your program. # You can double-check how many devices are available in your system using `jax.local_device_count()`. - "-W" - "ignore::UserWarning" + "-Wignore::UserWarning" ]; disabledTests = diff --git a/pkgs/development/python-modules/openai/default.nix b/pkgs/development/python-modules/openai/default.nix index 935447852fa5..53eaa5ccbf35 100644 --- a/pkgs/development/python-modules/openai/default.nix +++ b/pkgs/development/python-modules/openai/default.nix @@ -106,9 +106,8 @@ buildPythonPackage rec { respx ]; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::DeprecationWarning" # snapshot mismatches "--inline-snapshot=update" ]; diff --git a/pkgs/development/python-modules/openapi-schema-validator/default.nix b/pkgs/development/python-modules/openapi-schema-validator/default.nix index 2cc663198996..44c9de211e4e 100644 --- a/pkgs/development/python-modules/openapi-schema-validator/default.nix +++ b/pkgs/development/python-modules/openapi-schema-validator/default.nix @@ -49,7 +49,7 @@ buildPythonPackage rec { "test_array_prefixitems_invalid" ]; - pytestFlagsArray = [ "-vvv" ]; + pytestFlags = [ "-vvv" ]; pythonImportsCheck = [ "openapi_schema_validator" ]; diff --git a/pkgs/development/python-modules/openpyxl/default.nix b/pkgs/development/python-modules/openpyxl/default.nix index 602cdd29e825..b1754a3620c9 100644 --- a/pkgs/development/python-modules/openpyxl/default.nix +++ b/pkgs/development/python-modules/openpyxl/default.nix @@ -38,9 +38,8 @@ buildPythonPackage rec { pytest7CheckHook ]; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::DeprecationWarning" ]; disabledTests = diff --git a/pkgs/development/python-modules/optimistix/default.nix b/pkgs/development/python-modules/optimistix/default.nix index 8b98dbe711c6..c859fab8aac0 100644 --- a/pkgs/development/python-modules/optimistix/default.nix +++ b/pkgs/development/python-modules/optimistix/default.nix @@ -53,11 +53,10 @@ buildPythonPackage rec { pytest-xdist ]; - pytestFlagsArray = [ + pytestFlags = [ # Since jax 0.5.3: # DeprecationWarning: shape requires ndarray or scalar arguments, got at position 0. In a future JAX release this will be an error. - "-W" - "ignore::DeprecationWarning" + "-Wignore::DeprecationWarning" ]; meta = { diff --git a/pkgs/development/python-modules/param/default.nix b/pkgs/development/python-modules/param/default.nix index 6db3615d92a1..afe5fd05bf58 100644 --- a/pkgs/development/python-modules/param/default.nix +++ b/pkgs/development/python-modules/param/default.nix @@ -41,9 +41,8 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::DeprecationWarning" ]; pythonImportsCheck = [ "param" ]; diff --git a/pkgs/development/python-modules/parselmouth/default.nix b/pkgs/development/python-modules/parselmouth/default.nix index 183ee3100fd8..81a5b48d9b22 100644 --- a/pkgs/development/python-modules/parselmouth/default.nix +++ b/pkgs/development/python-modules/parselmouth/default.nix @@ -47,7 +47,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ + pytestFlags = [ "--run-praat-tests" "-v" ]; diff --git a/pkgs/development/python-modules/pecan/default.nix b/pkgs/development/python-modules/pecan/default.nix index 243cd6c6da3a..79aa04d75e77 100644 --- a/pkgs/development/python-modules/pecan/default.nix +++ b/pkgs/development/python-modules/pecan/default.nix @@ -45,7 +45,7 @@ buildPythonPackage rec { webtest ]; - pytestFlagsArray = [ "--pyargs pecan" ]; + pytestFlags = [ "--pyargs" "pecan" ]; pythonImportsCheck = [ "pecan" ]; diff --git a/pkgs/development/python-modules/pelican/default.nix b/pkgs/development/python-modules/pelican/default.nix index 39462140a732..68bb52d21e26 100644 --- a/pkgs/development/python-modules/pelican/default.nix +++ b/pkgs/development/python-modules/pelican/default.nix @@ -98,9 +98,9 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ + pytestFlags = [ # DeprecationWarning: 'jinja2.Markup' is deprecated and... - "-W ignore::DeprecationWarning" + "-Wignore::DeprecationWarning" ]; disabledTests = [ diff --git a/pkgs/development/python-modules/pims/default.nix b/pkgs/development/python-modules/pims/default.nix index 85139ea17f67..7a3736de7a3a 100644 --- a/pkgs/development/python-modules/pims/default.nix +++ b/pkgs/development/python-modules/pims/default.nix @@ -37,9 +37,8 @@ buildPythonPackage rec { pythonImportsCheck = [ "pims" ]; - pytestFlagsArray = [ - "-W" - "ignore::Warning" + pytestFlags = [ + "-Wignore::Warning" ]; disabledTests = [ diff --git a/pkgs/development/python-modules/pint/default.nix b/pkgs/development/python-modules/pint/default.nix index 7127ebe3f798..250ef8a8200b 100644 --- a/pkgs/development/python-modules/pint/default.nix +++ b/pkgs/development/python-modules/pint/default.nix @@ -62,7 +62,7 @@ buildPythonPackage rec { matplotlib ]; - pytestFlagsArray = [ "--benchmark-disable" ]; + pytestFlags = [ "--benchmark-disable" ]; preCheck = '' export HOME=$(mktemp -d) diff --git a/pkgs/development/python-modules/proto-plus/default.nix b/pkgs/development/python-modules/proto-plus/default.nix index 382bfc448a72..13120930f0b1 100644 --- a/pkgs/development/python-modules/proto-plus/default.nix +++ b/pkgs/development/python-modules/proto-plus/default.nix @@ -31,10 +31,9 @@ buildPythonPackage rec { googleapis-common-protos ]; - pytestFlagsArray = [ + pytestFlags = [ # pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html - "-W" - "ignore::DeprecationWarning" + "-Wignore::DeprecationWarning" ]; pythonImportsCheck = [ "proto" ]; diff --git a/pkgs/development/python-modules/psygnal/default.nix b/pkgs/development/python-modules/psygnal/default.nix index 4f6fcbd62cfd..f5fe9fff8ded 100644 --- a/pkgs/development/python-modules/psygnal/default.nix +++ b/pkgs/development/python-modules/psygnal/default.nix @@ -48,9 +48,8 @@ buildPythonPackage rec { attrs ]; - pytestFlagsArray = [ - "-W" - "ignore::pydantic.warnings.PydanticDeprecatedSince211" + pytestFlags = [ + "-Wignore::pydantic.warnings.PydanticDeprecatedSince211" ]; pythonImportsCheck = [ "psygnal" ]; diff --git a/pkgs/development/python-modules/pure-protobuf/default.nix b/pkgs/development/python-modules/pure-protobuf/default.nix index 0ea2944d77d1..426be0ecab46 100644 --- a/pkgs/development/python-modules/pure-protobuf/default.nix +++ b/pkgs/development/python-modules/pure-protobuf/default.nix @@ -42,7 +42,7 @@ buildPythonPackage rec { pytest-cov-stub ]; - pytestFlagsArray = [ "--benchmark-disable" ]; + pytestFlags = [ "--benchmark-disable" ]; pythonImportsCheck = [ "pure_protobuf" ]; diff --git a/pkgs/development/python-modules/pycrdt/default.nix b/pkgs/development/python-modules/pycrdt/default.nix index 8076d8155c91..9d943e264dca 100644 --- a/pkgs/development/python-modules/pycrdt/default.nix +++ b/pkgs/development/python-modules/pycrdt/default.nix @@ -53,9 +53,8 @@ buildPythonPackage rec { y-py ]; - pytestFlagsArray = [ - "-W" - "ignore::pytest.PytestUnknownMarkWarning" # requires unpackaged pytest-mypy-testing + pytestFlags = [ + "-Wignore::pytest.PytestUnknownMarkWarning" # requires unpackaged pytest-mypy-testing ]; passthru.updateScript = nix-update-script { extraArgs = [ "--generate-lockfile" ]; }; diff --git a/pkgs/development/python-modules/pydantic-compat/default.nix b/pkgs/development/python-modules/pydantic-compat/default.nix index e47211217593..db5ef91c20bb 100644 --- a/pkgs/development/python-modules/pydantic-compat/default.nix +++ b/pkgs/development/python-modules/pydantic-compat/default.nix @@ -41,12 +41,11 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "-W" + pytestFlags = [ # pydantic.warnings.PydanticDeprecatedSince211: Accessing this attribute on the instance is # deprecated, and will be removed in Pydantic V3. Instead, you should access this attribute from # the model class. Deprecated in Pydantic V2.11 to be removed in V3.0. - "ignore::pydantic.warnings.PydanticDeprecatedSince211" + "-Wignore::pydantic.warnings.PydanticDeprecatedSince211" ]; meta = { diff --git a/pkgs/development/python-modules/pykakasi/default.nix b/pkgs/development/python-modules/pykakasi/default.nix index 55af4374ad8a..665d435575d6 100644 --- a/pkgs/development/python-modules/pykakasi/default.nix +++ b/pkgs/development/python-modules/pykakasi/default.nix @@ -45,7 +45,7 @@ buildPythonPackage rec { "test_aozora" ]; - pytestFlagsArray = [ "--benchmark-disable" ]; + pytestFlags = [ "--benchmark-disable" ]; pythonImportsCheck = [ "pykakasi" ]; diff --git a/pkgs/development/python-modules/pylint/default.nix b/pkgs/development/python-modules/pylint/default.nix index ae6d50b36d9c..cd406ad69d85 100644 --- a/pkgs/development/python-modules/pylint/default.nix +++ b/pkgs/development/python-modules/pylint/default.nix @@ -60,13 +60,12 @@ buildPythonPackage rec { typing-extensions ]; - pytestFlagsArray = [ + pytestFlags = [ # DeprecationWarning: pyreverse will drop support for resolving and # displaying implemented interfaces in pylint 3.0. The # implementation relies on the '__implements__' attribute proposed # in PEP 245, which was rejected in 2006. - "-W" - "ignore::DeprecationWarning" + "-Wignore::DeprecationWarning" "-v" ]; diff --git a/pkgs/development/python-modules/pylutron-caseta/default.nix b/pkgs/development/python-modules/pylutron-caseta/default.nix index 6d9191b2dbfd..a49fd9922a61 100644 --- a/pkgs/development/python-modules/pylutron-caseta/default.nix +++ b/pkgs/development/python-modules/pylutron-caseta/default.nix @@ -50,7 +50,7 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ]; - pytestFlagsArray = [ "--asyncio-mode=auto" ]; + pytestFlags = [ "--asyncio-mode=auto" ]; pythonImportsCheck = [ "pylutron_caseta" ]; diff --git a/pkgs/development/python-modules/pynetdicom/default.nix b/pkgs/development/python-modules/pynetdicom/default.nix index 10c76d524a2b..7697e40a67c9 100644 --- a/pkgs/development/python-modules/pynetdicom/default.nix +++ b/pkgs/development/python-modules/pynetdicom/default.nix @@ -75,10 +75,9 @@ buildPythonPackage rec { pythonImportsCheck = [ "pynetdicom" ]; - pytestFlagsArray = [ + pytestFlags = [ # https://github.com/pydicom/pynetdicom/issues/923 - "-W" - "ignore::pytest.PytestRemovedIn9Warning" + "-Wignore::pytest.PytestRemovedIn9Warning" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/pypck/default.nix b/pkgs/development/python-modules/pypck/default.nix index 78c86a951be2..96038bf2673c 100644 --- a/pkgs/development/python-modules/pypck/default.nix +++ b/pkgs/development/python-modules/pypck/default.nix @@ -36,7 +36,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ "--asyncio-mode=auto" ]; + pytestFlags = [ "--asyncio-mode=auto" ]; disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ "test_connection_lost" ]; diff --git a/pkgs/development/python-modules/pyspcwebgw/default.nix b/pkgs/development/python-modules/pyspcwebgw/default.nix index ff3731bc8686..952f33739f24 100644 --- a/pkgs/development/python-modules/pyspcwebgw/default.nix +++ b/pkgs/development/python-modules/pyspcwebgw/default.nix @@ -38,7 +38,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ "--asyncio-mode=auto" ]; + pytestFlags = [ "--asyncio-mode=auto" ]; pythonImportsCheck = [ "pyspcwebgw" ]; diff --git a/pkgs/development/python-modules/pytest-mpi/default.nix b/pkgs/development/python-modules/pytest-mpi/default.nix index 7a474fd084b0..474b288615ef 100644 --- a/pkgs/development/python-modules/pytest-mpi/default.nix +++ b/pkgs/development/python-modules/pytest-mpi/default.nix @@ -41,10 +41,9 @@ buildPythonPackage rec { # Tests cause the Python interpreter to crash from some reason, a hard issue # to debug. (TODO: discuss this with upstream) doCheck = false; - pytestFlagsArray = [ + pytestFlags = [ # https://github.com/aragilar/pytest-mpi/issues/4#issuecomment-634614337 - "-p" - "pytester" + "-ppytester" ]; pythonImportsCheck = [ "pytest_mpi" ]; diff --git a/pkgs/development/python-modules/pytest-postgresql/default.nix b/pkgs/development/python-modules/pytest-postgresql/default.nix index c5abbb07447b..5e3cbe9954eb 100644 --- a/pkgs/development/python-modules/pytest-postgresql/default.nix +++ b/pkgs/development/python-modules/pytest-postgresql/default.nix @@ -45,9 +45,8 @@ buildPythonPackage rec { pytestCheckHook pytest-cov-stub ]; - pytestFlagsArray = [ - "-p" - "no:postgresql" + pytestFlags = [ + "-pno:postgresql" ]; disabledTestPaths = [ "tests/docker/test_noproc_docker.py" ]; # requires Docker disabledTests = [ diff --git a/pkgs/development/python-modules/pytest-randomly/default.nix b/pkgs/development/python-modules/pytest-randomly/default.nix index 7c12c073f153..b9300603b9d4 100644 --- a/pkgs/development/python-modules/pytest-randomly/default.nix +++ b/pkgs/development/python-modules/pytest-randomly/default.nix @@ -39,9 +39,8 @@ buildPythonPackage rec { ]; # needs special invocation, copied from tox.ini - pytestFlagsArray = [ - "-p" - "no:randomly" + pytestFlags = [ + "-pno:randomly" ]; pythonImportsCheck = [ "pytest_randomly" ]; diff --git a/pkgs/development/python-modules/pytest-regressions/default.nix b/pkgs/development/python-modules/pytest-regressions/default.nix index 3d39e5160ea2..61608506664b 100644 --- a/pkgs/development/python-modules/pytest-regressions/default.nix +++ b/pkgs/development/python-modules/pytest-regressions/default.nix @@ -58,9 +58,8 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies); - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::DeprecationWarning" ]; pythonImportsCheck = [ diff --git a/pkgs/development/python-modules/pytest-subprocess/default.nix b/pkgs/development/python-modules/pytest-subprocess/default.nix index fe139444564e..9b61a0526f83 100644 --- a/pkgs/development/python-modules/pytest-subprocess/default.nix +++ b/pkgs/development/python-modules/pytest-subprocess/default.nix @@ -42,7 +42,7 @@ buildPythonPackage rec { typing-extensions ]; - pytestFlagsArray = [ "-W ignore::DeprecationWarning" ]; + pytestFlags = [ "-Wignore::DeprecationWarning" ]; meta = with lib; { description = "Plugin to fake subprocess for pytest"; diff --git a/pkgs/development/python-modules/python-arango/default.nix b/pkgs/development/python-modules/python-arango/default.nix index 683fb494643e..12ac3f8e3315 100644 --- a/pkgs/development/python-modules/python-arango/default.nix +++ b/pkgs/development/python-modules/python-arango/default.nix @@ -98,15 +98,11 @@ buildPythonPackage rec { --foxx.api=false & ''; - pytestFlagsArray = [ - "--host" - testDBOpts.host - "--port" - testDBOpts.port - "--passwd" - testDBOpts.password - "--secret" - testDBOpts.secret + pytestFlags = [ + "--host=${testDBOpts.host}" + "--port=${testDBOpts.port}" + "--passwd=${testDBOpts.password}" + "--secret=${testDBOpts.secret}" ]; disabledTests = [ diff --git a/pkgs/development/python-modules/python-docx/default.nix b/pkgs/development/python-modules/python-docx/default.nix index ef8677a99085..d8e250c675d2 100644 --- a/pkgs/development/python-modules/python-docx/default.nix +++ b/pkgs/development/python-modules/python-docx/default.nix @@ -51,9 +51,8 @@ buildPythonPackage rec { "it_accepts_unicode_providing_there_is_no_encoding_declaration" ]; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::DeprecationWarning" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/python-kasa/default.nix b/pkgs/development/python-modules/python-kasa/default.nix index 8ce0a76f0709..fb674db40302 100644 --- a/pkgs/development/python-modules/python-kasa/default.nix +++ b/pkgs/development/python-modules/python-kasa/default.nix @@ -65,7 +65,7 @@ buildPythonPackage rec { ]; }; - pytestFlagsArray = [ "--asyncio-mode=auto" ]; + pytestFlags = [ "--asyncio-mode=auto" ]; disabledTestPaths = [ # Skip the examples tests diff --git a/pkgs/development/python-modules/pythonnet/default.nix b/pkgs/development/python-modules/pythonnet/default.nix index f8bbd9eb6466..ed5d2e93ebaa 100644 --- a/pkgs/development/python-modules/pythonnet/default.nix +++ b/pkgs/development/python-modules/pythonnet/default.nix @@ -53,9 +53,9 @@ buildPythonPackage { clr-loader ]; - pytestFlagsArray = [ + pytestFlags = [ # Run tests using .NET Core, Mono is unsupported for now due to find_library problem in clr-loader - "--runtime coreclr" + "--runtime=coreclr" ]; nativeCheckInputs = [ diff --git a/pkgs/development/python-modules/pytraccar/default.nix b/pkgs/development/python-modules/pytraccar/default.nix index effdc94a8ec7..6344f1e6d9bd 100644 --- a/pkgs/development/python-modules/pytraccar/default.nix +++ b/pkgs/development/python-modules/pytraccar/default.nix @@ -35,7 +35,7 @@ buildPythonPackage rec { pytest-asyncio ]; - pytestFlagsArray = [ "--asyncio-mode=auto" ]; + pytestFlags = [ "--asyncio-mode=auto" ]; postPatch = '' # Upstream doesn't set version in the repo diff --git a/pkgs/development/python-modules/pyunpack/default.nix b/pkgs/development/python-modules/pyunpack/default.nix index 3c0a2f30afad..96471c87d132 100644 --- a/pkgs/development/python-modules/pyunpack/default.nix +++ b/pkgs/development/python-modules/pyunpack/default.nix @@ -41,7 +41,7 @@ buildPythonPackage rec { cabextract ]; - pytestFlagsArray = [ "-x" ]; + pytestFlags = [ "-x" ]; pythonImportsCheck = [ "pyunpack" ]; diff --git a/pkgs/development/python-modules/pyvirtualdisplay/default.nix b/pkgs/development/python-modules/pyvirtualdisplay/default.nix index dca19a30340c..6c057c7ea7e6 100644 --- a/pkgs/development/python-modules/pyvirtualdisplay/default.nix +++ b/pkgs/development/python-modules/pyvirtualdisplay/default.nix @@ -55,7 +55,7 @@ buildPythonPackage rec { xorg.xvfb ]; - pytestFlagsArray = [ "-v" ]; + pytestFlags = [ "-v" ]; meta = with lib; { description = "Python wrapper for Xvfb, Xephyr and Xvnc"; diff --git a/pkgs/development/python-modules/pywizlight/default.nix b/pkgs/development/python-modules/pywizlight/default.nix index d745f9ab1763..2f7f2ea92831 100644 --- a/pkgs/development/python-modules/pywizlight/default.nix +++ b/pkgs/development/python-modules/pywizlight/default.nix @@ -29,7 +29,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ "--asyncio-mode=auto" ]; + pytestFlags = [ "--asyncio-mode=auto" ]; disabledTests = [ # Tests requires network features (e. g., discovery testing) diff --git a/pkgs/development/python-modules/qiskit-aer/default.nix b/pkgs/development/python-modules/qiskit-aer/default.nix index 3163166ced01..ef15dc42303c 100644 --- a/pkgs/development/python-modules/qiskit-aer/default.nix +++ b/pkgs/development/python-modules/qiskit-aer/default.nix @@ -127,7 +127,7 @@ buildPythonPackage rec { testtools ]; - pytestFlagsArray = [ + pytestFlags = [ "--timeout=30" "--durations=10" ]; diff --git a/pkgs/development/python-modules/qiskit-finance/default.nix b/pkgs/development/python-modules/qiskit-finance/default.nix index 0fb5525fee2c..56551914b2e4 100644 --- a/pkgs/development/python-modules/qiskit-finance/default.nix +++ b/pkgs/development/python-modules/qiskit-finance/default.nix @@ -75,7 +75,7 @@ buildPythonPackage rec { "test_yahoo" "test_wikipedia" ]; - pytestFlagsArray = [ "--durations=10" ]; + pytestFlags = [ "--durations=10" ]; meta = with lib; { description = "Software for developing quantum computing programs"; diff --git a/pkgs/development/python-modules/qiskit-nature/default.nix b/pkgs/development/python-modules/qiskit-nature/default.nix index 61710ba4c8e3..6fa4918ea47e 100644 --- a/pkgs/development/python-modules/qiskit-nature/default.nix +++ b/pkgs/development/python-modules/qiskit-nature/default.nix @@ -59,7 +59,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "qiskit_nature" ]; - pytestFlagsArray = [ "--durations=10" ]; + pytestFlags = [ "--durations=10" ]; disabledTests = [ "test_two_qubit_reduction" # failure cause unclear diff --git a/pkgs/development/python-modules/qiskit-optimization/default.nix b/pkgs/development/python-modules/qiskit-optimization/default.nix index 539f7bcbe28b..c2408686d6ff 100644 --- a/pkgs/development/python-modules/qiskit-optimization/default.nix +++ b/pkgs/development/python-modules/qiskit-optimization/default.nix @@ -58,7 +58,7 @@ buildPythonPackage rec { ]; pythonImportsCheck = [ "qiskit_optimization" ]; - pytestFlagsArray = [ "--durations=10" ]; + pytestFlags = [ "--durations=10" ]; meta = with lib; { description = "Software for developing quantum computing programs"; diff --git a/pkgs/development/python-modules/qiskit-terra/default.nix b/pkgs/development/python-modules/qiskit-terra/default.nix index 8f6b3ba43965..05bd0d65f488 100644 --- a/pkgs/development/python-modules/qiskit-terra/default.nix +++ b/pkgs/development/python-modules/qiskit-terra/default.nix @@ -131,7 +131,7 @@ buildPythonPackage rec { # Too many floating point arithmetic errors "test/visual/mpl/circuit/test_circuit_matplotlib_drawer.py" ]; - pytestFlagsArray = [ "--durations=10" ]; + pytestFlags = [ "--durations=10" ]; disabledTests = [ "TestUnitarySynthesisPlugin" # use unittest mocks for transpiler.run(), seems incompatible somehow w/ pytest infrastructure diff --git a/pkgs/development/python-modules/rtoml/default.nix b/pkgs/development/python-modules/rtoml/default.nix index b0043a841bd5..f88db017d3b3 100644 --- a/pkgs/development/python-modules/rtoml/default.nix +++ b/pkgs/development/python-modules/rtoml/default.nix @@ -44,7 +44,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ "--benchmark-disable" ]; + pytestFlags = [ "--benchmark-disable" ]; disabledTests = [ # TypeError: loads() got an unexpected keyword argument 'name' diff --git a/pkgs/development/python-modules/ruyaml/default.nix b/pkgs/development/python-modules/ruyaml/default.nix index 3e7edbb6e8a1..e98c04b4fa7b 100644 --- a/pkgs/development/python-modules/ruyaml/default.nix +++ b/pkgs/development/python-modules/ruyaml/default.nix @@ -35,9 +35,8 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::DeprecationWarning" ]; pythonImportsCheck = [ "ruyaml" ]; diff --git a/pkgs/development/python-modules/schemdraw/default.nix b/pkgs/development/python-modules/schemdraw/default.nix index 0b110511c70b..1f68eb22dd6d 100644 --- a/pkgs/development/python-modules/schemdraw/default.nix +++ b/pkgs/development/python-modules/schemdraw/default.nix @@ -58,7 +58,7 @@ buildPythonPackage rec { preCheck = "rm test/test_pictorial.ipynb"; # Tries to download files - pytestFlagsArray = [ "--nbval-lax" ]; + pytestFlags = [ "--nbval-lax" ]; pythonImportsCheck = [ "schemdraw" ]; diff --git a/pkgs/development/python-modules/scikit-learn-extra/default.nix b/pkgs/development/python-modules/scikit-learn-extra/default.nix index 95cdcce5d10e..69ecb25c817d 100644 --- a/pkgs/development/python-modules/scikit-learn-extra/default.nix +++ b/pkgs/development/python-modules/scikit-learn-extra/default.nix @@ -42,7 +42,7 @@ buildPythonPackage rec { rm -r sklearn_extra ''; - pytestFlagsArray = [ "--pyargs sklearn_extra" ]; + pytestFlags = [ "--pyargs" "sklearn_extra" ]; disabledTestPaths = [ "benchmarks" "examples" diff --git a/pkgs/development/python-modules/scikit-misc/default.nix b/pkgs/development/python-modules/scikit-misc/default.nix index 4fd972b25995..740970b69452 100644 --- a/pkgs/development/python-modules/scikit-misc/default.nix +++ b/pkgs/development/python-modules/scikit-misc/default.nix @@ -59,7 +59,7 @@ buildPythonPackage rec { cd "$(mktemp -d)" ''; - pytestFlagsArray = [ "--pyargs skmisc" ]; + pytestFlags = [ "--pyargs" "skmisc" ]; pythonImportsCheck = [ "skmisc" ]; diff --git a/pkgs/development/python-modules/spectral-cube/default.nix b/pkgs/development/python-modules/spectral-cube/default.nix index 8b00710680f3..0005433a36ef 100644 --- a/pkgs/development/python-modules/spectral-cube/default.nix +++ b/pkgs/development/python-modules/spectral-cube/default.nix @@ -59,11 +59,10 @@ buildPythonPackage rec { cd build/lib ''; - pytestFlagsArray = [ + pytestFlags = [ # FutureWarning: Can't acquire a memory view of a Dask array. This will raise in the future # https://github.com/radio-astro-tools/spectral-cube/issues/943 - "-W" - "ignore::FutureWarning" + "-Wignore::FutureWarning" ]; disabledTests = diff --git a/pkgs/development/python-modules/sqlalchemy-utils/default.nix b/pkgs/development/python-modules/sqlalchemy-utils/default.nix index 4e0370f9c44b..b1bdd3a7f606 100644 --- a/pkgs/development/python-modules/sqlalchemy-utils/default.nix +++ b/pkgs/development/python-modules/sqlalchemy-utils/default.nix @@ -92,9 +92,8 @@ buildPythonPackage rec { "test_render_mock_ddl" ]; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::DeprecationWarning" ]; pythonImportsCheck = [ "sqlalchemy_utils" ]; diff --git a/pkgs/development/python-modules/sqlitedict/default.nix b/pkgs/development/python-modules/sqlitedict/default.nix index 481f45860068..df01743ef358 100644 --- a/pkgs/development/python-modules/sqlitedict/default.nix +++ b/pkgs/development/python-modules/sqlitedict/default.nix @@ -37,7 +37,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "sqlitedict" ]; - pytestFlagsArray = [ "--benchmark-disable" ]; + pytestFlags = [ "--benchmark-disable" ]; meta = with lib; { description = "Persistent, thread-safe dict"; diff --git a/pkgs/development/python-modules/starlette/default.nix b/pkgs/development/python-modules/starlette/default.nix index 1033df5d7220..ad9b7c7d56a1 100644 --- a/pkgs/development/python-modules/starlette/default.nix +++ b/pkgs/development/python-modules/starlette/default.nix @@ -58,13 +58,10 @@ buildPythonPackage rec { typing-extensions ] ++ lib.flatten (lib.attrValues optional-dependencies); - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" - "-W" - "ignore::trio.TrioDeprecationWarning" - "-W" - "ignore::ResourceWarning" # FIXME remove once test suite is fully compatible with anyio 4.4.0 + pytestFlags = [ + "-Wignore::DeprecationWarning" + "-Wignore::trio.TrioDeprecationWarning" + "-Wignore::ResourceWarning" # FIXME remove once test suite is fully compatible with anyio 4.4.0 ]; pythonImportsCheck = [ "starlette" ]; diff --git a/pkgs/development/python-modules/sunpy/default.nix b/pkgs/development/python-modules/sunpy/default.nix index 54a9a59accf7..2eea23f6582a 100644 --- a/pkgs/development/python-modules/sunpy/default.nix +++ b/pkgs/development/python-modules/sunpy/default.nix @@ -145,9 +145,8 @@ buildPythonPackage rec { "sunpy/io/setup_package.py" ]; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::DeprecationWarning" ]; # Wants a configuration file diff --git a/pkgs/development/python-modules/systembridgeconnector/default.nix b/pkgs/development/python-modules/systembridgeconnector/default.nix index f5254d90c75d..579ccf469a25 100644 --- a/pkgs/development/python-modules/systembridgeconnector/default.nix +++ b/pkgs/development/python-modules/systembridgeconnector/default.nix @@ -64,7 +64,7 @@ buildPythonPackage rec { "test_wait_for_response_timeout" ]; - pytestFlagsArray = [ "--snapshot-warn-unused" ]; + pytestFlags = [ "--snapshot-warn-unused" ]; meta = { changelog = "https://github.com/timmo001/system-bridge-connector/releases/tag/${version}"; diff --git a/pkgs/development/python-modules/systembridgemodels/default.nix b/pkgs/development/python-modules/systembridgemodels/default.nix index aabc71b724a3..69d876ab2d2d 100644 --- a/pkgs/development/python-modules/systembridgemodels/default.nix +++ b/pkgs/development/python-modules/systembridgemodels/default.nix @@ -52,7 +52,7 @@ buildPythonPackage rec { "test_update" ]; - pytestFlagsArray = [ "--snapshot-warn-unused" ]; + pytestFlags = [ "--snapshot-warn-unused" ]; meta = { changelog = "https://github.com/timmo001/system-bridge-models/releases/tag/${version}"; diff --git a/pkgs/development/python-modules/textual/default.nix b/pkgs/development/python-modules/textual/default.nix index 6b7051bc4bde..2a4d184554ae 100644 --- a/pkgs/development/python-modules/textual/default.nix +++ b/pkgs/development/python-modules/textual/default.nix @@ -79,7 +79,7 @@ buildPythonPackage rec { "test_textual_env_var" ]; - pytestFlagsArray = [ + pytestFlags = [ # Some tests in groups require state from previous tests # See https://github.com/Textualize/textual/issues/4924#issuecomment-2304889067 "--dist=loadgroup" diff --git a/pkgs/development/python-modules/timeslot/default.nix b/pkgs/development/python-modules/timeslot/default.nix index 0b60dd3cc004..e8e1673b14a0 100644 --- a/pkgs/development/python-modules/timeslot/default.nix +++ b/pkgs/development/python-modules/timeslot/default.nix @@ -27,11 +27,11 @@ buildPythonPackage { nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ + pytestFlags = [ # The pyproject.toml specifies the flag `--cov=timeslot`, # This causes an error when running without pytest-cov, # so use this flag to override that option, as we don't need coverage. - "--override-ini addopts=''" + "--override-ini=addopts=" ]; pythonImportsCheck = [ "timeslot" ]; diff --git a/pkgs/development/python-modules/tqdm/default.nix b/pkgs/development/python-modules/tqdm/default.nix index 88b3d70531a3..3ebf8baac17c 100644 --- a/pkgs/development/python-modules/tqdm/default.nix +++ b/pkgs/development/python-modules/tqdm/default.nix @@ -41,11 +41,9 @@ buildPythonPackage rec { pandas ]; - pytestFlagsArray = [ - "-W" - "ignore::FutureWarning" - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::FutureWarning" + "-Wignore::DeprecationWarning" ]; # Remove performance testing. diff --git a/pkgs/development/python-modules/trio-asyncio/default.nix b/pkgs/development/python-modules/trio-asyncio/default.nix index 42464ef43cf0..8b4b901b36a4 100644 --- a/pkgs/development/python-modules/trio-asyncio/default.nix +++ b/pkgs/development/python-modules/trio-asyncio/default.nix @@ -41,12 +41,10 @@ buildPythonPackage rec { sniffio ] ++ lib.optionals (pythonOlder "3.11") [ exceptiongroup ]; - pytestFlagsArray = [ + pytestFlags = [ # RuntimeWarning: Can't run the Python asyncio tests because they're not installed - "-W" - "ignore::RuntimeWarning" - "-W" - "ignore::DeprecationWarning" + "-Wignore::RuntimeWarning" + "-Wignore::DeprecationWarning" ]; disabledTests = [ diff --git a/pkgs/development/python-modules/trio/default.nix b/pkgs/development/python-modules/trio/default.nix index 288e7db4add0..793239d0217b 100644 --- a/pkgs/development/python-modules/trio/default.nix +++ b/pkgs/development/python-modules/trio/default.nix @@ -76,9 +76,8 @@ buildPythonPackage rec { PYTHONPATH=$PWD/src:$PYTHONPATH ''; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::DeprecationWarning" ]; # It appears that the build sandbox doesn't include /etc/services, and these tests try to use it. diff --git a/pkgs/development/python-modules/uarray/default.nix b/pkgs/development/python-modules/uarray/default.nix index 0caba72c818d..1c222d6ddce5 100644 --- a/pkgs/development/python-modules/uarray/default.nix +++ b/pkgs/development/python-modules/uarray/default.nix @@ -55,7 +55,7 @@ buildPythonPackage rec { cd $TMP ''; - pytestFlagsArray = [ + pytestFlags = [ "--pyargs" "uarray" ]; diff --git a/pkgs/development/python-modules/uiprotect/default.nix b/pkgs/development/python-modules/uiprotect/default.nix index a0b53af1269e..dd1541b92cd7 100644 --- a/pkgs/development/python-modules/uiprotect/default.nix +++ b/pkgs/development/python-modules/uiprotect/default.nix @@ -91,7 +91,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ "--benchmark-disable" ]; + pytestFlags = [ "--benchmark-disable" ]; disabledTests = [ # https://127.0.0.1 vs https://127.0.0.1:0 diff --git a/pkgs/development/python-modules/ulid-transform/default.nix b/pkgs/development/python-modules/ulid-transform/default.nix index d43d050835ca..f69a6391c7fc 100644 --- a/pkgs/development/python-modules/ulid-transform/default.nix +++ b/pkgs/development/python-modules/ulid-transform/default.nix @@ -39,7 +39,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ "--benchmark-disable" ]; + pytestFlags = [ "--benchmark-disable" ]; pythonImportsCheck = [ "ulid_transform" ]; diff --git a/pkgs/development/python-modules/unifi-discovery/default.nix b/pkgs/development/python-modules/unifi-discovery/default.nix index 2de32e8aacdb..317d6e524452 100644 --- a/pkgs/development/python-modules/unifi-discovery/default.nix +++ b/pkgs/development/python-modules/unifi-discovery/default.nix @@ -40,7 +40,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ "--asyncio-mode=auto" ]; + pytestFlags = [ "--asyncio-mode=auto" ]; pythonImportsCheck = [ "unifi_discovery" ]; diff --git a/pkgs/development/python-modules/vega-datasets/default.nix b/pkgs/development/python-modules/vega-datasets/default.nix index b7de5f6c1b65..efe73ec81ce7 100644 --- a/pkgs/development/python-modules/vega-datasets/default.nix +++ b/pkgs/development/python-modules/vega-datasets/default.nix @@ -24,7 +24,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ "--doctest-modules" ]; + pytestFlags = [ "--doctest-modules" ]; pythonImportsCheck = [ "vega_datasets" ]; diff --git a/pkgs/development/python-modules/wandb/default.nix b/pkgs/development/python-modules/wandb/default.nix index 2459a04d7ad9..c1984e77460e 100644 --- a/pkgs/development/python-modules/wandb/default.nix +++ b/pkgs/development/python-modules/wandb/default.nix @@ -275,7 +275,7 @@ buildPythonPackage rec { ]; # test_matplotlib_image_with_multiple_axes may take >60s - pytestFlagsArray = [ + pytestFlags = [ "--timeout=1024" ]; diff --git a/pkgs/development/python-modules/wheel-inspect/default.nix b/pkgs/development/python-modules/wheel-inspect/default.nix index 125b6b48df4d..c5874dd5c8c2 100644 --- a/pkgs/development/python-modules/wheel-inspect/default.nix +++ b/pkgs/development/python-modules/wheel-inspect/default.nix @@ -55,9 +55,8 @@ buildPythonPackage rec { pythonImportsCheck = [ "wheel_inspect" ]; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::DeprecationWarning" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/yamlfix/default.nix b/pkgs/development/python-modules/yamlfix/default.nix index dacfc5d51199..fb48b1960281 100644 --- a/pkgs/development/python-modules/yamlfix/default.nix +++ b/pkgs/development/python-modules/yamlfix/default.nix @@ -61,9 +61,8 @@ buildPythonPackage rec { pythonImportsCheck = [ "yamlfix" ]; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" + pytestFlags = [ + "-Wignore::DeprecationWarning" ]; meta = { diff --git a/pkgs/development/python-modules/zconfig/default.nix b/pkgs/development/python-modules/zconfig/default.nix index 1528e81361f2..1ff7cd4d6608 100644 --- a/pkgs/development/python-modules/zconfig/default.nix +++ b/pkgs/development/python-modules/zconfig/default.nix @@ -43,7 +43,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "ZConfig" ]; - pytestFlagsArray = [ "-s" ]; + pytestFlags = [ "-s" ]; meta = { description = "Structured Configuration Library"; diff --git a/pkgs/development/python-modules/ziafont/default.nix b/pkgs/development/python-modules/ziafont/default.nix index 17990e64a151..4b6aac44ea95 100644 --- a/pkgs/development/python-modules/ziafont/default.nix +++ b/pkgs/development/python-modules/ziafont/default.nix @@ -40,7 +40,7 @@ buildPythonPackage rec { in lib.concatMapStrings copyFontCmd checkFonts; - pytestFlagsArray = [ "--nbval-lax" ]; + pytestFlags = [ "--nbval-lax" ]; pythonImportsCheck = [ "ziafont" ]; diff --git a/pkgs/development/python-modules/ziamath/default.nix b/pkgs/development/python-modules/ziamath/default.nix index 97d6d45ce06a..aaad09e45ede 100644 --- a/pkgs/development/python-modules/ziamath/default.nix +++ b/pkgs/development/python-modules/ziamath/default.nix @@ -45,7 +45,7 @@ buildPythonPackage rec { in lib.concatMapStrings copyFontCmd checkFonts; - pytestFlagsArray = [ "--nbval-lax" ]; + pytestFlags = [ "--nbval-lax" ]; pythonImportsCheck = [ "ziamath" ]; diff --git a/pkgs/development/python-modules/zigpy-znp/default.nix b/pkgs/development/python-modules/zigpy-znp/default.nix index d78132440c01..114bc2545da0 100644 --- a/pkgs/development/python-modules/zigpy-znp/default.nix +++ b/pkgs/development/python-modules/zigpy-znp/default.nix @@ -59,7 +59,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ "--reruns=3" ]; + pytestFlags = [ "--reruns=3" ]; disabledTests = [ # failing since zigpy 0.60.0 diff --git a/pkgs/servers/home-assistant/custom-components/sleep_as_android/package.nix b/pkgs/servers/home-assistant/custom-components/sleep_as_android/package.nix index a6ea83f2a3dc..373923e17a3d 100644 --- a/pkgs/servers/home-assistant/custom-components/sleep_as_android/package.nix +++ b/pkgs/servers/home-assistant/custom-components/sleep_as_android/package.nix @@ -36,7 +36,7 @@ buildHomeAssistantComponent { paho-mqtt ]; - pytestFlagsArray = [ + pytestFlags = [ # Fixes `AttributeError: 'async_generator' object has no attribute 'data'` # See https://github.com/MatthewFlamm/pytest-homeassistant-custom-component/issues/158 "--asyncio-mode=auto" diff --git a/pkgs/tools/audio/beets/plugins/copyartifacts.nix b/pkgs/tools/audio/beets/plugins/copyartifacts.nix index 449e8e05c0ea..717d8624eb94 100644 --- a/pkgs/tools/audio/beets/plugins/copyartifacts.nix +++ b/pkgs/tools/audio/beets/plugins/copyartifacts.nix @@ -44,7 +44,11 @@ python3Packages.buildPythonApplication rec { writableTmpDirAsHomeHook ]; - pytestFlagsArray = [ "-r fEs" ]; + pytestFlags = [ + # This is the same as: + # -r fEs + "-rfEs" + ]; meta = { description = "Beets plugin to move non-music files during the import process"; diff --git a/pkgs/tools/filesystems/ceph/old-python-packages/cryptography.nix b/pkgs/tools/filesystems/ceph/old-python-packages/cryptography.nix index 5d82beffd690..92b69827d4e3 100644 --- a/pkgs/tools/filesystems/ceph/old-python-packages/cryptography.nix +++ b/pkgs/tools/filesystems/ceph/old-python-packages/cryptography.nix @@ -102,7 +102,7 @@ buildPythonPackage rec { pytz ]; - pytestFlagsArray = [ "--disable-pytest-warnings" ]; + pytestFlags = [ "--disable-pytest-warnings" ]; disabledTestPaths = [