treewide: pytestFlagsArray -> pytestFlags and join flag and option argument

This treewide change targets Python packages
that specifies pytest flags with pytestFlagsArray,
and whose flags cannot be consructed by other pytestCheckHook-honoured arguments.

Use the __structuredAttrs-agnostic argument pytestFlags
instead of the deprecated pytestFlagsArray.

For flags with option arguments,
join each flag and their option argument into a single command-line argument
following POSIX Utility Argument Syntax[1]
for easier overriding (remove/replace).

Examples:

* [ "-W" "ignore:message:WarningClass" ] ->
[ "-Wignore:message:WarningClass" ]

* [ "--reruns" "3" ] ->
[ "--reruns=3" ]

[1]: https://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap12.html

Changed files
+267 -341
pkgs
by-name
ab
ablog
aw
aws-encryption-sdk-cli
awscli2
bo
borgbackup
br
browsr
de
devpi-client
di
diffoscope
gd
ma
maigret
me
memtree
ni
nixos-rebuild-ng
pr
pre-commit
pretix
sn
snowflake-cli
development
embedded
fpga
python-modules
aioazuredevops
aioelectricitymaps
aiogithubapi
aiohttp-jinja2
aiohttp-retry
aiosyncthing
aiounifi
aiowaqi
aiowithings
amqtt
androguard
anthropic
ariadne
aspectlib
astropy
astroquery
asyncclick
bindep
bitstring
black
blackjax
bluetooth-data-tools
buienradar
build
certbot
certbot-dns-cloudflare
certbot-dns-google
certbot-dns-ovh
certbot-dns-rfc2136
certbot-dns-route53
cherrypy
chromadb
colour
connect-box
cons
cryptography
cypherpunkpay
datafusion
datalad
deploykit
discovery30303
django-redis
dynalite-devices
elastic-transport
etuples
execnet
fairseq
fastapi
fastdiff
fastnumbers
flask-marshmallow
flask-sqlalchemy
flufl
fyta-cli
geopy
graphene
grpc-google-iam-v1
guessit
habiticalib
hmmlearn
homematicip
httpx
hydra-core
icontract
ifcopenshell
imread
janus
jupyter-core
jupyter-packaging
jupyter-server
jupyterlab-server
langgraph-prebuilt
logical-unification
marshmallow-dataclass
matrix-nio
mcp
minikanren
mlrose
mlxtend
motmetrics
moviepy
narwhals
nbconvert
neurokit2
notebook
numpyro
openai
openapi-schema-validator
openpyxl
optimistix
param
parselmouth
pecan
pelican
pims
pint
proto-plus
psygnal
pure-protobuf
pycrdt
pydantic-compat
pykakasi
pylint
pylutron-caseta
pynetdicom
pypck
pyspcwebgw
pytest-mpi
pytest-postgresql
pytest-randomly
pytest-regressions
pytest-subprocess
python-arango
python-docx
python-kasa
pythonnet
pytraccar
pyunpack
pyvirtualdisplay
pywizlight
qiskit-aer
qiskit-finance
qiskit-nature
qiskit-optimization
qiskit-terra
rtoml
ruyaml
schemdraw
scikit-learn-extra
scikit-misc
spectral-cube
sqlalchemy-utils
sqlitedict
starlette
sunpy
systembridgeconnector
systembridgemodels
textual
timeslot
tqdm
trio
trio-asyncio
uarray
uiprotect
ulid-transform
unifi-discovery
vega-datasets
wandb
wheel-inspect
yamlfix
zconfig
ziafont
ziamath
zigpy-znp
servers
home-assistant
custom-components
sleep_as_android
tools
audio
beets
filesystems
ceph
old-python-packages
+4 -7
pkgs/by-name/ab/ablog/package.nix
···
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
+2 -3
pkgs/by-name/aw/aws-encryption-sdk-cli/package.nix
···
];
# Upstream did not adapt to pytest 8 yet.
-
pytestFlagsArray = [
-
"-W"
-
"ignore::pytest.PytestRemovedIn8Warning"
+
pytestFlags = [
+
"-Wignore::pytest.PytestRemovedIn8Warning"
];
passthru = {
+1 -1
pkgs/by-name/aw/awscli2/package.nix
···
# tests/unit/customizations/sso/test_utils.py uses sockets
__darwinAllowLocalNetworking = true;
-
pytestFlagsArray = [
+
pytestFlags = [
"-Wignore::DeprecationWarning"
];
+1 -1
pkgs/by-name/bo/borgbackup/package.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [
+
pytestFlags = [
"--benchmark-skip"
"--pyargs"
"borg.testsuite"
+1 -1
pkgs/by-name/br/browsr/package.nix
···
"browsr"
];
-
pytestFlagsArray = [
+
pytestFlags = [
"--snapshot-update"
];
+1 -1
pkgs/by-name/de/devpi-client/package.nix
···
export HOME=$(mktemp -d);
'';
-
pytestFlagsArray = [
+
pytestFlags = [
# --fast skips tests which try to start a devpi-server improperly
"--fast"
];
+1 -1
pkgs/by-name/di/diffoscope/package.nix
···
nativeCheckInputs = with python.pkgs; [ pytestCheckHook ] ++ pythonPath;
-
pytestFlagsArray = [
+
pytestFlags = [
# Always show more information when tests fail
"-vv"
];
+1 -1
pkgs/by-name/gd/gdal/package.nix
···
filelock
lxml
];
-
pytestFlagsArray = [
+
pytestFlags = [
"--benchmark-disable"
];
disabledTestPaths = [
+2 -2
pkgs/by-name/ma/maigret/package.nix
···
pythonRemoveDeps = [ "future-annotations" ];
-
pytestFlagsArray = [
+
pytestFlags = [
# DeprecationWarning: There is no current event loop
-
"-W ignore::DeprecationWarning"
+
"-Wignore::DeprecationWarning"
];
disabledTests =
+1 -1
pkgs/by-name/me/memtree/package.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "-v" ];
+
pytestFlags = [ "-v" ];
pythonImportsCheck = [ "memtree" ];
passthru.updateScript = nix-update-script {
+1 -1
pkgs/by-name/ni/nixos-rebuild-ng/package.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "-vv" ];
+
pytestFlags = [ "-vv" ];
makeWrapperArgs = lib.optionals (withTmpdir != null) [
"--set TMPDIR ${withTmpdir}"
+1 -1
pkgs/by-name/pr/pre-commit/package.nix
···
patchShebangs pre_commit/resources/hook-tmpl
'';
-
pytestFlagsArray = [
+
pytestFlags = [
"--forked"
];
+2 -3
pkgs/by-name/pr/pretix/package.nix
···
]
++ lib.flatten (lib.attrValues optional-dependencies);
-
pytestFlagsArray = [
-
"--reruns"
-
"3"
+
pytestFlags = [
+
"--reruns=3"
];
disabledTests = [
+1 -3
pkgs/by-name/sn/snowflake-cli/package.nix
···
pytest-httpserver
];
-
pytestFlagsArray = [
-
"-n"
-
"$NIX_BUILD_CORES"
+
pytestFlags = [
"--snapshot-warn-unused"
];
+1 -1
pkgs/development/embedded/fpga/apio/default.nix
···
"test2"
];
-
pytestFlagsArray = [ "--offline" ];
+
pytestFlags = [ "--offline" ];
strictDeps = true;
+1 -1
pkgs/development/python-modules/aioazuredevops/default.nix
···
"test_get_build"
];
-
pytestFlagsArray = [ "--snapshot-update" ];
+
pytestFlags = [ "--snapshot-update" ];
pythonImportsCheck = [ "aioazuredevops" ];
+1 -1
pkgs/development/python-modules/aioelectricitymaps/default.nix
···
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";
+1 -1
pkgs/development/python-modules/aiogithubapi/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "--asyncio-mode=auto" ];
+
pytestFlags = [ "--asyncio-mode=auto" ];
preCheck = ''
export HOME=$(mktemp -d)
+2 -3
pkgs/development/python-modules/aiohttp-jinja2/default.nix
···
__darwinAllowLocalNetworking = true;
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
];
pythonImportsCheck = [ "aiohttp_jinja2" ];
+1 -1
pkgs/development/python-modules/aiohttp-retry/default.nix
···
pythonImportsCheck = [ "aiohttp_retry" ];
-
pytestFlagsArray = [ "--asyncio-mode=auto" ];
+
pytestFlags = [ "--asyncio-mode=auto" ];
meta = with lib; {
description = "Retry client for aiohttp";
+1 -1
pkgs/development/python-modules/aiosyncthing/default.nix
···
pytest-mock
];
-
pytestFlagsArray = [ "--asyncio-mode=auto" ];
+
pytestFlags = [ "--asyncio-mode=auto" ];
pythonImportsCheck = [ "aiosyncthing" ];
+1 -1
pkgs/development/python-modules/aiounifi/default.nix
···
trustme
];
-
pytestFlagsArray = [ "--asyncio-mode=auto" ];
+
pytestFlags = [ "--asyncio-mode=auto" ];
pythonImportsCheck = [ "aiounifi" ];
+1 -1
pkgs/development/python-modules/aiowaqi/default.nix
···
"test_search"
];
-
pytestFlagsArray = [ "--snapshot-update" ];
+
pytestFlags = [ "--snapshot-update" ];
meta = with lib; {
description = "Module to interact with the WAQI API";
+1 -1
pkgs/development/python-modules/aiowithings/default.nix
···
pythonImportsCheck = [ "aiowithings" ];
-
pytestFlagsArray = [ "--snapshot-update" ];
+
pytestFlags = [ "--snapshot-update" ];
disabledTests = [
# Tests require network access
+1 -1
pkgs/development/python-modules/amqtt/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "--asyncio-mode=auto" ];
+
pytestFlags = [ "--asyncio-mode=auto" ];
disabledTests = lib.optionals (pythonAtLeast "3.12") [
# stuck in epoll
+1 -1
pkgs/development/python-modules/androguard/default.nix
···
];
# 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[@]}")
+2 -3
pkgs/development/python-modules/anthropic/default.nix
···
"tests/lib/test_bedrock.py"
];
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
];
meta = {
+1 -1
pkgs/development/python-modules/ariadne/default.nix
···
pythonImportsCheck = [ "ariadne" ];
-
pytestFlagsArray = [ "--snapshot-update" ];
+
pytestFlags = [ "--snapshot-update" ];
disabledTests = [
# TypeError: TestClient.request() got an unexpected keyword argument 'content'
+1 -1
pkgs/development/python-modules/aspectlib/default.nix
···
tornado
];
-
pytestFlagsArray = [ "-W ignore::DeprecationWarning" ];
+
pytestFlags = [ "-Wignore::DeprecationWarning" ];
__darwinAllowLocalNetworking = true;
+1 -1
pkgs/development/python-modules/astropy/default.nix
···
# https://github.com/NixOS/nixpkgs/issues/255262
cd "$out"
'';
-
pytestFlagsArray = [
+
pytestFlags = [
"--hypothesis-profile=ci"
];
postCheck = ''
+2 -3
pkgs/development/python-modules/astroquery/default.nix
···
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
+2 -3
pkgs/development/python-modules/asyncclick/default.nix
···
trio
];
-
pytestFlagsArray = [
-
"-W"
-
"ignore::trio.TrioDeprecationWarning"
+
pytestFlags = [
+
"-Wignore::trio.TrioDeprecationWarning"
];
disabledTests = [
+1 -1
pkgs/development/python-modules/bindep/default.nix
···
export PATH=$PATH:$out/bin
'';
-
pytestFlagsArray = [ "-s" ];
+
pytestFlags = [ "-s" ];
pythonImportsCheck = [ "bindep" ];
+1 -1
pkgs/development/python-modules/bitstring/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [
+
pytestFlags = [
"--benchmark-disable"
];
+2 -3
pkgs/development/python-modules/black/default.nix
···
parameterized
] ++ lib.flatten (lib.attrValues optional-dependencies);
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
];
preCheck =
+2 -3
pkgs/development/python-modules/blackjax/default.nix
···
pytest-xdist
];
-
pytestFlagsArray = [
+
pytestFlags = [
# DeprecationWarning: JAXopt is no longer maintained
-
"-W"
-
"ignore::DeprecationWarning"
+
"-Wignore::DeprecationWarning"
];
disabledTestPaths = [
+1 -1
pkgs/development/python-modules/bluetooth-data-tools/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
pythonImportsCheck = [ "bluetooth_data_tools" ];
+1 -1
pkgs/development/python-modules/buienradar/default.nix
···
"test_readdata3"
];
-
pytestFlagsArray = [
+
pytestFlags = [
"--snapshot-warn-unused"
];
+2 -3
pkgs/development/python-modules/build/default.nix
···
wheel
];
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
];
__darwinAllowLocalNetworking = true;
+3 -4
pkgs/development/python-modules/certbot-dns-cloudflare/default.nix
···
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 // {
+2 -2
pkgs/development/python-modules/certbot-dns-google/default.nix
···
nativeCheckInputs = [ pytestCheckHook ];
-
pytestFlagsArray = [
-
"-p no:cacheprovider"
+
pytestFlags = [
+
"-pno:cacheprovider"
];
meta = certbot.meta // {
+3 -4
pkgs/development/python-modules/certbot-dns-ovh/default.nix
···
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 // {
+3 -4
pkgs/development/python-modules/certbot-dns-rfc2136/default.nix
···
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 // {
+3 -4
pkgs/development/python-modules/certbot-dns-route53/default.nix
···
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 // {
+3 -4
pkgs/development/python-modules/certbot/default.nix
···
pytest-xdist
];
-
pytestFlagsArray = [
-
"-p no:cacheprovider"
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-pno:cacheprovider"
+
"-Wignore::DeprecationWarning"
];
makeWrapperArgs = [ "--prefix PATH : ${dialog}/bin" ];
+2 -3
pkgs/development/python-modules/cherrypy/default.nix
···
export CI=true
'';
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
];
disabledTests =
+3 -5
pkgs/development/python-modules/chromadb/default.nix
···
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 = ''
+2 -2
pkgs/development/python-modules/colour/default.nix
···
nativeCheckInputs = [ pytestCheckHook ];
-
pytestFlagsArray = [
-
"--doctest-glob=\"*.rst\""
+
pytestFlags = [
+
"--doctest-glob=*.rst"
"--doctest-modules"
];
+1 -1
pkgs/development/python-modules/connect-box/default.nix
···
pythonImportsCheck = [ "connect_box" ];
-
pytestFlagsArray = [ "--vcr-record=none" ];
+
pytestFlags = [ "--vcr-record=none" ];
meta = with lib; {
description = "Interact with a Compal CH7465LG cable modem/router";
+1 -1
pkgs/development/python-modules/cons/default.nix
···
pytest-html
];
-
pytestFlagsArray = [
+
pytestFlags = [
"--html=testing-report.html"
"--self-contained-html"
];
+1 -1
pkgs/development/python-modules/cryptography/default.nix
···
pytest-xdist
] ++ optional-dependencies.ssh;
-
pytestFlagsArray = [ "--disable-pytest-warnings" ];
+
pytestFlags = [ "--disable-pytest-warnings" ];
disabledTestPaths = [
# save compute time by not running benchmarks
+2 -3
pkgs/development/python-modules/cypherpunkpay/default.nix
···
webtest
];
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
];
disabledTestPaths = [
+1 -1
pkgs/development/python-modules/datafusion/default.nix
···
pythonImportsCheck = [ "datafusion" ];
-
pytestFlagsArray = [
+
pytestFlags = [
"--pyargs"
pname
];
+2 -3
pkgs/development/python-modules/datalad/default.nix
···
httpretty
];
-
pytestFlagsArray = [
+
pytestFlags = [
# Deprecated in 3.13. Use exc_type_str instead.
-
"-W"
-
"ignore::DeprecationWarning"
+
"-Wignore::DeprecationWarning"
];
pythonImportsCheck = [ "datalad" ];
+1 -1
pkgs/development/python-modules/deploykit/default.nix
···
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ "test_ssh" ];
# don't swallow stdout/stderr
-
pytestFlagsArray = [ "-s" ];
+
pytestFlags = [ "-s" ];
pythonImportsCheck = [ "deploykit" ];
+1 -1
pkgs/development/python-modules/discovery30303/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "--asyncio-mode=auto" ];
+
pytestFlags = [ "--asyncio-mode=auto" ];
pythonImportsCheck = [ "discovery30303" ];
+2 -3
pkgs/development/python-modules/django-redis/default.nix
···
pytestCheckHook
] ++ lib.flatten (lib.attrValues optional-dependencies);
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
];
disabledTests = [
+1 -1
pkgs/development/python-modules/dynalite-devices/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "--asyncio-mode=auto" ];
+
pytestFlags = [ "--asyncio-mode=auto" ];
pythonImportsCheck = [ "dynalite_devices_lib" ];
+2 -3
pkgs/development/python-modules/elastic-transport/default.nix
···
pythonImportsCheck = [ "elastic_transport" ];
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
];
disabledTests = [
+1 -1
pkgs/development/python-modules/etuples/default.nix
···
pytest-html
];
-
pytestFlagsArray = [
+
pytestFlags = [
"--html=testing-report.html"
"--self-contained-html"
];
+1 -1
pkgs/development/python-modules/execnet/default.nix
···
"test_stdouterrin_setnull"
];
-
pytestFlagsArray = [ "-vvv" ];
+
pytestFlags = [ "-vvv" ];
pythonImportsCheck = [ "execnet" ];
+1 -1
pkgs/development/python-modules/fairseq/default.nix
···
cd tests
'';
-
pytestFlagsArray = [ "--import-mode append" ];
+
pytestFlags = [ "--import-mode=append" ];
disabledTests = [
# this test requires xformers
+3 -3
pkgs/development/python-modules/fastapi/default.nix
···
++ 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 = [
+1 -1
pkgs/development/python-modules/fastdiff/default.nix
···
pytest-benchmark
];
-
pytestFlagsArray = [ "--benchmark-skip" ];
+
pytestFlags = [ "--benchmark-skip" ];
pythonImportsCheck = [ "fastdiff" ];
+1 -1
pkgs/development/python-modules/fastnumbers/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "--hypothesis-profile=standard" ];
+
pytestFlags = [ "--hypothesis-profile=standard" ];
pythonImportsCheck = [ "fastnumbers" ];
+2 -3
pkgs/development/python-modules/flask-marshmallow/default.nix
···
pythonImportsCheck = [ "flask_marshmallow" ];
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
];
meta = {
+2 -3
pkgs/development/python-modules/flask-sqlalchemy/default.nix
···
"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" ];
+1 -1
pkgs/development/python-modules/flufl/lock.nix
···
# 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" ];
+1 -1
pkgs/development/python-modules/fyta-cli/default.nix
···
pythonImportsCheck = [ "fyta_cli" ];
-
pytestFlagsArray = [ "--snapshot-update" ];
+
pytestFlags = [ "--snapshot-update" ];
meta = with lib; {
description = "Module to access the FYTA API";
+1 -1
pkgs/development/python-modules/geopy/default.nix
···
disabledTestPaths = lib.optionals (pythonAtLeast "3.12") [ "test/test_init.py" ];
-
pytestFlagsArray = [ "--skip-tests-requiring-internet" ];
+
pytestFlags = [ "--skip-tests-requiring-internet" ];
pythonImportsCheck = [ "geopy" ];
+1 -1
pkgs/development/python-modules/graphene/default.nix
···
pytest-mock
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
pythonImportsCheck = [ "graphene" ];
+2 -3
pkgs/development/python-modules/grpc-google-iam-v1/default.nix
···
"google.iam.v1"
];
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
];
meta = with lib; {
+1 -1
pkgs/development/python-modules/guessit/default.nix
···
pyyaml
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
pythonImportsCheck = [ "guessit" ];
+1 -1
pkgs/development/python-modules/habiticalib/default.nix
···
syrupy
];
-
pytestFlagsArray = [ "--snapshot-update" ];
+
pytestFlags = [ "--snapshot-update" ];
pythonImportsCheck = [ "habiticalib" ];
+1 -1
pkgs/development/python-modules/hmmlearn/default.nix
···
pythonImportsCheck = [ "hmmlearn" ];
-
pytestFlagsArray = [
+
pytestFlags = [
"--pyargs"
"hmmlearn"
];
+1 -1
pkgs/development/python-modules/homematicip/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "--asyncio-mode=auto" ];
+
pytestFlags = [ "--asyncio-mode=auto" ];
disabledTests = [
# Assert issues with datetime
+3 -5
pkgs/development/python-modules/httpx/default.nix
···
export PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
'';
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
-
"-W"
-
"ignore::trio.TrioDeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
+
"-Wignore::trio.TrioDeprecationWarning"
];
disabledTests = [
+2 -3
pkgs/development/python-modules/hydra-core/default.nix
···
nativeCheckInputs = [ pytestCheckHook ];
-
pytestFlagsArray = [
-
"-W"
-
"ignore::UserWarning"
+
pytestFlags = [
+
"-Wignore::UserWarning"
];
# Test environment setup broken under Nix for a few tests:
+2 -3
pkgs/development/python-modules/icontract/default.nix
···
"tests/test_typeguard.py"
];
-
pytestFlagsArray = [
+
pytestFlags = [
# RuntimeWarning: coroutine '*' was never awaited
-
"-W"
-
"ignore::RuntimeWarning"
+
"-Wignore::RuntimeWarning"
];
pythonImportsCheck = [ "icontract" ];
+2 -2
pkgs/development/python-modules/ifcopenshell/default.nix
···
popd
'';
-
pytestFlagsArray = [
-
"-p no:pytest-blender"
+
pytestFlags = [
+
"-pno:pytest-blender"
];
disabledTestPaths = [
+1 -1
pkgs/development/python-modules/imread/default.nix
···
nativeCheckInputs = [ pytestCheckHook ];
-
pytestFlagsArray = [
+
pytestFlags = [
# verbose build outputs needed to debug hard-to-reproduce hydra failures
"-v"
"--pyargs"
+1 -1
pkgs/development/python-modules/janus/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
meta = with lib; {
description = "Mixed sync-async queue";
+2 -2
pkgs/development/python-modules/jupyter-core/default.nix
···
export HOME=$TMPDIR
'';
-
pytestFlagsArray = [
+
pytestFlags = [
# suppress pytest.PytestUnraisableExceptionWarning: Exception ignored in: <socket.socket fd=-1, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0>
-
"-W ignore::pytest.PytestUnraisableExceptionWarning"
+
"-Wignore::pytest.PytestUnraisableExceptionWarning"
];
disabledTests = [
+1 -1
pkgs/development/python-modules/jupyter-packaging/default.nix
···
pytest-timeout
];
-
pytestFlagsArray = [ "-Wignore::DeprecationWarning" ];
+
pytestFlags = [ "-Wignore::DeprecationWarning" ];
preCheck = ''
export HOME=$(mktemp -d)
+3 -5
pkgs/development/python-modules/jupyter-server/default.nix
···
flaky
];
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
# 19 failures on python 3.13:
# ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff2a0cc70>
# TODO: Can probably be removed at the next update
-
"-W"
-
"ignore::pytest.PytestUnraisableExceptionWarning"
+
"-Wignore::pytest.PytestUnraisableExceptionWarning"
];
preCheck = ''
+2 -3
pkgs/development/python-modules/jupyterlab-server/default.nix
···
export HOME=$(mktemp -d)
'';
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
];
disabledTestPaths = [
+3 -5
pkgs/development/python-modules/langgraph-prebuilt/default.nix
···
export PYTHONPATH=${src}/libs/langgraph:$PYTHONPATH
'';
-
pytestFlagsArray = [
-
"-W"
-
"ignore::pytest.PytestDeprecationWarning"
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::pytest.PytestDeprecationWarning"
+
"-Wignore::DeprecationWarning"
];
disabledTestPaths = [
+1 -1
pkgs/development/python-modules/logical-unification/default.nix
···
"test_reify_recursion_limit"
];
-
pytestFlagsArray = [
+
pytestFlags = [
"--benchmark-skip"
"--html=testing-report.html"
"--self-contained-html"
+2 -3
pkgs/development/python-modules/marshmallow-dataclass/default.nix
···
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") [
+1 -1
pkgs/development/python-modules/matrix-nio/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
disabledTestPaths = lib.optionals (!withOlm) [
"tests/encryption_test.py"
+2 -3
pkgs/development/python-modules/mcp/default.nix
···
requests
] ++ lib.flatten (lib.attrValues optional-dependencies);
-
pytestFlagsArray = [
-
"-W"
-
"ignore::pydantic.warnings.PydanticDeprecatedSince211"
+
pytestFlags = [
+
"-Wignore::pydantic.warnings.PydanticDeprecatedSince211"
];
disabledTests =
+1 -1
pkgs/development/python-modules/minikanren/default.nix
···
pytest-html
];
-
pytestFlagsArray = [
+
pytestFlags = [
"--html=testing-report.html"
"--self-contained-html"
];
+1 -1
pkgs/development/python-modules/mlrose/default.nix
···
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";
+1 -1
pkgs/development/python-modules/mlxtend/default.nix
···
nativeCheckInputs = [ pytestCheckHook ];
-
pytestFlagsArray = [ "-sv" ];
+
pytestFlags = [ "-sv" ];
disabledTests = [
# Type changed in numpy2 test should be updated
+1 -1
pkgs/development/python-modules/motmetrics/default.nix
···
pytest-benchmark
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
pythonImportsCheck = [ "motmetrics" ];
+1 -1
pkgs/development/python-modules/moviepy/default.nix
···
] ++ 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" ];
+2 -3
pkgs/development/python-modules/narwhals/default.nix
···
"test_unary_two_elements"
];
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
];
meta = {
+2 -3
pkgs/development/python-modules/nbconvert/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
];
disabledTests = [
+1 -1
pkgs/development/python-modules/neurokit2/default.nix
···
"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
+2 -3
pkgs/development/python-modules/notebook/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
];
env = {
+2 -3
pkgs/development/python-modules/numpyro/default.nix
···
pythonImportsCheck = [ "numpyro" ];
-
pytestFlagsArray = [
+
pytestFlags = [
# Tests memory consumption grows significantly with the number of parallel processes (reaches ~200GB with 80 jobs)
"--maxprocesses=8"
···
# 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 =
+2 -3
pkgs/development/python-modules/openai/default.nix
···
respx
];
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
# snapshot mismatches
"--inline-snapshot=update"
];
+1 -1
pkgs/development/python-modules/openapi-schema-validator/default.nix
···
"test_array_prefixitems_invalid"
];
-
pytestFlagsArray = [ "-vvv" ];
+
pytestFlags = [ "-vvv" ];
pythonImportsCheck = [ "openapi_schema_validator" ];
+2 -3
pkgs/development/python-modules/openpyxl/default.nix
···
pytest7CheckHook
];
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
];
disabledTests =
+2 -3
pkgs/development/python-modules/optimistix/default.nix
···
pytest-xdist
];
-
pytestFlagsArray = [
+
pytestFlags = [
# Since jax 0.5.3:
# DeprecationWarning: shape requires ndarray or scalar arguments, got <class 'jax._src.api.ShapeDtypeStruct'> at position 0. In a future JAX release this will be an error.
-
"-W"
-
"ignore::DeprecationWarning"
+
"-Wignore::DeprecationWarning"
];
meta = {
+2 -3
pkgs/development/python-modules/param/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
];
pythonImportsCheck = [ "param" ];
+1 -1
pkgs/development/python-modules/parselmouth/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [
+
pytestFlags = [
"--run-praat-tests"
"-v"
];
+1 -1
pkgs/development/python-modules/pecan/default.nix
···
webtest
];
-
pytestFlagsArray = [ "--pyargs pecan" ];
+
pytestFlags = [ "--pyargs" "pecan" ];
pythonImportsCheck = [ "pecan" ];
+2 -2
pkgs/development/python-modules/pelican/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [
+
pytestFlags = [
# DeprecationWarning: 'jinja2.Markup' is deprecated and...
-
"-W ignore::DeprecationWarning"
+
"-Wignore::DeprecationWarning"
];
disabledTests = [
+2 -3
pkgs/development/python-modules/pims/default.nix
···
pythonImportsCheck = [ "pims" ];
-
pytestFlagsArray = [
-
"-W"
-
"ignore::Warning"
+
pytestFlags = [
+
"-Wignore::Warning"
];
disabledTests = [
+1 -1
pkgs/development/python-modules/pint/default.nix
···
matplotlib
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
preCheck = ''
export HOME=$(mktemp -d)
+2 -3
pkgs/development/python-modules/proto-plus/default.nix
···
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" ];
+2 -3
pkgs/development/python-modules/psygnal/default.nix
···
attrs
];
-
pytestFlagsArray = [
-
"-W"
-
"ignore::pydantic.warnings.PydanticDeprecatedSince211"
+
pytestFlags = [
+
"-Wignore::pydantic.warnings.PydanticDeprecatedSince211"
];
pythonImportsCheck = [ "psygnal" ];
+1 -1
pkgs/development/python-modules/pure-protobuf/default.nix
···
pytest-cov-stub
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
pythonImportsCheck = [ "pure_protobuf" ];
+2 -3
pkgs/development/python-modules/pycrdt/default.nix
···
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" ]; };
+2 -3
pkgs/development/python-modules/pydantic-compat/default.nix
···
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 = {
+1 -1
pkgs/development/python-modules/pykakasi/default.nix
···
"test_aozora"
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
pythonImportsCheck = [ "pykakasi" ];
+2 -3
pkgs/development/python-modules/pylint/default.nix
···
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"
];
+1 -1
pkgs/development/python-modules/pylutron-caseta/default.nix
···
pytestCheckHook
] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ];
-
pytestFlagsArray = [ "--asyncio-mode=auto" ];
+
pytestFlags = [ "--asyncio-mode=auto" ];
pythonImportsCheck = [ "pylutron_caseta" ];
+2 -3
pkgs/development/python-modules/pynetdicom/default.nix
···
pythonImportsCheck = [ "pynetdicom" ];
-
pytestFlagsArray = [
+
pytestFlags = [
# https://github.com/pydicom/pynetdicom/issues/923
-
"-W"
-
"ignore::pytest.PytestRemovedIn9Warning"
+
"-Wignore::pytest.PytestRemovedIn9Warning"
];
meta = with lib; {
+1 -1
pkgs/development/python-modules/pypck/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "--asyncio-mode=auto" ];
+
pytestFlags = [ "--asyncio-mode=auto" ];
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ "test_connection_lost" ];
+1 -1
pkgs/development/python-modules/pyspcwebgw/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "--asyncio-mode=auto" ];
+
pytestFlags = [ "--asyncio-mode=auto" ];
pythonImportsCheck = [ "pyspcwebgw" ];
+2 -3
pkgs/development/python-modules/pytest-mpi/default.nix
···
# 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" ];
+2 -3
pkgs/development/python-modules/pytest-postgresql/default.nix
···
pytestCheckHook
pytest-cov-stub
];
-
pytestFlagsArray = [
-
"-p"
-
"no:postgresql"
+
pytestFlags = [
+
"-pno:postgresql"
];
disabledTestPaths = [ "tests/docker/test_noproc_docker.py" ]; # requires Docker
disabledTests = [
+2 -3
pkgs/development/python-modules/pytest-randomly/default.nix
···
];
# needs special invocation, copied from tox.ini
-
pytestFlagsArray = [
-
"-p"
-
"no:randomly"
+
pytestFlags = [
+
"-pno:randomly"
];
pythonImportsCheck = [ "pytest_randomly" ];
+2 -3
pkgs/development/python-modules/pytest-regressions/default.nix
···
pytestCheckHook
] ++ lib.flatten (lib.attrValues optional-dependencies);
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
];
pythonImportsCheck = [
+1 -1
pkgs/development/python-modules/pytest-subprocess/default.nix
···
typing-extensions
];
-
pytestFlagsArray = [ "-W ignore::DeprecationWarning" ];
+
pytestFlags = [ "-Wignore::DeprecationWarning" ];
meta = with lib; {
description = "Plugin to fake subprocess for pytest";
+5 -9
pkgs/development/python-modules/python-arango/default.nix
···
--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 = [
+2 -3
pkgs/development/python-modules/python-docx/default.nix
···
"it_accepts_unicode_providing_there_is_no_encoding_declaration"
];
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
];
meta = with lib; {
+1 -1
pkgs/development/python-modules/python-kasa/default.nix
···
];
};
-
pytestFlagsArray = [ "--asyncio-mode=auto" ];
+
pytestFlags = [ "--asyncio-mode=auto" ];
disabledTestPaths = [
# Skip the examples tests
+2 -2
pkgs/development/python-modules/pythonnet/default.nix
···
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 = [
+1 -1
pkgs/development/python-modules/pytraccar/default.nix
···
pytest-asyncio
];
-
pytestFlagsArray = [ "--asyncio-mode=auto" ];
+
pytestFlags = [ "--asyncio-mode=auto" ];
postPatch = ''
# Upstream doesn't set version in the repo
+1 -1
pkgs/development/python-modules/pyunpack/default.nix
···
cabextract
];
-
pytestFlagsArray = [ "-x" ];
+
pytestFlags = [ "-x" ];
pythonImportsCheck = [ "pyunpack" ];
+1 -1
pkgs/development/python-modules/pyvirtualdisplay/default.nix
···
xorg.xvfb
];
-
pytestFlagsArray = [ "-v" ];
+
pytestFlags = [ "-v" ];
meta = with lib; {
description = "Python wrapper for Xvfb, Xephyr and Xvnc";
+1 -1
pkgs/development/python-modules/pywizlight/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "--asyncio-mode=auto" ];
+
pytestFlags = [ "--asyncio-mode=auto" ];
disabledTests = [
# Tests requires network features (e. g., discovery testing)
+1 -1
pkgs/development/python-modules/qiskit-aer/default.nix
···
testtools
];
-
pytestFlagsArray = [
+
pytestFlags = [
"--timeout=30"
"--durations=10"
];
+1 -1
pkgs/development/python-modules/qiskit-finance/default.nix
···
"test_yahoo"
"test_wikipedia"
];
-
pytestFlagsArray = [ "--durations=10" ];
+
pytestFlags = [ "--durations=10" ];
meta = with lib; {
description = "Software for developing quantum computing programs";
+1 -1
pkgs/development/python-modules/qiskit-nature/default.nix
···
pythonImportsCheck = [ "qiskit_nature" ];
-
pytestFlagsArray = [ "--durations=10" ];
+
pytestFlags = [ "--durations=10" ];
disabledTests = [
"test_two_qubit_reduction" # failure cause unclear
+1 -1
pkgs/development/python-modules/qiskit-optimization/default.nix
···
];
pythonImportsCheck = [ "qiskit_optimization" ];
-
pytestFlagsArray = [ "--durations=10" ];
+
pytestFlags = [ "--durations=10" ];
meta = with lib; {
description = "Software for developing quantum computing programs";
+1 -1
pkgs/development/python-modules/qiskit-terra/default.nix
···
# 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
+1 -1
pkgs/development/python-modules/rtoml/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
disabledTests = [
# TypeError: loads() got an unexpected keyword argument 'name'
+2 -3
pkgs/development/python-modules/ruyaml/default.nix
···
nativeCheckInputs = [ pytestCheckHook ];
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
];
pythonImportsCheck = [ "ruyaml" ];
+1 -1
pkgs/development/python-modules/schemdraw/default.nix
···
preCheck = "rm test/test_pictorial.ipynb"; # Tries to download files
-
pytestFlagsArray = [ "--nbval-lax" ];
+
pytestFlags = [ "--nbval-lax" ];
pythonImportsCheck = [ "schemdraw" ];
+1 -1
pkgs/development/python-modules/scikit-learn-extra/default.nix
···
rm -r sklearn_extra
'';
-
pytestFlagsArray = [ "--pyargs sklearn_extra" ];
+
pytestFlags = [ "--pyargs" "sklearn_extra" ];
disabledTestPaths = [
"benchmarks"
"examples"
+1 -1
pkgs/development/python-modules/scikit-misc/default.nix
···
cd "$(mktemp -d)"
'';
-
pytestFlagsArray = [ "--pyargs skmisc" ];
+
pytestFlags = [ "--pyargs" "skmisc" ];
pythonImportsCheck = [ "skmisc" ];
+2 -3
pkgs/development/python-modules/spectral-cube/default.nix
···
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 =
+2 -3
pkgs/development/python-modules/sqlalchemy-utils/default.nix
···
"test_render_mock_ddl"
];
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
];
pythonImportsCheck = [ "sqlalchemy_utils" ];
+1 -1
pkgs/development/python-modules/sqlitedict/default.nix
···
pythonImportsCheck = [ "sqlitedict" ];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
meta = with lib; {
description = "Persistent, thread-safe dict";
+4 -7
pkgs/development/python-modules/starlette/default.nix
···
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" ];
+2 -3
pkgs/development/python-modules/sunpy/default.nix
···
"sunpy/io/setup_package.py"
];
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
];
# Wants a configuration file
+1 -1
pkgs/development/python-modules/systembridgeconnector/default.nix
···
"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}";
+1 -1
pkgs/development/python-modules/systembridgemodels/default.nix
···
"test_update"
];
-
pytestFlagsArray = [ "--snapshot-warn-unused" ];
+
pytestFlags = [ "--snapshot-warn-unused" ];
meta = {
changelog = "https://github.com/timmo001/system-bridge-models/releases/tag/${version}";
+1 -1
pkgs/development/python-modules/textual/default.nix
···
"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"
+2 -2
pkgs/development/python-modules/timeslot/default.nix
···
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" ];
+3 -5
pkgs/development/python-modules/tqdm/default.nix
···
pandas
];
-
pytestFlagsArray = [
-
"-W"
-
"ignore::FutureWarning"
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::FutureWarning"
+
"-Wignore::DeprecationWarning"
];
# Remove performance testing.
+3 -5
pkgs/development/python-modules/trio-asyncio/default.nix
···
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 = [
+2 -3
pkgs/development/python-modules/trio/default.nix
···
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.
+1 -1
pkgs/development/python-modules/uarray/default.nix
···
cd $TMP
'';
-
pytestFlagsArray = [
+
pytestFlags = [
"--pyargs"
"uarray"
];
+1 -1
pkgs/development/python-modules/uiprotect/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
disabledTests = [
# https://127.0.0.1 vs https://127.0.0.1:0
+1 -1
pkgs/development/python-modules/ulid-transform/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
pythonImportsCheck = [ "ulid_transform" ];
+1 -1
pkgs/development/python-modules/unifi-discovery/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "--asyncio-mode=auto" ];
+
pytestFlags = [ "--asyncio-mode=auto" ];
pythonImportsCheck = [ "unifi_discovery" ];
+1 -1
pkgs/development/python-modules/vega-datasets/default.nix
···
nativeCheckInputs = [ pytestCheckHook ];
-
pytestFlagsArray = [ "--doctest-modules" ];
+
pytestFlags = [ "--doctest-modules" ];
pythonImportsCheck = [ "vega_datasets" ];
+1 -1
pkgs/development/python-modules/wandb/default.nix
···
];
# test_matplotlib_image_with_multiple_axes may take >60s
-
pytestFlagsArray = [
+
pytestFlags = [
"--timeout=1024"
];
+2 -3
pkgs/development/python-modules/wheel-inspect/default.nix
···
pythonImportsCheck = [ "wheel_inspect" ];
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
];
meta = with lib; {
+2 -3
pkgs/development/python-modules/yamlfix/default.nix
···
pythonImportsCheck = [ "yamlfix" ];
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
];
meta = {
+1 -1
pkgs/development/python-modules/zconfig/default.nix
···
pythonImportsCheck = [ "ZConfig" ];
-
pytestFlagsArray = [ "-s" ];
+
pytestFlags = [ "-s" ];
meta = {
description = "Structured Configuration Library";
+1 -1
pkgs/development/python-modules/ziafont/default.nix
···
in
lib.concatMapStrings copyFontCmd checkFonts;
-
pytestFlagsArray = [ "--nbval-lax" ];
+
pytestFlags = [ "--nbval-lax" ];
pythonImportsCheck = [ "ziafont" ];
+1 -1
pkgs/development/python-modules/ziamath/default.nix
···
in
lib.concatMapStrings copyFontCmd checkFonts;
-
pytestFlagsArray = [ "--nbval-lax" ];
+
pytestFlags = [ "--nbval-lax" ];
pythonImportsCheck = [ "ziamath" ];
+1 -1
pkgs/development/python-modules/zigpy-znp/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "--reruns=3" ];
+
pytestFlags = [ "--reruns=3" ];
disabledTests = [
# failing since zigpy 0.60.0
+1 -1
pkgs/servers/home-assistant/custom-components/sleep_as_android/package.nix
···
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"
+5 -1
pkgs/tools/audio/beets/plugins/copyartifacts.nix
···
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";
+1 -1
pkgs/tools/filesystems/ceph/old-python-packages/cryptography.nix
···
pytz
];
-
pytestFlagsArray = [ "--disable-pytest-warnings" ];
+
pytestFlags = [ "--disable-pytest-warnings" ];
disabledTestPaths =
[