treewide: modernize Python package pytest flags

Use `(enabled|disabled)(TestPaths|TestMarks|Tests)` and `pytestFlags`
instead of the `__structuredAttrs`-incompatible `pytestFlagsArray`.

Changed files
+957 -814
pkgs
applications
networking
gns3
by-name
aw
aws-sam-cli
er
errbot
ga
gallery-dl
ha
hatch
ir
iredis
mi
migra
mu
music-assistant
ni
nixos-render-docs
pd
po
poetry
ro
rockcraft
sh
sherlock
sn
snallygaster
sv
svtplay-dl
ta
tahoe-lafs
vu
vulnix
yt
ytdl-sub
development
embedded
platformio
python-modules
ahocorasick-rs
aiocache
aiomqtt
anndata
anyio
array-api-compat
arviz
autobahn
automat
aws-sam-translator
ax-platform
beaker
beancount-plugin-utils
boost-histogram
bork
bytewax
canmatrix
cartopy
curl-cffi
dask
datasette
deltalake
devito
diceware
diofant
dj-stripe
django-crispy-forms
django-q2
django-redis
dotwiz
dtw-python
duckdb-engine
f5-icontrol-rest
faker
fakeredis
fastcrc
fastjsonschema
fiona
firedrake-fiat
flask-dramatiq
flask-restx
flask-unsign
flax
geodatasets
getmac
geventhttpclient
gilknocker
google-auth
gpuctypes
gql
gradio
graphql-core
graspologic
great-expectations
gremlinpython
holoviews
homf
httplib2
ibis-framework
ical
ignite
imageio
isort
jax
jsonrpc-websocket
jsonstreams
jupyter-collaboration
kanidm
kserve
labgrid
lancedb
langchain
langchain-deepseek
langchain-fireworks
langchain-mistralai
langchain-perplexity
langchain-xai
lastversion
ldap3
libipld
limits
llm
magic-wormhole
manifest-ml
ml-collections
mlx
mmengine
mne
moto
ndindex
nestedtext
numba
numbagg
numpy
nutpie
nvchecker
odc-geo
odc-stac
ome-zarr
omegaconf
opentelemetry-propagator-aws-xray
opuslib
owslib
pandas
pandera
papermill
pdf2docx
pdoc
pillow
pipx
polars
pomegranate
psycopg
py7zr
pyadjoint-ad
pydal
pygerber
pyiceberg
pyicu
pylit
pymanopt
pymatgen
pymoo
pyogrio
pyopenweathermap
pypdf
pypinyin
pyppmd
pyquery
pyradiomics
pyscf
pyshark
pystac-client
pytensor
pytest-factoryboy
pytest-flask
python-creole
python-efl
python-olm
pytorch-pfn-extras
pyzmq
qcodes
qiskit-machine-learning
rasterio
ratelimit
rdflib
reproject
returns
schemainspect
scikit-build-core
scikit-image
scipp
setuptools-git-versioning
simple-parsing
simpy
six
slicedimage
smbus-cffi
softlayer
spacy
sqlbag
starkbank-ecdsa
swh-model
tbats
tensorflow-datasets
torcheval
trino-python-client
txtai
typogrify
unstructured-client
urwid
uuid6
uvloop
valkey
warcio
werkzeug
tools
devpi-server
hotdoc
servers
home-assistant
custom-components
yandex-station
tools
audio
beets
plugins
+7 -4
pkgs/applications/networking/gns3/server.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [
+
pytestFlags = [
+
# Rerun failed tests up to three times (flaky tests)
+
"--reruns=3"
+
];
+
+
disabledTestPaths = [
# fails on ofborg because of lack of cpu vendor information
-
"--deselect=tests/controller/gns3vm/test_virtualbox_gns3_vm.py::test_cpu_vendor_id"
-
# Rerun failed tests up to three times (flaky tests)
-
"--reruns 3"
+
"tests/controller/gns3vm/test_virtualbox_gns3_vm.py::test_cpu_vendor_id"
];
passthru.tests = {
+6 -4
pkgs/by-name/aw/aws-sam-cli/package.nix
···
export PATH="$PATH:$out/bin:${lib.makeBinPath [ git ]}"
'';
-
pytestFlagsArray = [
-
"tests"
+
pytestFlags = [
# Disable warnings
-
"-W"
-
"ignore::DeprecationWarning"
+
"-Wignore::DeprecationWarning"
+
];
+
+
enabledTestPaths = [
+
"tests"
];
disabledTestPaths = [
+1 -1
pkgs/by-name/er/errbot/package.nix
···
];
# errbot-backend-slackv3 has not been packaged
-
pytestFlagsArray = [ "--ignore=tests/backend_tests/slack_test.py" ];
+
disabledTestPaths = [ "tests/backend_tests/slack_test.py" ];
disabledTests = [
# require networking
+4 -4
pkgs/by-name/ga/gallery-dl/package.nix
···
"test_init"
];
-
pytestFlagsArray = [
+
disabledTestPaths = [
# requires network access
-
"--ignore=test/test_results.py"
-
"--ignore=test/test_downloader.py"
+
"test/test_results.py"
+
"test/test_downloader.py"
# incompatible with pytestCheckHook
-
"--ignore=test/test_ytdl.py"
+
"test/test_ytdl.py"
];
pythonImportsCheck = [ "gallery_dl" ];
+24 -28
pkgs/by-name/ha/hatch/package.nix
···
versionCheckProgramArg = "--version";
-
pytestFlagsArray =
-
[
-
# AssertionError on the version metadata
-
# https://github.com/pypa/hatch/issues/1877
-
"--deselect=tests/backend/metadata/test_spec.py::TestCoreMetadataV21::test_all"
-
"--deselect=tests/backend/metadata/test_spec.py::TestCoreMetadataV21::test_license_expression"
-
"--deselect=tests/backend/metadata/test_spec.py::TestCoreMetadataV22::test_all"
-
"--deselect=tests/backend/metadata/test_spec.py::TestCoreMetadataV22::test_license_expression"
-
"--deselect=tests/backend/metadata/test_spec.py::TestCoreMetadataV23::test_all"
-
"--deselect=tests/backend/metadata/test_spec.py::TestCoreMetadataV23::test_license_expression"
-
"--deselect=tests/backend/metadata/test_spec.py::TestCoreMetadataV23::test_license_files"
-
"--deselect=tests/backend/metadata/test_spec.py::TestProjectMetadataFromCoreMetadata::test_license_files"
-
]
-
++ lib.optionals stdenv.hostPlatform.isDarwin [
-
# Dependency/versioning errors in the CLI tests, only seem to show up on Darwin
-
# https://github.com/pypa/hatch/issues/1893
-
"--deselect=tests/cli/env/test_create.py::test_sync_dependencies_pip"
-
"--deselect=tests/cli/env/test_create.py::test_sync_dependencies_uv"
-
"--deselect=tests/cli/project/test_metadata.py::TestBuildDependenciesMissing::test_no_compatibility_check_if_exists"
-
"--deselect=tests/cli/run/test_run.py::TestScriptRunner::test_dependencies"
-
"--deselect=tests/cli/run/test_run.py::TestScriptRunner::test_dependencies_from_tool_config"
-
"--deselect=tests/cli/run/test_run.py::test_dependency_hash_checking"
-
"--deselect=tests/cli/run/test_run.py::test_sync_dependencies"
-
"--deselect=tests/cli/run/test_run.py::test_sync_project_dependencies"
-
"--deselect=tests/cli/run/test_run.py::test_sync_project_features"
-
"--deselect=tests/cli/version/test_version.py::test_no_compatibility_check_if_exists"
-
];
-
disabledTests =
[
# AssertionError: assert (1980, 1, 2, 0, 0, 0) == (2020, 2, 2, 0, 0, 0)
···
# https://github.com/pypa/hatch/issues/1850
"tests/backend/licenses/test_parse.py"
"tests/backend/licenses/test_supported.py"
+
+
# AssertionError on the version metadata
+
# https://github.com/pypa/hatch/issues/1877
+
"tests/backend/metadata/test_spec.py::TestCoreMetadataV21::test_all"
+
"tests/backend/metadata/test_spec.py::TestCoreMetadataV21::test_license_expression"
+
"tests/backend/metadata/test_spec.py::TestCoreMetadataV22::test_all"
+
"tests/backend/metadata/test_spec.py::TestCoreMetadataV22::test_license_expression"
+
"tests/backend/metadata/test_spec.py::TestCoreMetadataV23::test_all"
+
"tests/backend/metadata/test_spec.py::TestCoreMetadataV23::test_license_expression"
+
"tests/backend/metadata/test_spec.py::TestCoreMetadataV23::test_license_files"
+
"tests/backend/metadata/test_spec.py::TestProjectMetadataFromCoreMetadata::test_license_files"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# AssertionError: assert [call('test h...2p32/bin/sh')] == [call('test h..., shell=True)]
···
# != call('test hatch-test.py3.10', shell=True)
"tests/cli/fmt/test_fmt.py"
"tests/cli/test/test_test.py"
+
+
# Dependency/versioning errors in the CLI tests, only seem to show up on Darwin
+
# https://github.com/pypa/hatch/issues/1893
+
"tests/cli/env/test_create.py::test_sync_dependencies_pip"
+
"tests/cli/env/test_create.py::test_sync_dependencies_uv"
+
"tests/cli/project/test_metadata.py::TestBuildDependenciesMissing::test_no_compatibility_check_if_exists"
+
"tests/cli/run/test_run.py::TestScriptRunner::test_dependencies"
+
"tests/cli/run/test_run.py::TestScriptRunner::test_dependencies_from_tool_config"
+
"tests/cli/run/test_run.py::test_dependency_hash_checking"
+
"tests/cli/run/test_run.py::test_sync_dependencies"
+
"tests/cli/run/test_run.py::test_sync_project_dependencies"
+
"tests/cli/run/test_run.py::test_sync_project_features"
+
"tests/cli/version/test_version.py::test_no_compatibility_check_if_exists"
];
passthru = {
+11 -8
pkgs/by-name/ir/iredis/package.nix
···
pytestCheckHook
];
-
pytestFlagsArray =
+
enabledTestPaths = [
+
# Only execute unittests, because cli tests require a running Redis
+
"tests/unittests/"
+
];
+
+
disabledTestPaths =
[
# Fails on sandbox
-
"--ignore=tests/unittests/test_client.py"
-
"--deselect=tests/unittests/test_render_functions.py::test_render_unixtime_config_raw"
-
"--deselect=tests/unittests/test_render_functions.py::test_render_time"
-
# Only execute unittests, because cli tests require a running Redis
-
"tests/unittests/"
+
"tests/unittests/test_client.py"
+
"tests/unittests/test_render_functions.py::test_render_unixtime_config_raw"
+
"tests/unittests/test_render_functions.py::test_render_time"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# Flaky tests
-
"--deselect=tests/unittests/test_entry.py::test_command_shell_options_higher_priority"
-
"--deselect=tests/unittests/test_utils.py::test_timer"
+
"tests/unittests/test_entry.py::test_command_shell_options_higher_priority"
+
"tests/unittests/test_utils.py::test_timer"
];
pythonImportsCheck = [ "iredis" ];
+4 -1
pkgs/by-name/mi/migra/package.nix
···
"test_singleschema"
];
-
pytestFlagsArray = [
+
pytestFlags = [
"-x"
"-svv"
+
];
+
+
enabledTestPaths = [
"tests"
];
+4 -4
pkgs/by-name/mu/music-assistant/package.nix
···
++ (providerPackages.jellyfin python.pkgs)
++ (providerPackages.opensubsonic python.pkgs);
-
pytestFlagsArray = [
+
disabledTestPaths = [
# blocks in poll()
-
"--deselect=tests/providers/jellyfin/test_init.py::test_initial_sync"
-
"--deselect=tests/core/test_server_base.py::test_start_and_stop_server"
-
"--deselect=tests/core/test_server_base.py::test_events"
+
"tests/providers/jellyfin/test_init.py::test_initial_sync"
+
"tests/core/test_server_base.py::test_start_and_stop_server"
+
"tests/core/test_server_base.py::test_events"
];
pythonImportsCheck = [ "music_assistant" ];
+4 -1
pkgs/by-name/ni/nixos-render-docs/package.nix
···
mdit-py-plugins
];
-
pytestFlagsArray = [
+
pytestFlags = [
"-vvrP"
+
];
+
+
enabledTestPaths = [
"tests/"
];
+1 -1
pkgs/by-name/pd/pdm/package.nix
···
pytest-httpserver
];
-
pytestFlagsArray = [ "-m 'not network'" ];
+
disabledTestMarks = [ "network" ];
preCheck = ''
export HOME=$TMPDIR
+2 -2
pkgs/by-name/po/poetry/unwrapped.nix
···
"test_threading_atomic_cached_property_different_instances"
];
-
pytestFlagsArray = [
-
"-m 'not network'"
+
disabledTestMarks = [
+
"network"
];
# Allow for package to use pep420's native namespaces
+1 -1
pkgs/by-name/ro/rockcraft/package.nix
···
]
++ [ dpkg ];
-
pytestFlagsArray = [ "tests/unit" ];
+
enabledTestPaths = [ "tests/unit" ];
disabledTests = [
"test_project_all_platforms_invalid"
+2 -3
pkgs/by-name/sh/sherlock/package.nix
···
pythonRelaxDeps = [ "stem" ];
-
pytestFlagsArray = [
-
"-m"
-
"'not online'"
+
disabledTestMarks = [
+
"online"
];
meta = {
+2 -2
pkgs/by-name/sn/snallygaster/package.nix
···
nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
-
pytestFlagsArray = [
+
disabledTestPaths = [
# we are not interested in linting the project
-
"--ignore=tests/test_codingstyle.py"
+
"tests/test_codingstyle.py"
];
meta = with lib; {
+4 -1
pkgs/by-name/sv/svtplay-dl/package.nix
···
requests-mock
];
-
pytestFlagsArray = [
+
pytestFlags = [
"--doctest-modules"
+
];
+
+
enabledTestPaths = [
"lib"
];
+1 -1
pkgs/by-name/ta/tahoe-lafs/package.nix
···
input: (input.pname or null) != "pytest-twisted"
) oldAttrs.nativeCheckInputs;
-
pytestFlagsArray = null;
+
doCheck = false;
});
};
};
+1 -1
pkgs/by-name/vu/vulnix/package.nix
···
postBuild = "make -C doc";
-
pytestFlagsArray = [ "src/vulnix" ];
+
enabledTestPaths = [ "src/vulnix" ];
postInstall = ''
install -D -t $doc/share/doc/vulnix README.rst CHANGES.rst
+2 -2
pkgs/by-name/yt/ytdl-sub/package.nix
···
"test_thumbnail"
];
-
pytestFlagsArray = [
+
disabledTestPaths = [
# According to documentation, e2e tests can be flaky:
# "This checksum can be inaccurate for end-to-end tests"
-
"--ignore=tests/e2e"
+
"tests/e2e"
];
passthru.updateScript = ./update.sh;
+62 -63
pkgs/development/embedded/platformio/core.nix
···
--fish <(_PIO_COMPLETE=fish_source $out/bin/pio)
'';
+
enabledTestPaths = [
+
"tests"
+
];
+
disabledTestPaths = [
"tests/commands/pkg/test_install.py"
"tests/commands/pkg/test_list.py"
···
"tests/commands/test_run.py"
"tests/commands/test_test.py"
"tests/misc/test_maintenance.py"
+
# requires internet connection
"tests/misc/ino2cpp/test_ino2cpp.py"
+
+
"commands/pkg/test_exec.py::test_pkg_specified"
+
"commands/pkg/test_exec.py::test_unrecognized_options"
+
"commands/test_ci.py::test_ci_boards"
+
"commands/test_ci.py::test_ci_build_dir"
+
"commands/test_ci.py::test_ci_keep_build_dir"
+
"commands/test_ci.py::test_ci_lib_and_board"
+
"commands/test_ci.py::test_ci_project_conf"
+
"commands/test_init.py::test_init_custom_framework"
+
"commands/test_init.py::test_init_duplicated_boards"
+
"commands/test_init.py::test_init_enable_auto_uploading"
+
"commands/test_init.py::test_init_ide_atom"
+
"commands/test_init.py::test_init_ide_clion"
+
"commands/test_init.py::test_init_ide_eclipse"
+
"commands/test_init.py::test_init_ide_vscode"
+
"commands/test_init.py::test_init_incorrect_board"
+
"commands/test_init.py::test_init_special_board"
+
"commands/test_lib.py::test_global_install_archive"
+
"commands/test_lib.py::test_global_install_registry"
+
"commands/test_lib.py::test_global_install_repository"
+
"commands/test_lib.py::test_global_lib_list"
+
"commands/test_lib.py::test_global_lib_uninstall"
+
"commands/test_lib.py::test_global_lib_update"
+
"commands/test_lib.py::test_global_lib_update_check"
+
"commands/test_lib.py::test_install_duplicates"
+
"commands/test_lib.py::test_lib_show"
+
"commands/test_lib.py::test_lib_stats"
+
"commands/test_lib.py::test_saving_deps"
+
"commands/test_lib.py::test_search"
+
"commands/test_lib.py::test_update"
+
"commands/test_lib_complex.py::test_global_install_archive"
+
"commands/test_lib_complex.py::test_global_install_registry"
+
"commands/test_lib_complex.py::test_global_install_repository"
+
"commands/test_lib_complex.py::test_global_lib_list"
+
"commands/test_lib_complex.py::test_global_lib_uninstall"
+
"commands/test_lib_complex.py::test_global_lib_update"
+
"commands/test_lib_complex.py::test_global_lib_update_check"
+
"commands/test_lib_complex.py::test_install_duplicates"
+
"commands/test_lib_complex.py::test_lib_show"
+
"commands/test_lib_complex.py::test_lib_stats"
+
"commands/test_lib_complex.py::test_search"
+
"package/test_manager.py::test_download"
+
"package/test_manager.py::test_install_force"
+
"package/test_manager.py::test_install_from_registry"
+
"package/test_manager.py::test_install_lib_depndencies"
+
"package/test_manager.py::test_registry"
+
"package/test_manager.py::test_uninstall"
+
"package/test_manager.py::test_update_with_metadata"
+
"package/test_manager.py::test_update_without_metadata"
+
"test_builder.py::test_build_flags"
+
"test_builder.py::test_build_unflags"
+
"test_builder.py::test_debug_custom_build_flags"
+
"test_builder.py::test_debug_default_build_flags"
+
"test_misc.py::test_api_cache"
+
"test_misc.py::test_ping_internet_ips"
+
"test_misc.py::test_platformio_cli"
+
"test_pkgmanifest.py::test_packages"
];
disabledTests = [
···
"test_ping_internet_ips"
"test_metadata_dump"
];
-
-
pytestFlagsArray =
-
[
-
"tests"
-
]
-
++ (map (e: "--deselect tests/${e}") [
-
"commands/pkg/test_exec.py::test_pkg_specified"
-
"commands/pkg/test_exec.py::test_unrecognized_options"
-
"commands/test_ci.py::test_ci_boards"
-
"commands/test_ci.py::test_ci_build_dir"
-
"commands/test_ci.py::test_ci_keep_build_dir"
-
"commands/test_ci.py::test_ci_lib_and_board"
-
"commands/test_ci.py::test_ci_project_conf"
-
"commands/test_init.py::test_init_custom_framework"
-
"commands/test_init.py::test_init_duplicated_boards"
-
"commands/test_init.py::test_init_enable_auto_uploading"
-
"commands/test_init.py::test_init_ide_atom"
-
"commands/test_init.py::test_init_ide_clion"
-
"commands/test_init.py::test_init_ide_eclipse"
-
"commands/test_init.py::test_init_ide_vscode"
-
"commands/test_init.py::test_init_incorrect_board"
-
"commands/test_init.py::test_init_special_board"
-
"commands/test_lib.py::test_global_install_archive"
-
"commands/test_lib.py::test_global_install_registry"
-
"commands/test_lib.py::test_global_install_repository"
-
"commands/test_lib.py::test_global_lib_list"
-
"commands/test_lib.py::test_global_lib_uninstall"
-
"commands/test_lib.py::test_global_lib_update"
-
"commands/test_lib.py::test_global_lib_update_check"
-
"commands/test_lib.py::test_install_duplicates"
-
"commands/test_lib.py::test_lib_show"
-
"commands/test_lib.py::test_lib_stats"
-
"commands/test_lib.py::test_saving_deps"
-
"commands/test_lib.py::test_search"
-
"commands/test_lib.py::test_update"
-
"commands/test_lib_complex.py::test_global_install_archive"
-
"commands/test_lib_complex.py::test_global_install_registry"
-
"commands/test_lib_complex.py::test_global_install_repository"
-
"commands/test_lib_complex.py::test_global_lib_list"
-
"commands/test_lib_complex.py::test_global_lib_uninstall"
-
"commands/test_lib_complex.py::test_global_lib_update"
-
"commands/test_lib_complex.py::test_global_lib_update_check"
-
"commands/test_lib_complex.py::test_install_duplicates"
-
"commands/test_lib_complex.py::test_lib_show"
-
"commands/test_lib_complex.py::test_lib_stats"
-
"commands/test_lib_complex.py::test_search"
-
"package/test_manager.py::test_download"
-
"package/test_manager.py::test_install_force"
-
"package/test_manager.py::test_install_from_registry"
-
"package/test_manager.py::test_install_lib_depndencies"
-
"package/test_manager.py::test_registry"
-
"package/test_manager.py::test_uninstall"
-
"package/test_manager.py::test_update_with_metadata"
-
"package/test_manager.py::test_update_without_metadata"
-
"test_builder.py::test_build_flags"
-
"test_builder.py::test_build_unflags"
-
"test_builder.py::test_debug_custom_build_flags"
-
"test_builder.py::test_debug_default_build_flags"
-
"test_misc.py::test_api_cache"
-
"test_misc.py::test_ping_internet_ips"
-
"test_misc.py::test_platformio_cli"
-
"test_pkgmanifest.py::test_packages"
-
]);
passthru = {
python = python3Packages.python;
+1 -1
pkgs/development/python-modules/ahocorasick-rs/default.nix
···
hypothesis
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
pythonImportsCheck = [ "ahocorasick_rs" ];
+5 -5
pkgs/development/python-modules/aiocache/default.nix
···
redisTestHook
] ++ lib.flatten (lib.attrValues optional-dependencies);
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
-
# TypeError: object MagicMock can't be used in 'await' expression
-
"--deselect=tests/ut/backends/test_redis.py::TestRedisBackend::test_close"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
# Tests can time out and leave redis/valkey in an unusable state for later tests
"-x"
];
···
"tests/performance/"
# Full of timing-sensitive tests
"tests/ut/backends/test_redis.py"
+
+
# TypeError: object MagicMock can't be used in 'await' expression
+
"tests/ut/backends/test_redis.py::TestRedisBackend::test_close"
];
__darwinAllowLocalNetworking = true;
+2 -3
pkgs/development/python-modules/aiomqtt/default.nix
···
pythonImportsCheck = [ "aiomqtt" ];
-
pytestFlagsArray = [
-
"-m"
-
"'not network'"
+
disabledTestMarks = [
+
"network"
];
meta = with lib; {
+1 -1
pkgs/development/python-modules/anndata/default.nix
···
# Optionally disable pytest-xdist to make it easier to debug the test suite.
# Test suite takes ~5 minutes without pytest-xdist. Note that some tests will
# fail when running without pytest-xdist ("worker_id not found").
-
# pytestFlagsArray = [ "-o" "addopts=" ];
+
# pytestFlags = [ "-oaddopts=" ];
disabledTestPaths = [
# Tests that require scanpy, creating a circular dependency chain
+6 -5
pkgs/development/python-modules/anyio/default.nix
···
uvloop
] ++ optional-dependencies.trio;
-
pytestFlagsArray = [
-
"-W"
-
"ignore::trio.TrioDeprecationWarning"
-
"-m"
-
"'not network'"
+
pytestFlags = [
+
"-Wignore::trio.TrioDeprecationWarning"
+
];
+
+
disabledTestMarks = [
+
"network"
];
preCheck = lib.optionalString stdenv.hostPlatform.isDarwin ''
+2 -3
pkgs/development/python-modules/array-api-compat/default.nix
···
pythonImportsCheck = [ "array_api_compat" ];
# CUDA (used via cupy) is not available in the testing sandbox
-
pytestFlagsArray = [
-
"-k"
-
"'not cupy'"
+
disabledTests = [
+
"cupy"
];
meta = {
+5 -3
pkgs/development/python-modules/arviz/default.nix
···
zarr
];
-
pytestFlagsArray = [
+
enabledTestPaths = [
"arviz/tests/base_tests/"
+
];
+
disabledTestPaths = [
# AttributeError: module 'zarr.storage' has no attribute 'DirectoryStore'
# https://github.com/arviz-devs/arviz/issues/2357
-
"--deselect=arviz/tests/base_tests/test_data_zarr.py::TestDataZarr::test_io_function"
-
"--deselect=arviz/tests/base_tests/test_data_zarr.py::TestDataZarr::test_io_method"
+
"arviz/tests/base_tests/test_data_zarr.py::TestDataZarr::test_io_function"
+
"arviz/tests/base_tests/test_data_zarr.py::TestDataZarr::test_io_method"
];
disabledTests = [
+5 -2
pkgs/development/python-modules/autobahn/default.nix
···
export USE_ASYNCIO=1
'';
-
pytestFlagsArray = [
-
"--ignore=./autobahn/twisted"
+
enabledTestPaths = [
"./autobahn"
+
];
+
+
disabledTestPaths = [
+
"./autobahn/twisted"
];
pythonImportsCheck = [ "autobahn" ];
+1 -1
pkgs/development/python-modules/automat/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
# escape infinite recursion with twisted
doCheck = false;
+5 -2
pkgs/development/python-modules/aws-sam-translator/default.nix
···
export AWS_DEFAULT_REGION=us-east-1
'';
-
pytestFlagsArray = [
+
enabledTestPaths = [
"tests"
-
''-m "not slow"''
+
];
+
+
disabledTestMarks = [
+
"slow"
];
disabledTests = [
+3 -4
pkgs/development/python-modules/ax-platform/default.nix
···
sqlalchemy
tabulate
];
-
pytestFlagsArray = [
-
# Hangs forever
-
"--deselect=ax/analysis/plotly/tests/test_top_surfaces.py::TestTopSurfacesAnalysis::test_online"
-
];
disabledTestPaths = [
"ax/benchmark"
···
"ax/service/tests/test_ax_client.py"
"ax/service/tests/test_scheduler.py"
"ax/service/tests/test_with_db_settings_base.py"
+
+
# Hangs forever
+
"ax/analysis/plotly/tests/test_top_surfaces.py::TestTopSurfacesAnalysis::test_online"
];
disabledTests =
+3 -3
pkgs/development/python-modules/beaker/default.nix
···
# Can not run memcached tests because it immediately tries to connect.
# Disable external tests because they need to connect to a live database.
-
pytestFlagsArray = [
-
"--ignore=tests/test_memcached.py"
-
"--ignore-glob='tests/test_managers/test_ext_*'"
+
disabledTestPaths = [
+
"tests/test_memcached.py"
+
"tests/test_managers/test_ext_*"
];
meta = {
+5 -1
pkgs/development/python-modules/beancount-plugin-utils/default.nix
···
regex
];
-
pytestFlagsArray = [ "--fixtures tests/" ];
+
pytestFlags = [ "--fixtures" ];
+
+
enabledTestPaths = [
+
"tests/"
+
];
pythonImportsCheck = [ "beancount" ];
+1 -1
pkgs/development/python-modules/boost-histogram/default.nix
···
pytest-benchmark
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
disabledTests = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
# Segfaults: boost_histogram/_internal/hist.py", line 799 in sum
+1 -1
pkgs/development/python-modules/bork/default.nix
···
nativeCheckInputs = [ pytestCheckHook ];
-
pytestFlagsArray = [ "-m 'not network'" ];
+
disabledTestMarks = [ "network" ];
disabledTests = [
# tries to call python -m bork
+4 -1
pkgs/development/python-modules/bytewax/default.nix
···
pytest-benchmark
] ++ lib.flatten (lib.attrValues optional-dependencies);
-
pytestFlagsArray = [
+
pytestFlags = [
"--benchmark-disable"
+
];
+
+
enabledTestPaths = [
"pytests"
];
+6 -2
pkgs/development/python-modules/canmatrix/default.nix
···
pytestCheckHook
] ++ lib.flatten (builtins.attrValues optional-dependencies);
-
pytestFlagsArray = [
+
pytestFlags = [
# long_envvar_name_imports requires stable key value pair ordering
-
"-s src/canmatrix"
+
"-s"
+
];
+
+
enabledTestPaths = [
+
"src/canmatrix"
"tests/"
];
+6 -3
pkgs/development/python-modules/cartopy/default.nix
···
export HOME=$TMPDIR
'';
-
pytestFlagsArray = [
+
pytestFlags = [
"--pyargs"
"cartopy"
-
"-m"
-
"'not network and not natural_earth'"
+
];
+
+
disabledTestMarks = [
+
"network"
+
"natural_earth"
];
disabledTests = [
+5 -2
pkgs/development/python-modules/curl-cffi/default.nix
···
rm -r curl_cffi
'';
-
pytestFlags = [
+
enabledTestPaths = [
"tests/unittest"
+
];
+
+
disabledTestPaths = [
# test accesses network
-
"--deselect tests/unittest/test_smoke.py::test_async"
+
"tests/unittest/test_smoke.py::test_async"
];
disabledTests = [
+6 -3
pkgs/development/python-modules/dask/default.nix
···
++ optional-dependencies.dataframe;
versionCheckProgramArg = "--version";
-
pytestFlagsArray = [
+
pytestFlags = [
# Rerun failed tests up to three times
-
"--reruns 3"
+
"--reruns=3"
+
];
+
+
disabledTestMarks = [
# Don't run tests that require network access
-
"-m 'not network'"
+
"network"
];
disabledTests = [
+6 -4
pkgs/development/python-modules/datasette/default.nix
···
trustme
];
+
pytestFlags = [
+
# datasette/app.py:14: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
+
"-Wignore::DeprecationWarning"
+
];
+
# takes 30-180 mins to run entire test suite, not worth the CPU resources, slows down reviews
# with pytest-xdist, it still takes around 10 mins with 32 cores
# just run the csv tests, as this should give some indictation of correctness
-
pytestFlagsArray = [
-
# datasette/app.py:14: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
-
"-W"
-
"ignore::DeprecationWarning"
+
enabledTestPaths = [
"tests/test_csv.py"
];
+5 -2
pkgs/development/python-modules/deltalake/default.nix
···
rm -rf deltalake
'';
-
pytestFlagsArray = [
+
pytestFlags = [
"--benchmark-disable"
-
"-m 'not integration'"
+
];
+
+
disabledTestMarks = [
+
"integration"
];
meta = with lib; {
+35 -33
pkgs/development/python-modules/devito/default.nix
···
scipy
];
-
pytestFlagsArray =
-
[
-
"-x"
-
# Tests marked as 'parallel' require mpi and fail in the sandbox:
-
# FileNotFoundError: [Errno 2] No such file or directory: 'mpiexec'
-
"-m 'not parallel'"
-
]
-
++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [
-
# assert np.all(f.data == check)
-
# assert Data(False)
-
"--deselect tests/test_data.py::TestDataReference::test_w_data"
-
-
# AssertionError: assert 'omp for schedule(dynamic,1)' == 'omp for coll...le(dynamic,1)'
-
"--deselect tests/test_dle.py::TestNestedParallelism::test_nested_cache_blocking_structure_subdims"
-
-
# codepy.CompileError: module compilation failed
-
# FAILED compiler invocation
-
"--deselect tests/test_dle.py::TestNodeParallelism::test_dynamic_nthreads"
-
-
# AssertionError: assert all(not i.pragmas for i in iters[2:])
-
"--deselect tests/test_dle.py::TestNodeParallelism::test_incr_perfect_sparse_outer"
-
]
-
++ lib.optionals stdenv.hostPlatform.isDarwin [
-
# IndexError: tuple index out of range
-
"--deselect tests/test_dle.py::TestNestedParallelism"
-
-
# codepy.CompileError: module compilation failed
-
"--deselect tests/test_autotuner.py::test_nested_nthreads"
+
pytestFlags = [
+
"-x"
+
];
-
# assert np.all(np.isclose(f0.data, check0))
-
# assert Data(false)
-
"--deselect tests/test_interpolation.py::TestSubDomainInterpolation::test_inject_subdomain"
-
];
+
disabledTestMarks = [
+
# Tests marked as 'parallel' require mpi and fail in the sandbox:
+
# FileNotFoundError: [Errno 2] No such file or directory: 'mpiexec'
+
"parallel"
+
];
disabledTests =
[
···
[
# Flaky: codepy.CompileError: module compilation failed
"tests/test_dse.py"
-
];
+
]
+
++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [
+
# assert np.all(f.data == check)
+
# assert Data(False)
+
"tests/test_data.py::TestDataReference::test_w_data"
+
+
# AssertionError: assert 'omp for schedule(dynamic,1)' == 'omp for coll...le(dynamic,1)'
+
"tests/test_dle.py::TestNestedParallelism::test_nested_cache_blocking_structure_subdims"
+
+
# codepy.CompileError: module compilation failed
+
# FAILED compiler invocation
+
"tests/test_dle.py::TestNodeParallelism::test_dynamic_nthreads"
+
+
# AssertionError: assert all(not i.pragmas for i in iters[2:])
+
"tests/test_dle.py::TestNodeParallelism::test_incr_perfect_sparse_outer"
+
]
+
++ lib.optionals stdenv.hostPlatform.isDarwin [
+
# IndexError: tuple index out of range
+
"tests/test_dle.py::TestNestedParallelism"
+
+
# codepy.CompileError: module compilation failed
+
"tests/test_autotuner.py::test_nested_nthreads"
+
+
# assert np.all(np.isclose(f0.data, check0))
+
# assert Data(false)
+
"tests/test_interpolation.py::TestSubDomainInterpolation::test_inject_subdomain"
+
];
pythonImportsCheck = [ "devito" ];
+2 -2
pkgs/development/python-modules/diceware/default.nix
···
nativeCheckInputs = [ pytestCheckHook ];
-
pytestFlagsArray = [
+
disabledTestMarks = [
# see https://github.com/ulif/diceware/commit/a7d844df76cd4b95a717f21ef5aa6167477b6733
-
"-m 'not packaging'"
+
"packaging"
];
pythonImportsCheck = [ "diceware" ];
+8 -6
pkgs/development/python-modules/diofant/default.nix
···
doCheck = false; # some tests get stuck easily
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
-
"-m 'not slow'"
-
];
-
nativeCheckInputs = [
hypothesis
pexpect
pytest-cov-stub
pytest-xdist
pytestCheckHook
+
];
+
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
+
];
+
+
disabledTestMarks = [
+
"slow"
];
disabledTests = [
+63 -63
pkgs/development/python-modules/dj-stripe/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [
-
"--deselect=tests/test_customer.py::TestCustomer::test_customer_sync_unsupported_source"
-
"--deselect=tests/test_customer.py::TestCustomer::test_upcoming_invoice_plan"
-
"--deselect=tests/test_customer.py::TestCustomerLegacy::test_upcoming_invoice"
-
"--deselect=tests/test_event_handlers.py::TestCustomerEvents::test_customer_default_source_deleted"
-
"--deselect=tests/test_event_handlers.py::TestCustomerEvents::test_customer_deleted"
-
"--deselect=tests/test_event_handlers.py::TestCustomerEvents::test_customer_source_double_delete"
-
"--deselect=tests/test_event_handlers.py::TestPlanEvents::test_plan_created"
-
"--deselect=tests/test_event_handlers.py::TestPlanEvents::test_plan_deleted"
-
"--deselect=tests/test_event_handlers.py::TestPlanEvents::test_plan_updated_request_object"
-
"--deselect=tests/test_event_handlers.py::TestTaxIdEvents::test_tax_id_created"
-
"--deselect=tests/test_event_handlers.py::TestTaxIdEvents::test_tax_id_deleted"
-
"--deselect=tests/test_event_handlers.py::TestTaxIdEvents::test_tax_id_updated"
-
"--deselect=tests/test_invoice.py::InvoiceTest::test_upcoming_invoice"
-
"--deselect=tests/test_invoice.py::InvoiceTest::test_upcoming_invoice_with_subscription"
-
"--deselect=tests/test_invoice.py::InvoiceTest::test_upcoming_invoice_with_subscription_plan"
-
"--deselect=tests/test_invoice.py::TestInvoiceDecimal::test_decimal_tax_percent"
-
"--deselect=tests/test_plan.py::PlanCreateTest::test_create_from_djstripe_product"
-
"--deselect=tests/test_plan.py::PlanCreateTest::test_create_from_product_id"
-
"--deselect=tests/test_plan.py::PlanCreateTest::test_create_from_stripe_product"
-
"--deselect=tests/test_plan.py::PlanCreateTest::test_create_with_metadata"
-
"--deselect=tests/test_price.py::PriceCreateTest::test_create_from_djstripe_product"
-
"--deselect=tests/test_price.py::PriceCreateTest::test_create_from_product_id"
-
"--deselect=tests/test_price.py::PriceCreateTest::test_create_from_stripe_product"
-
"--deselect=tests/test_price.py::PriceCreateTest::test_create_with_metadata"
-
"--deselect=tests/test_settings.py::TestSubscriberModelRetrievalMethod::test_bad_callback"
-
"--deselect=tests/test_settings.py::TestSubscriberModelRetrievalMethod::test_no_callback"
-
"--deselect=tests/test_settings.py::TestStripeApiVersion::test_global_stripe_api_version"
-
"--deselect=tests/test_subscription.py::TestSubscriptionDecimal::test_decimal_application_fee_percent"
-
"--deselect=tests/test_tax_id.py::TestTaxIdStr::test___str__"
-
"--deselect=tests/test_tax_id.py::TestTransfer::test__api_create"
-
"--deselect=tests/test_tax_id.py::TestTransfer::test__api_create_no_customer"
-
"--deselect=tests/test_tax_id.py::TestTransfer::test__api_create_no_id_kwarg"
-
"--deselect=tests/test_tax_id.py::TestTransfer::test_api_list"
-
"--deselect=tests/test_tax_id.py::TestTransfer::test_api_retrieve"
-
"--deselect=tests/test_tax_rates.py::TestTaxRateDecimal::test_decimal_tax_percent"
-
"--deselect=tests/test_transfer_reversal.py::TestTransfer::test_api_list"
-
"--deselect=tests/test_transfer_reversal.py::TestTransfer::test_api_retrieve"
-
"--deselect=tests/test_usage_record.py::TestUsageRecord::test___str__"
-
"--deselect=tests/test_usage_record.py::TestUsageRecord::test__api_create"
-
"--deselect=tests/test_usage_record_summary.py::TestUsageRecordSummary::test___str__"
-
"--deselect=tests/test_usage_record_summary.py::TestUsageRecordSummary::test_api_list"
-
"--deselect=tests/test_usage_record_summary.py::TestUsageRecordSummary::test_sync_from_stripe_data"
-
"--deselect=tests/test_views.py::TestConfirmCustomActionView::test__cancel_subscription_instances_stripe_invalid_request_error"
-
"--deselect=tests/test_views.py::TestConfirmCustomActionView::test__release_subscription_schedule_stripe_invalid_request_error"
-
"--deselect=tests/test_views.py::TestConfirmCustomActionView::test__cancel_subscription_schedule_stripe_invalid_request_error"
-
"--deselect=tests/test_webhooks.py::TestWebhookEventTrigger::test___str__"
-
"--deselect=tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_error"
-
"--deselect=tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_good_connect_account"
-
"--deselect=tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_good_platform_account"
-
"--deselect=tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_invalid_verify_signature_fail"
-
"--deselect=tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_no_signature"
-
"--deselect=tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_no_validation_pass"
-
"--deselect=tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_remote_addr_is_empty_string"
-
"--deselect=tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_remote_addr_is_none"
-
"--deselect=tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_reraise_exception"
-
"--deselect=tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_retrieve_event_fail"
-
"--deselect=tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_retrieve_event_pass"
-
"--deselect=tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_test_event"
-
"--deselect=tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_verify_signature_pass"
-
"--deselect=tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_with_custom_callback"
-
"--deselect=tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_with_transfer_event_duplicate"
-
"--deselect=tests/test_webhooks.py::TestGetRemoteIp::test_get_remote_ip_remote_addr_is_none"
+
disabledTestPaths = [
+
"tests/test_customer.py::TestCustomer::test_customer_sync_unsupported_source"
+
"tests/test_customer.py::TestCustomer::test_upcoming_invoice_plan"
+
"tests/test_customer.py::TestCustomerLegacy::test_upcoming_invoice"
+
"tests/test_event_handlers.py::TestCustomerEvents::test_customer_default_source_deleted"
+
"tests/test_event_handlers.py::TestCustomerEvents::test_customer_deleted"
+
"tests/test_event_handlers.py::TestCustomerEvents::test_customer_source_double_delete"
+
"tests/test_event_handlers.py::TestPlanEvents::test_plan_created"
+
"tests/test_event_handlers.py::TestPlanEvents::test_plan_deleted"
+
"tests/test_event_handlers.py::TestPlanEvents::test_plan_updated_request_object"
+
"tests/test_event_handlers.py::TestTaxIdEvents::test_tax_id_created"
+
"tests/test_event_handlers.py::TestTaxIdEvents::test_tax_id_deleted"
+
"tests/test_event_handlers.py::TestTaxIdEvents::test_tax_id_updated"
+
"tests/test_invoice.py::InvoiceTest::test_upcoming_invoice"
+
"tests/test_invoice.py::InvoiceTest::test_upcoming_invoice_with_subscription"
+
"tests/test_invoice.py::InvoiceTest::test_upcoming_invoice_with_subscription_plan"
+
"tests/test_invoice.py::TestInvoiceDecimal::test_decimal_tax_percent"
+
"tests/test_plan.py::PlanCreateTest::test_create_from_djstripe_product"
+
"tests/test_plan.py::PlanCreateTest::test_create_from_product_id"
+
"tests/test_plan.py::PlanCreateTest::test_create_from_stripe_product"
+
"tests/test_plan.py::PlanCreateTest::test_create_with_metadata"
+
"tests/test_price.py::PriceCreateTest::test_create_from_djstripe_product"
+
"tests/test_price.py::PriceCreateTest::test_create_from_product_id"
+
"tests/test_price.py::PriceCreateTest::test_create_from_stripe_product"
+
"tests/test_price.py::PriceCreateTest::test_create_with_metadata"
+
"tests/test_settings.py::TestSubscriberModelRetrievalMethod::test_bad_callback"
+
"tests/test_settings.py::TestSubscriberModelRetrievalMethod::test_no_callback"
+
"tests/test_settings.py::TestStripeApiVersion::test_global_stripe_api_version"
+
"tests/test_subscription.py::TestSubscriptionDecimal::test_decimal_application_fee_percent"
+
"tests/test_tax_id.py::TestTaxIdStr::test___str__"
+
"tests/test_tax_id.py::TestTransfer::test__api_create"
+
"tests/test_tax_id.py::TestTransfer::test__api_create_no_customer"
+
"tests/test_tax_id.py::TestTransfer::test__api_create_no_id_kwarg"
+
"tests/test_tax_id.py::TestTransfer::test_api_list"
+
"tests/test_tax_id.py::TestTransfer::test_api_retrieve"
+
"tests/test_tax_rates.py::TestTaxRateDecimal::test_decimal_tax_percent"
+
"tests/test_transfer_reversal.py::TestTransfer::test_api_list"
+
"tests/test_transfer_reversal.py::TestTransfer::test_api_retrieve"
+
"tests/test_usage_record.py::TestUsageRecord::test___str__"
+
"tests/test_usage_record.py::TestUsageRecord::test__api_create"
+
"tests/test_usage_record_summary.py::TestUsageRecordSummary::test___str__"
+
"tests/test_usage_record_summary.py::TestUsageRecordSummary::test_api_list"
+
"tests/test_usage_record_summary.py::TestUsageRecordSummary::test_sync_from_stripe_data"
+
"tests/test_views.py::TestConfirmCustomActionView::test__cancel_subscription_instances_stripe_invalid_request_error"
+
"tests/test_views.py::TestConfirmCustomActionView::test__release_subscription_schedule_stripe_invalid_request_error"
+
"tests/test_views.py::TestConfirmCustomActionView::test__cancel_subscription_schedule_stripe_invalid_request_error"
+
"tests/test_webhooks.py::TestWebhookEventTrigger::test___str__"
+
"tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_error"
+
"tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_good_connect_account"
+
"tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_good_platform_account"
+
"tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_invalid_verify_signature_fail"
+
"tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_no_signature"
+
"tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_no_validation_pass"
+
"tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_remote_addr_is_empty_string"
+
"tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_remote_addr_is_none"
+
"tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_reraise_exception"
+
"tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_retrieve_event_fail"
+
"tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_retrieve_event_pass"
+
"tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_test_event"
+
"tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_verify_signature_pass"
+
"tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_with_custom_callback"
+
"tests/test_webhooks.py::TestWebhookEventTrigger::test_webhook_with_transfer_event_duplicate"
+
"tests/test_webhooks.py::TestGetRemoteIp::test_get_remote_ip_remote_addr_is_none"
];
pythonImportsCheck = [ "djstripe" ];
+4 -1
pkgs/development/python-modules/django-crispy-forms/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [
+
pytestFlags = [
"--ds=crispy_forms.tests.test_settings"
+
];
+
+
enabledTestPaths = [
"crispy_forms/tests/"
];
+1 -1
pkgs/development/python-modules/django-q2/default.nix
···
"django_q/tests/test_commands.py"
];
-
pytestFlagsArray = [ "-vv" ];
+
pytestFlags = [ "-vv" ];
__darwinAllowLocalNetworking = true;
+2 -3
pkgs/development/python-modules/django-redis/default.nix
···
# https://github.com/jazzband/django-redis/issues/777
dontUsePytestXdist = true;
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
];
disabledTests = [
+3 -3
pkgs/development/python-modules/dotwiz/default.nix
···
pythonImportsCheck = [ "dotwiz" ];
-
pytestFlagsArray = [
-
"--ignore=benchmarks"
-
"--ignore-glob=*integration*"
+
disabledTestPaths = [
+
"benchmarks"
+
"integration*"
];
meta = with lib; {
+1 -1
pkgs/development/python-modules/dtw-python/default.nix
···
# We need to run tests on real built package: https://github.com/NixOS/nixpkgs/issues/255262
# tests/ are not included to output package, so we have to set path explicitly
preCheck = ''
-
appendToVar pytestFlagsArray "$src/tests"
+
appendToVar enabledTestPaths "$src/tests"
cd $out
'';
nativeCheckInputs = [ pytestCheckHook ];
+4 -5
pkgs/development/python-modules/duckdb-engine/default.nix
···
snapshottest
];
-
pytestFlagsArray = [
-
"-m"
-
"'not remote_data'"
-
];
-
disabledTestPaths = lib.optionals (pythonAtLeast "3.12") [
# requires snapshottest
"duckdb_engine/tests/test_datatypes.py"
+
];
+
+
disabledTestMarks = [
+
"remote_data"
];
disabledTests = [
+1 -1
pkgs/development/python-modules/f5-icontrol-rest/default.nix
···
# needs to be updated to newer pytest version and requires physical device
doCheck = false;
-
pytestFlags = [ "icontrol/test" ];
+
enabledTestPaths = [ "icontrol/test" ];
pythonImportsCheck = [ "icontrol" ];
+1 -1
pkgs/development/python-modules/faker/default.nix
···
];
# avoid tests which import random2, an abandoned library
-
pytestFlagsArray = [ "--ignore=tests/providers/test_ssn.py" ];
+
disabledTestPaths = [ "tests/providers/test_ssn.py" ];
pythonImportsCheck = [ "faker" ];
meta = with lib; {
+1 -1
pkgs/development/python-modules/fakeredis/default.nix
···
pythonImportsCheck = [ "fakeredis" ];
-
pytestFlagsArray = [ "-m 'not slow'" ];
+
disabledTestMarks = [ "slow" ];
preCheck = ''
redisTestPort=6390
+1 -1
pkgs/development/python-modules/fastcrc/default.nix
···
pytest-benchmark
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
# Python source files interfere with testing
preCheck = ''
+2 -2
pkgs/development/python-modules/fastjsonschema/default.nix
···
"test_compile_to_code_custom_format" # cannot import temporary module created during test
];
-
pytestFlagsArray = [
+
disabledTestPaths = [
# fastjsonschema.exceptions.JsonSchemaDefinitionException: Unknown format uuid/duration
-
"--deselect=tests/json_schema/test_draft2019.py::test"
+
"tests/json_schema/test_draft2019.py::test"
];
pythonImportsCheck = [ "fastjsonschema" ];
+2 -2
pkgs/development/python-modules/fiona/default.nix
···
rm -r fiona # prevent importing local fiona
'';
-
pytestFlagsArray = [
+
disabledTestMarks = [
# Tests with gdal marker do not test the functionality of Fiona,
# but they are used to check GDAL driver capabilities.
-
"-m 'not gdal'"
+
"gdal"
];
disabledTests = [
+1 -1
pkgs/development/python-modules/firedrake-fiat/default.nix
···
nativeCheckInputs = [ pytestCheckHook ];
-
pytestFlagsArray = [
+
pytestFlags = [
"--skip-download"
];
+4 -1
pkgs/development/python-modules/flask-dramatiq/default.nix
···
python3 ./example.py db upgrade
'';
-
pytestFlagsArray = [
+
pytestFlags = [
"-x"
+
];
+
+
disabledTestPaths = [
"tests/func/"
"tests/unit"
];
+8 -6
pkgs/development/python-modules/flask-restx/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray =
+
pytestFlags = [
+
"--benchmark-disable"
+
];
+
disabledTestPaths =
[
-
"--benchmark-disable"
-
"--deselect=tests/test_inputs.py::URLTest::test_check"
-
"--deselect=tests/test_inputs.py::EmailTest::test_valid_value_check"
-
"--deselect=tests/test_logging.py::LoggingTest::test_override_app_level"
+
"tests/test_inputs.py::URLTest::test_check"
+
"tests/test_inputs.py::EmailTest::test_valid_value_check"
+
"tests/test_logging.py::LoggingTest::test_override_app_level"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
-
"--deselect=tests/test_inputs.py::EmailTest::test_invalid_values_check"
+
"tests/test_inputs.py::EmailTest::test_invalid_values_check"
];
disabledTests = [
+1 -1
pkgs/development/python-modules/flask-unsign/default.nix
···
pythonImportsCheck = [ "flask_unsign" ];
-
pytestFlagsArray = [ "tests/flask_unsign.py" ];
+
enabledTestPaths = [ "tests/flask_unsign.py" ];
meta = {
description = "Command line tool to fetch, decode, brute-force and craft session cookies of Flask applications";
+2 -3
pkgs/development/python-modules/flax/default.nix
···
tensorflow
];
-
pytestFlagsArray = [
-
"-W"
+
pytestFlags = [
# DeprecationWarning: Triggering of __jax_array__() during abstractification is deprecated.
# To avoid this error, either explicitly convert your object using jax.numpy.array(), or register your object as a pytree.
-
"ignore::DeprecationWarning"
+
"-Wignore::DeprecationWarning"
];
disabledTestPaths = [
+2 -2
pkgs/development/python-modules/geodatasets/default.nix
···
export HOME=$TMPDIR
'';
-
pytestFlagsArray = [
+
disabledTestMarks = [
# disable tests which require network access
-
"-m 'not request'"
+
"request"
];
pythonImportsCheck = [ "geodatasets" ];
+1 -1
pkgs/development/python-modules/getmac/default.nix
···
"test_initialize_method_cache_valid_types"
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
pythonImportsCheck = [ "getmac" ];
+1 -1
pkgs/development/python-modules/geventhttpclient/default.nix
···
__darwinAllowLocalNetworking = true;
-
pytestFlagsArray = [ "-m 'not network'" ];
+
disabledTestMarks = [ "network" ];
pythonImportsCheck = [ "geventhttpclient" ];
+1 -1
pkgs/development/python-modules/gilknocker/default.nix
···
pytest-rerunfailures
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
meta = {
description = "Knock on the Python GIL, determine how busy it is";
+3 -5
pkgs/development/python-modules/google-auth/default.nix
···
"system_tests/"
# Requires a running aiohttp event loop
"tests_async/"
+
+
# cryptography 44 compat issue
+
"tests/transport/test__mtls_helper.py::TestDecryptPrivateKey::test_success"
];
pythonImportsCheck = [
"google.auth"
"google.oauth2"
-
];
-
-
pytestFlagsArray = [
-
# cryptography 44 compat issue
-
"--deselect=tests/transport/test__mtls_helper.py::TestDecryptPrivateKey::test_success"
];
__darwinAllowLocalNetworking = true;
+6 -7
pkgs/development/python-modules/gpuctypes/default.nix
···
++ lib.optionals (!cudaSupport) [ "test/test_cuda.py" ];
# Require GPU access to run (not available in the sandbox)
-
pytestFlagsArray =
+
disabledTests =
lib.optionals (!testCudaRuntime) [
-
"-k"
-
"'not TestCUDADevice'"
+
"TestCUDADevice"
]
++ lib.optionals (!testRocmRuntime) [
-
"-k"
-
"'not TestHIPDevice'"
-
]
-
++ lib.optionals (testCudaRuntime || testOpenclRuntime || testRocmRuntime) [ "-v" ];
+
"TestHIPDevice"
+
];
+
+
pytestFlags = lib.optionals (testCudaRuntime || testOpenclRuntime || testRocmRuntime) [ "-v" ];
# Running these tests requires special configuration on the builder.
# e.g. https://github.com/NixOS/nixpkgs/pull/256230 implements a nix
+5 -2
pkgs/development/python-modules/gql/default.nix
···
export PATH=$out/bin:$PATH
'';
-
pytestFlagsArray = [
+
pytestFlags = [
"--asyncio-mode=auto"
-
"-m 'not online'"
+
];
+
+
disabledTestMarks = [
+
"online"
];
disabledTests = [
+9 -3
pkgs/development/python-modules/gradio/client.nix
···
cat ${./conftest-skip-network-errors.py} >> test/conftest.py
'';
-
pytestFlagsArray = [
+
pytestFlags = [
+
#"-x" "-Wignore" # uncomment for debugging help
+
];
+
+
enabledTestPaths = [
"test/"
-
"-m 'not flaky'"
-
#"-x" "-W" "ignore" # uncomment for debugging help
+
];
+
+
disabledTestMarks = [
+
"flaky"
];
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
+6 -3
pkgs/development/python-modules/gradio/default.nix
···
"test/test_docker/test_reverse_proxy_root_path/test_reverse_proxy_root_path.py"
];
-
pytestFlagsArray = [
+
disabledTestMarks = [
+
"flaky"
+
];
+
+
pytestFlags = [
"-x" # abort on first failure
-
"-m 'not flaky'"
-
#"-W" "ignore" # uncomment for debugging help
+
#"-Wignore" # uncomment for debugging help
];
# check the binary works outside the build env
+1 -1
pkgs/development/python-modules/graphql-core/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
pythonImportsCheck = [ "graphql" ];
+13 -8
pkgs/development/python-modules/graspologic/default.nix
···
pytestCheckHook
testfixtures
];
-
pytestFlagsArray = [
+
+
enabledTestPaths = [
"tests"
-
"--ignore=docs"
-
"--ignore=tests/test_sklearn.py"
];
+
disabledTests = [ "gridplot_outputs" ];
-
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
-
# SIGABRT
-
"tests/test_plot.py"
-
"tests/test_plot_matrix.py"
-
];
+
disabledTestPaths =
+
[
+
"docs"
+
"tests/test_sklearn.py"
+
]
+
++ lib.optionals stdenv.hostPlatform.isDarwin [
+
# SIGABRT
+
"tests/test_plot.py"
+
"tests/test_plot_matrix.py"
+
];
meta = with lib; {
description = "Package for graph statistical algorithms";
+6 -1
pkgs/development/python-modules/great-expectations/default.nix
···
"tests/render"
];
+
disabledTestMarks = [
+
"postgresql"
+
"snowflake"
+
"spark"
+
];
+
disabledTests = [
# tries to access network:
"test_checkpoint_run_with_data_docs_and_slack_actions_emit_page_links"
···
];
pythonImportsCheck = [ "great_expectations" ];
-
pytestFlagsArray = [ "-m 'not spark and not postgresql and not snowflake'" ];
meta = {
broken = true; # 408 tests fail
+16 -17
pkgs/development/python-modules/gremlinpython/default.nix
···
}:
buildPythonPackage rec {
+
__structuredAttrs = true;
+
pname = "gremlinpython";
version = "3.7.3";
format = "setuptools";
···
"tests/process/test_dsl.py"
"tests/structure/io/test_functionalityio.py"
];
-
pytestFlagsArray =
-
let
-
fullDisabled = builtins.concatStringsSep " or " [
-
"test_transaction_commit"
-
"test_transaction_rollback"
-
"test_transaction_no_begin"
-
"test_multi_commit_transaction"
-
"test_multi_rollback_transaction"
-
"test_multi_commit_and_rollback"
-
"test_transaction_close_tx"
-
"test_transaction_close_tx_from_parent"
-
];
-
in
-
[
-
# disabledTests doesn't quite allow us to be precise enough for this
-
"-k 'not ((TestFunctionalGraphSONIO and (test_timestamp or test_datetime or test_uuid)) or ${fullDisabled})'"
-
];
+
+
disabledTests = [
+
"TestFunctionalGraphSONIO and test_timestamp"
+
"TestFunctionalGraphSONIO and test_datetime"
+
"TestFunctionalGraphSONIO and test_uuid"
+
"test_transaction_commit"
+
"test_transaction_rollback"
+
"test_transaction_no_begin"
+
"test_multi_commit_transaction"
+
"test_multi_rollback_transaction"
+
"test_multi_commit_and_rollback"
+
"test_transaction_close_tx"
+
"test_transaction_close_tx_from_parent"
+
];
meta = with lib; {
description = "Gremlin-Python implements Gremlin, the graph traversal language of Apache TinkerPop, within the Python language";
+2 -3
pkgs/development/python-modules/holoviews/default.nix
···
flaky
];
-
pytestFlagsArray = [
-
"-W"
-
"ignore::FutureWarning"
+
pytestFlags = [
+
"-Wignore::FutureWarning"
];
disabledTests = [
+1 -1
pkgs/development/python-modules/homf/default.nix
···
# There are currently no checks which do not require network access, which breaks the check hook somehow?
# nativeCheckInputs = [ pytestCheckHook ];
-
# pytestFlagsArray = [ "-m 'not network'" ];
+
# disabledTestMarks = [ "network" ];
nativeBuildInputs = [ versionCheckHook ];
+1 -1
pkgs/development/python-modules/httplib2/default.nix
···
"test_connection_close"
];
-
pytestFlagsArray = [ "--ignore python2" ];
+
disabledTestPaths = [ "python2" ];
pythonImportsCheck = [ "httplib2" ];
+3 -3
pkgs/development/python-modules/ibis-framework/default.nix
···
writableTmpDirAsHomeHook
] ++ lib.concatMap (name: optional-dependencies.${name}) testBackends;
-
pytestFlagsArray = [
+
pytestFlags = [
"--benchmark-disable"
-
"-m"
-
"'${lib.concatStringsSep " or " testBackends} or core'"
];
+
+
enabledTestMarks = testBackends ++ [ "core" ];
disabledTests = [
# tries to download duckdb extensions
+1 -1
pkgs/development/python-modules/ical/default.nix
···
syrupy
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
pythonImportsCheck = [ "ical" ];
+14 -11
pkgs/development/python-modules/ignite/default.nix
···
# runs successfully in 3.9, however, async isn't correctly closed so it will fail after test suite.
doCheck = pythonOlder "3.9";
+
enabledTestPaths = [
+
"tests/"
+
];
+
# Some packages are not in NixPkgs; other tests try to build distributed
# models, which doesn't work in the sandbox.
# avoid tests which need special packages
-
pytestFlagsArray = [
-
"--ignore=tests/ignite/contrib/handlers/test_clearml_logger.py"
-
"--ignore=tests/ignite/contrib/handlers/test_lr_finder.py"
-
"--ignore=tests/ignite/contrib/handlers/test_trains_logger.py"
-
"--ignore=tests/ignite/metrics/nlp/test_bleu.py"
-
"--ignore=tests/ignite/metrics/nlp/test_rouge.py"
-
"--ignore=tests/ignite/metrics/gan" # requires pytorch_fid; tries to download model to $HOME
-
"--ignore=tests/ignite/metrics/test_dill.py"
-
"--ignore=tests/ignite/metrics/test_psnr.py"
-
"--ignore=tests/ignite/metrics/test_ssim.py"
-
"tests/"
+
disabledTestPaths = [
+
"tests/ignite/contrib/handlers/test_clearml_logger.py"
+
"tests/ignite/contrib/handlers/test_lr_finder.py"
+
"tests/ignite/contrib/handlers/test_trains_logger.py"
+
"tests/ignite/metrics/nlp/test_bleu.py"
+
"tests/ignite/metrics/nlp/test_rouge.py"
+
"tests/ignite/metrics/gan" # requires pytorch_fid; tries to download model to $HOME
+
"tests/ignite/metrics/test_dill.py"
+
"tests/ignite/metrics/test_psnr.py"
+
"tests/ignite/metrics/test_ssim.py"
];
# disable tests which need specific packages
+1 -1
pkgs/development/python-modules/imageio/default.nix
···
++ fsspec.optional-dependencies.github
++ lib.flatten (builtins.attrValues optional-dependencies);
-
pytestFlagsArray = [ "-m 'not needs_internet'" ];
+
disabledTestMarks = [ "needs_internet" ];
preCheck = ''
export IMAGEIO_USERDIR=$(mktemp -d)
+4 -4
pkgs/development/python-modules/isort/default.nix
···
export PATH=$PATH:$out/bin
'';
-
pytestFlagsArray = [
-
"--ignore=tests/benchmark/" # requires pytest-benchmark
-
"--ignore=tests/integration/" # pulls in 10 other packages
-
"--ignore=tests/unit/profiles/test_black.py" # causes infinite recursion to include black
+
disabledTestPaths = [
+
"tests/benchmark/" # requires pytest-benchmark
+
"tests/integration/" # pulls in 10 other packages
+
"tests/unit/profiles/test_black.py" # causes infinite recursion to include black
];
disabledTests = [
+16 -13
pkgs/development/python-modules/jax/default.nix
···
# high parallelism will result in the tests getting stuck
dontUsePytestXdist = true;
+
pytestFlags = [
+
"--numprocesses=4"
+
"-Wignore::DeprecationWarning"
+
];
+
# NOTE: Don't run the tests in the experimental directory as they require flax
# which creates a circular dependency. See https://discourse.nixos.org/t/how-to-nix-ify-python-packages-with-circular-dependencies/14648/2.
# Not a big deal, this is how the JAX docs suggest running the test suite
# anyhow.
-
pytestFlagsArray =
-
[
-
"--numprocesses=4"
-
"-W ignore::DeprecationWarning"
-
"tests/"
-
]
-
++ lib.optionals stdenv.hostPlatform.isDarwin [
-
# SystemError: nanobind::detail::nb_func_error_except(): exception could not be translated!
-
# reported at: https://github.com/jax-ml/jax/issues/26106
-
"--deselect tests/pjit_test.py::PJitErrorTest::testAxisResourcesMismatch"
-
"--deselect tests/shape_poly_test.py::ShapePolyTest"
-
"--deselect tests/tree_util_test.py::TreeTest"
-
];
+
enabledTestPaths = [
+
"tests/"
+
];
+
+
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
+
# SystemError: nanobind::detail::nb_func_error_except(): exception could not be translated!
+
# reported at: https://github.com/jax-ml/jax/issues/26106
+
"tests/pjit_test.py::PJitErrorTest::testAxisResourcesMismatch"
+
"tests/shape_poly_test.py::ShapePolyTest"
+
"tests/tree_util_test.py::TreeTest"
+
];
# Prevents `tests/export_back_compat_test.py::CompatTest::test_*` tests from failing on darwin with
# PermissionError: [Errno 13] Permission denied: '/tmp/back_compat_testdata/test_*.py'
+4 -1
pkgs/development/python-modules/jsonrpc-websocket/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [
+
pytestFlags = [
"--asyncio-mode=auto"
+
];
+
+
enabledTestPaths = [
"tests.py"
];
+7 -1
pkgs/development/python-modules/jsonstreams/default.nix
···
propagatedBuildInputs = [ six ];
nativeCheckInputs = [ pytestCheckHook ];
-
pytestFlagsArray = [ "tests --doctest-modules jsonstreams" ];
+
+
pytestFlags = [ "--doctest-modules" ];
+
+
enabledTestPaths = [
+
"tests"
+
"jsonstreams"
+
];
meta = with lib; {
broken = stdenv.hostPlatform.isDarwin;
+6 -4
pkgs/development/python-modules/jupyter-collaboration/default.nix
···
writableTmpDirAsHomeHook
];
-
pytestFlagsArray = [
+
pytestFlags = [
# pytest.PytestCacheWarning: could not create cache path /build/source/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/build/source/pytest-cache-files-plraagdr'
-
"-p"
-
"no:cacheprovider"
-
"$src/tests"
+
"-pno:cacheprovider"
];
+
+
preCheck = ''
+
appendToVar enabledTestPaths "$src/tests"
+
'';
__darwinAllowLocalNetworking = true;
+1 -1
pkgs/development/python-modules/kanidm/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "-m 'not network'" ];
+
disabledTestMarks = [ "network" ];
pythonImportsCheck = [ "kanidm" ];
+16 -18
pkgs/development/python-modules/kserve/default.nix
···
pythonImportsCheck = [ "kserve" ];
-
pytestFlagsArray =
+
disabledTestPaths =
[
+
# Looks for a config file at the root of the repository
+
"test/test_inference_service_client.py"
+
# AssertionError
-
"--deselect=test/test_server.py::TestTFHttpServerLoadAndUnLoad::test_unload"
+
"test/test_server.py::TestTFHttpServerLoadAndUnLoad::test_unload"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# RuntimeError: Failed to start GCS
-
"--deselect=test/test_dataplane.py::TestDataPlane::test_explain"
-
"--deselect=test/test_dataplane.py::TestDataPlane::test_infer"
-
"--deselect=test/test_dataplane.py::TestDataPlane::test_model_metadata"
-
"--deselect=test/test_dataplane.py::TestDataPlane::test_server_readiness"
-
"--deselect=test/test_server.py::TestRayServer::test_explain"
-
"--deselect=test/test_server.py::TestRayServer::test_health_handler"
-
"--deselect=test/test_server.py::TestRayServer::test_infer"
-
"--deselect=test/test_server.py::TestRayServer::test_list_handler"
-
"--deselect=test/test_server.py::TestRayServer::test_liveness_handler"
-
"--deselect=test/test_server.py::TestRayServer::test_predict"
+
"test/test_dataplane.py::TestDataPlane::test_explain"
+
"test/test_dataplane.py::TestDataPlane::test_infer"
+
"test/test_dataplane.py::TestDataPlane::test_model_metadata"
+
"test/test_dataplane.py::TestDataPlane::test_server_readiness"
+
"test/test_server.py::TestRayServer::test_explain"
+
"test/test_server.py::TestRayServer::test_health_handler"
+
"test/test_server.py::TestRayServer::test_infer"
+
"test/test_server.py::TestRayServer::test_list_handler"
+
"test/test_server.py::TestRayServer::test_liveness_handler"
+
"test/test_server.py::TestRayServer::test_predict"
# Permission Error
-
"--deselect=test/test_server.py::TestMutiProcessServer::test_rest_server_multiprocess"
+
"test/test_server.py::TestMutiProcessServer::test_rest_server_multiprocess"
];
-
-
disabledTestPaths = [
-
# Looks for a config file at the root of the repository
-
"test/test_inference_service_client.py"
-
];
disabledTests =
[
+1 -1
pkgs/development/python-modules/labgrid/default.nix
···
"test_timing"
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
meta = with lib; {
description = "Embedded control & testing library";
+1 -1
pkgs/development/python-modules/lancedb/default.nix
···
cd python/python/tests
'';
-
pytestFlagsArray = [ "-m 'not slow'" ];
+
disabledTestMarks = [ "slow" ];
disabledTests = [
# require tantivy which is not packaged in nixpkgs
+1 -1
pkgs/development/python-modules/langchain-deepseek/default.nix
···
syrupy
];
-
pytestFlagsArray = [ "tests/unit_tests" ];
+
enabledTestPaths = [ "tests/unit_tests" ];
pythonImportsCheck = [ "langchain_deepseek" ];
+1 -1
pkgs/development/python-modules/langchain-fireworks/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "tests/unit_tests" ];
+
enabledTestPaths = [ "tests/unit_tests" ];
pythonImportsCheck = [ "langchain_fireworks" ];
+1 -1
pkgs/development/python-modules/langchain-mistralai/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "tests/unit_tests" ];
+
enabledTestPaths = [ "tests/unit_tests" ];
pythonImportsCheck = [ "langchain_mistralai" ];
+1 -1
pkgs/development/python-modules/langchain-perplexity/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "tests/unit_tests" ];
+
enabledTestPaths = [ "tests/unit_tests" ];
pythonImportsCheck = [ "langchain_perplexity" ];
+1 -1
pkgs/development/python-modules/langchain-xai/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "tests/unit_tests" ];
+
enabledTestPaths = [ "tests/unit_tests" ];
pythonImportsCheck = [ "langchain_xai" ];
+5 -2
pkgs/development/python-modules/langchain/default.nix
···
toml
];
-
pytestFlagsArray = [
+
pytestFlags = [
+
"--only-core"
+
];
+
+
enabledTestPaths = [
# integration_tests require network access, database access and require `OPENAI_API_KEY`, etc.
"tests/unit_tests"
-
"--only-core"
];
disabledTests = [
+4 -2
pkgs/development/python-modules/lastversion/default.nix
···
nativeCheckInputs = [ pytestCheckHook ];
-
pytestFlags = [
+
enabledTestPaths = [
"tests/test_cli.py"
-
"-k"
+
];
+
+
enabledTests = [
"test_cli_format"
];
+1 -1
pkgs/development/python-modules/ldap3/default.nix
···
nativeCheckInputs = [ unittestCheckHook ];
-
pytestFlagsArray = [ "test/" ];
+
enabledTestPaths = [ "test/" ];
preCheck = ''
export SERVER=NONE
+1 -1
pkgs/development/python-modules/libipld/default.nix
···
pytest-xdist
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
disabledTests = [
# touches network
+1 -1
pkgs/development/python-modules/limits/default.nix
···
pytestCheckHook
] ++ lib.flatten (lib.attrValues optional-dependencies);
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
disabledTests = [
"test_moving_window_memcached"
+4 -1
pkgs/development/python-modules/llm/default.nix
···
cp ${llm-echo.src}/llm_echo.py llm_echo.py
'';
-
pytestFlagsArray = [
+
pytestFlags = [
"-svv"
+
];
+
+
enabledTestPaths = [
"tests/"
];
+1 -1
pkgs/development/python-modules/magic-wormhole/default.nix
···
++ optional-dependencies.dilation
++ lib.optionals stdenv.hostPlatform.isDarwin [ unixtools.locale ];
-
pytestFlagsArray = [ "src/wormhole/test" ];
+
enabledTestPaths = [ "src/wormhole/test" ];
__darwinAllowLocalNetworking = true;
+2 -2
pkgs/development/python-modules/manifest-ml/default.nix
···
export HOME=$TMPDIR
'';
-
pytestFlagsArray = [
+
disabledTestPaths = [
# this file tries importing `deepspeed`, which is not yet packaged in nixpkgs
-
"--ignore=tests/test_huggingface_api.py"
+
"tests/test_huggingface_api.py"
];
disabledTests = [
+5 -2
pkgs/development/python-modules/ml-collections/default.nix
···
pytest-xdist
];
-
pytestFlagsArray = [
+
enabledTestPaths = [
"ml_collections/"
-
"--ignore=ml_collections/config_dict/examples/examples_test.py" # From github workflows
+
];
+
+
disabledTestPaths = [
+
"ml_collections/config_dict/examples/examples_test.py" # From github workflows
];
pythonImportsCheck = [ "ml_collections" ];
+1 -1
pkgs/development/python-modules/mlx/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [
+
enabledTestPaths = [
"python/tests/"
];
+4 -4
pkgs/development/python-modules/mmengine/default.nix
···
export MKL_NUM_THREADS=1
'';
-
pytestFlagsArray = [
+
disabledTestPaths = [
# Require unpackaged aim
-
"--deselect tests/test_visualizer/test_vis_backend.py::TestAimVisBackend"
+
"tests/test_visualizer/test_vis_backend.py::TestAimVisBackend"
# Cannot find SSL certificate
# _pygit2.GitError: OpenSSL error: failed to load certificates: error:00000000:lib(0)::reason(0)
-
"--deselect tests/test_visualizer/test_vis_backend.py::TestDVCLiveVisBackend"
+
"tests/test_visualizer/test_vis_backend.py::TestDVCLiveVisBackend"
# AttributeError: type object 'MagicMock' has no attribute ...
-
"--deselect tests/test_fileio/test_backends/test_petrel_backend.py::TestPetrelBackend"
+
"tests/test_fileio/test_backends/test_petrel_backend.py::TestPetrelBackend"
];
disabledTests = [
+7 -2
pkgs/development/python-modules/mne/default.nix
···
"test_simulate_raw_bem"
];
-
pytestFlagsArray = [
-
"-m 'not (slowtest or ultraslowtest or pgtest)'"
+
pytestFlag = [
# removes 700k lines form pytest log, remove this when scipy is at v1.17.0
"--disable-warnings"
+
];
+
+
disabledTestMarks = [
+
"slowtest"
+
"ultraslowtest"
+
"pgtest"
];
pythonImportsCheck = [ "mne" ];
+7 -6
pkgs/development/python-modules/moto/default.nix
···
env.AWS_ACCESS_KEY_ID = "ak";
env.AWS_SECRET_ACCESS_KEY = "sk";
-
pytestFlagsArray = [
-
"-m"
-
"'not network and not requires_docker'"
+
pytestFlags = [
+
# Matches upstream configuration, presumably due to expensive setup/teardown.
+
"--dist=loadscope"
+
];
-
# Matches upstream configuration, presumably due to expensive setup/teardown.
-
"--dist"
-
"loadscope"
+
disabledTestMarks = [
+
"network"
+
"requires_docker"
];
disabledTests = [
+2 -3
pkgs/development/python-modules/ndindex/default.nix
···
sympy
] ++ optional-dependencies.arrays;
-
pytestFlagsArray = [
-
"--hypothesis-profile"
-
"ci"
+
pytestFlags = [
+
"--hypothesis-profile=ci"
];
meta = with lib; {
+2 -5
pkgs/development/python-modules/nestedtext/default.nix
···
# enabled when building passthru.tests.
doCheck = false;
-
pytestFlagsArray = [
+
disabledTestPaths = [
# Avoids an ImportMismatchError.
-
"--ignore=build"
-
];
-
-
disabledTestPaths = [
+
"build"
# Examples are prefixed with test_
"examples/"
];
+1 -1
pkgs/development/python-modules/numba/default.nix
···
cd $out
'';
-
pytestFlagsArray = lib.optionals (!doFullCheck) [
+
enabledTestPaths = lib.optionals (!doFullCheck) [
# These are the most basic tests. Running all tests is too expensive, and
# some of them fail (also differently on different platforms), so it will
# be too hard to maintain such a `disabledTests` list.
+1 -1
pkgs/development/python-modules/numbagg/default.nix
···
pytest-benchmark
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
meta = {
description = "Fast N-dimensional aggregation functions with Numba";
+2 -3
pkgs/development/python-modules/numpy/1.nix
···
'';
# https://github.com/numpy/numpy/blob/a277f6210739c11028f281b8495faf7da298dbef/numpy/_pytesttester.py#L180
-
pytestFlagsArray = [
-
"-m"
-
"not\\ slow" # fast test suite
+
disabledTestMarks = [
+
"slow" # fast test suite
];
# https://github.com/numpy/numpy/issues/24548
+2 -3
pkgs/development/python-modules/numpy/2.nix
···
'';
# https://github.com/numpy/numpy/blob/a277f6210739c11028f281b8495faf7da298dbef/numpy/_pytesttester.py#L180
-
pytestFlagsArray = [
-
"-m"
-
"not\\ slow" # fast test suite
+
disabledTestMarks = [
+
"slow" # fast test suite
];
disabledTests =
+1 -1
pkgs/development/python-modules/nutpie/default.nix
···
writableTmpDirAsHomeHook
];
-
pytestFlagsArray = [
+
pytestFlags = [
"-v"
];
+1 -1
pkgs/development/python-modules/nvchecker/default.nix
···
pythonImportsCheck = [ "nvchecker" ];
-
pytestFlagsArray = [ "-m 'not needs_net'" ];
+
disabledTestMarks = [ "needs_net" ];
optional-dependencies = {
# vercmp = [ pyalpm ];
+1 -1
pkgs/development/python-modules/odc-geo/default.nix
···
pytestCheckHook
] ++ optional-dependencies.all;
-
pytestFlagsArray = [ "-m 'not network'" ];
+
disabledTestMarks = [ "network" ];
disabledTests = [
# AttributeError (fixes: https://github.com/opendatacube/odc-geo/pull/202)
+1 -1
pkgs/development/python-modules/odc-stac/default.nix
···
pytestCheckHook
] ++ optional-dependencies.botocore;
-
pytestFlagsArray = [ "-m 'not network'" ];
+
disabledTestMarks = [ "network" ];
disabledTests = [
# pystac href error (possible related to network)
+17 -17
pkgs/development/python-modules/ome-zarr/default.nix
···
"test_s3_info"
];
-
pytestFlagsArray = [
+
disabledTestPaths = [
# Fail with RecursionError
# https://github.com/ome/ome-zarr-py/issues/352
-
"--deselect=tests/test_cli.py::TestCli::test_astronaut_download"
-
"--deselect=tests/test_cli.py::TestCli::test_astronaut_info"
-
"--deselect=tests/test_cli.py::TestCli::test_coins_info"
-
"--deselect=tests/test_emitter.py::test_close"
-
"--deselect=tests/test_emitter.py::test_create_wrong_encoding"
-
"--deselect=tests/test_node.py::TestNode::test_image"
-
"--deselect=tests/test_node.py::TestNode::test_label"
-
"--deselect=tests/test_node.py::TestNode::test_labels"
-
"--deselect=tests/test_ome_zarr.py::TestOmeZarr::test_download"
-
"--deselect=tests/test_ome_zarr.py::TestOmeZarr::test_info"
-
"--deselect=tests/test_reader.py::TestReader::test_image"
-
"--deselect=tests/test_reader.py::TestReader::test_label"
-
"--deselect=tests/test_reader.py::TestReader::test_labels"
-
"--deselect=tests/test_starting_points.py::TestStartingPoints::test_label"
-
"--deselect=tests/test_starting_points.py::TestStartingPoints::test_labels"
-
"--deselect=tests/test_starting_points.py::TestStartingPoints::test_top_level"
+
"tests/test_cli.py::TestCli::test_astronaut_download"
+
"tests/test_cli.py::TestCli::test_astronaut_info"
+
"tests/test_cli.py::TestCli::test_coins_info"
+
"tests/test_emitter.py::test_close"
+
"tests/test_emitter.py::test_create_wrong_encoding"
+
"tests/test_node.py::TestNode::test_image"
+
"tests/test_node.py::TestNode::test_label"
+
"tests/test_node.py::TestNode::test_labels"
+
"tests/test_ome_zarr.py::TestOmeZarr::test_download"
+
"tests/test_ome_zarr.py::TestOmeZarr::test_info"
+
"tests/test_reader.py::TestReader::test_image"
+
"tests/test_reader.py::TestReader::test_label"
+
"tests/test_reader.py::TestReader::test_labels"
+
"tests/test_starting_points.py::TestStartingPoints::test_label"
+
"tests/test_starting_points.py::TestStartingPoints::test_labels"
+
"tests/test_starting_points.py::TestStartingPoints::test_top_level"
];
pythonImportsCheck = [
+2 -3
pkgs/development/python-modules/omegaconf/default.nix
···
pythonImportsCheck = [ "omegaconf" ];
-
pytestFlagsArray = [
-
"-W"
-
"ignore::DeprecationWarning"
+
pytestFlags = [
+
"-Wignore::DeprecationWarning"
];
disabledTests =
+1 -1
pkgs/development/python-modules/opentelemetry-propagator-aws-xray/default.nix
···
requests
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
pythonImportsCheck = [ "opentelemetry.propagators.aws" ];
+5 -2
pkgs/development/python-modules/opuslib/default.nix
···
nativeCheckInputs = [ pytestCheckHook ];
-
pytestFlagsArray = [
-
"tests/{decoder,encoder,hl_decoder,hl_encoder}.py"
+
enabledTestPaths = [
+
"tests/decoder.py"
+
"tests/encoder.py"
+
"tests/hl_decoder.py"
+
"tests/hl_encoder.py"
];
meta = with lib; {
+2 -2
pkgs/development/python-modules/owslib/default.nix
···
export PY_IGNORE_IMPORTMISMATCH=1
'';
-
pytestFlagsArray = [
+
disabledTestMarks = [
# Disable tests which require network access
-
"-m 'not online'"
+
"online"
];
disabledTestPaths = [
+11 -6
pkgs/development/python-modules/pandas/default.nix
···
__darwinAllowLocalNetworking = true;
-
pytestFlagsArray = [
-
# https://github.com/pandas-dev/pandas/blob/main/test_fast.sh
-
"-m"
-
"'not single_cpu and not slow and not network and not db and not slow_arm'"
+
pytestFlags = [
# https://github.com/pandas-dev/pandas/issues/54907
"--no-strict-data-files"
-
"--numprocesses"
-
"4"
+
"--numprocesses=4"
+
];
+
+
disabledTestMarks = [
+
# https://github.com/pandas-dev/pandas/blob/main/test_fast.sh
+
"single_cpu"
+
"slow"
+
"network"
+
"db"
+
"slow_arm"
];
disabledTests =
+4 -6
pkgs/development/python-modules/pandera/default.nix
···
pyarrow
] ++ optional-dependencies.all;
-
pytestFlagsArray = [
-
# KeyError: 'dask'
-
"--deselect=tests/dask/test_dask.py::test_series_schema"
-
"--deselect=tests/dask/test_dask_accessor.py::test_dataframe_series_add_schema"
-
];
-
disabledTestPaths = [
"tests/fastapi/test_app.py" # tries to access network
"tests/pandas/test_docs_setting_column_widths.py" # tests doc generation, requires sphinx
"tests/modin" # requires modin, not in nixpkgs
"tests/mypy/test_pandas_static_type_checking.py" # some typing failures
"tests/pyspark" # requires spark
+
+
# KeyError: 'dask'
+
"tests/dask/test_dask.py::test_series_schema"
+
"tests/dask/test_dask_accessor.py::test_dataframe_series_add_schema"
];
disabledTests =
+6 -9
pkgs/development/python-modules/papermill/default.nix
···
pythonImportsCheck = [ "papermill" ];
-
# Using pytestFlagsArray to prevent disabling false positives
-
pytestFlagsArray = [
-
# AssertionError: 'error' != 'display_data'
-
"--deselect=papermill/tests/test_execute.py::TestBrokenNotebook2::test"
-
-
# AssertionError: '\x1b[31mSystemExit\x1b[39m\x1b[31m:\x1b[39m 1\n' != '\x1b[0;31mSystemExit\x1b[0m\x1b[0;31m:\x1b[0m 1\n'
-
"--deselect=papermill/tests/test_execute.py::TestOutputFormatting::test_output_formatting"
-
];
-
disabledTests =
[
# pytest 8 compat
···
disabledTestPaths = [
# ImportError: cannot import name 'mock_s3' from 'moto'
"papermill/tests/test_s3.py"
+
+
# AssertionError: 'error' != 'display_data'
+
"papermill/tests/test_execute.py::TestBrokenNotebook2::test"
+
+
# AssertionError: '\x1b[31mSystemExit\x1b[39m\x1b[31m:\x1b[39m 1\n' != '\x1b[0;31mSystemExit\x1b[0m\x1b[0;31m:\x1b[0m 1\n'
+
"papermill/tests/test_execute.py::TestOutputFormatting::test_output_formatting"
];
__darwinAllowLocalNetworking = true;
+4 -2
pkgs/development/python-modules/pdf2docx/default.nix
···
nativeCheckInputs = [ pytestCheckHook ];
-
pytestFlagsArray = [
+
pytestFlags = [
"-v"
-
"./test/test.py::TestConversion"
];
+
enabledTestPaths = [
+
"./test/test.py::TestConversion"
+
];
# Test fails due to "RuntimeError: cannot find builtin font with name 'Arial'":
disabledTests = [ "test_unnamed_fonts" ];
+2 -2
pkgs/development/python-modules/pdoc/default.nix
···
"test/test_snapshot.py"
];
-
pytestFlagsArray = [
-
''-m "not slow"'' # skip slow tests
+
disabledTestMarks = [
+
"slow" # skip slow tests
];
__darwinAllowLocalNetworking = true;
+3 -5
pkgs/development/python-modules/pillow/default.nix
···
numpy
] ++ lib.flatten (lib.attrValues optional-dependencies);
-
pytestFlagsArray = [
-
# Checks for very precise color values on what's basically white
-
"--deselect=Tests/test_file_avif.py::TestFileAvif::test_background_from_gif"
-
];
-
disabledTests =
[
# Code quality mismathch 9 vs 10
···
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
# Crashes the interpreter
"Tests/test_imagetk.py"
+
+
# Checks for very precise color values on what's basically white
+
"Tests/test_file_avif.py::TestFileAvif::test_background_from_gif"
];
passthru.tests = {
+5 -2
pkgs/development/python-modules/pipx/default.nix
···
export HOME=$(mktemp -d)
'';
-
pytestFlagsArray = [
-
"--ignore=tests/test_install_all_packages.py"
+
pytestFlags = [
# start local pypi server and use in tests
"--net-pypiserver"
+
];
+
+
disabledTestPaths = [
+
"tests/test_install_all_packages.py"
];
disabledTests = [
+3 -4
pkgs/development/python-modules/polars/default.nix
···
pytest-benchmark
];
-
pytestFlagsArray = [
+
pytestFlags = [
"--benchmark-disable"
-
"-n auto"
-
"--dist loadgroup"
-
''-m "slow or not slow"''
+
"-nauto"
+
"--dist=loadgroup"
];
disabledTests = [
"test_read_kuzu_graph_database" # kuzu
+4 -4
pkgs/development/python-modules/pomegranate/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [
+
disabledTestPaths = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [
# AssertionError: Arrays are not almost equal to 6 decimals
-
"--deselect=tests/distributions/test_normal_full.py::test_fit"
-
"--deselect=tests/distributions/test_normal_full.py::test_from_summaries"
-
"--deselect=tests/distributions/test_normal_full.py::test_serialization"
+
"=tests/distributions/test_normal_full.py::test_fit"
+
"=tests/distributions/test_normal_full.py::test_from_summaries"
+
"=tests/distributions/test_normal_full.py::test_serialization"
];
disabledTests = [
+8 -4
pkgs/development/python-modules/psycopg/default.nix
···
"tests/test_notify_async.py"
];
-
pytestFlagsArray = [
-
"-o cache_dir=.cache"
-
"-m"
-
"'not refcount and not timing and not flakey'"
+
pytestFlags = [
+
"-ocache_dir=.cache"
+
];
+
+
disabledTestMarks = [
+
"refcount"
+
"timing"
+
"flakey"
];
postCheck = ''
+1 -1
pkgs/development/python-modules/py7zr/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
pythonImportsCheck = [
"py7zr"
+1 -1
pkgs/development/python-modules/pyadjoint-ad/default.nix
···
nativeCheckInputs = [ pytestCheckHook ];
-
pytestFlagsArray = [
+
enabledTestPaths = [
"tests/pyadjoint"
];
+14 -11
pkgs/development/python-modules/pydal/default.nix
···
checkInputs = lib.optionals (pythonAtLeast "3.13") [ legacy-cgi ];
-
pytestFlagsArray = [
+
enabledTestPaths = [
"tests/*.py"
+
];
+
+
disabledTestPaths = [
# these tests already seem to be broken on the upstream
-
"--deselect=tests/nosql.py::TestFields::testRun"
-
"--deselect=tests/nosql.py::TestSelect::testGroupByAndDistinct"
-
"--deselect=tests/nosql.py::TestExpressions::testOps"
-
"--deselect=tests/nosql.py::TestExpressions::testRun"
-
"--deselect=tests/nosql.py::TestImportExportUuidFields::testRun"
-
"--deselect=tests/nosql.py::TestConnection::testRun"
-
"--deselect=tests/restapi.py::TestRestAPI::test_search"
-
"--deselect=tests/validation.py::TestValidateAndInsert::testRun"
-
"--deselect=tests/validation.py::TestValidateUpdateInsert::testRun"
-
"--deselect=tests/validators.py::TestValidators::test_IS_IN_DB"
+
"tests/nosql.py::TestFields::testRun"
+
"tests/nosql.py::TestSelect::testGroupByAndDistinct"
+
"tests/nosql.py::TestExpressions::testOps"
+
"tests/nosql.py::TestExpressions::testRun"
+
"tests/nosql.py::TestImportExportUuidFields::testRun"
+
"tests/nosql.py::TestConnection::testRun"
+
"tests/restapi.py::TestRestAPI::test_search"
+
"tests/validation.py::TestValidateAndInsert::testRun"
+
"tests/validation.py::TestValidateUpdateInsert::testRun"
+
"tests/validators.py::TestValidators::test_IS_IN_DB"
];
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
+1 -1
pkgs/development/python-modules/pygerber/default.nix
···
"test/gerberx3/test_language_server/tests.py"
];
-
pytestFlagsArray = [ "--override-ini required_plugins=''" ];
+
pytestFlags = [ "--override-ini=required_plugins=" ];
pythonImportsCheck = [ "pygerber" ];
+2 -3
pkgs/development/python-modules/pyiceberg/default.nix
···
thrift
] ++ moto.optional-dependencies.server;
-
pytestFlagsArray = [
-
"-W"
+
pytestFlags = [
# ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffe7c6f4220>
-
"ignore::pytest.PytestUnraisableExceptionWarning"
+
"-Wignore::pytest.PytestUnraisableExceptionWarning"
];
disabledTestPaths = [
+3 -3
pkgs/development/python-modules/pyicu/default.nix
···
six
];
-
pytestFlagsArray = [
+
disabledTestPaths = [
# AssertionError: '$' != 'US Dollar'
-
"--deselect=test/test_NumberFormatter.py::TestCurrencyUnit::testGetName"
+
"test/test_NumberFormatter.py::TestCurrencyUnit::testGetName"
# AssertionError: Lists differ: ['a', 'b', 'c', 'd'] != ['a', 'b', 'c', 'd', ...
-
"--deselect=test/test_UnicodeSet.py::TestUnicodeSet::testIterators"
+
"test/test_UnicodeSet.py::TestUnicodeSet::testIterators"
];
pythonImportsCheck = [ "icu" ];
+1 -1
pkgs/development/python-modules/pylit/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "test" ];
+
enabledTestPaths = [ "test" ];
meta = {
homepage = "https://codeberg.org/milde/pylit";
+3 -3
pkgs/development/python-modules/pymanopt/default.nix
···
torch
];
-
pytestFlagsArray = lib.optionals stdenv.hostPlatform.isDarwin [
+
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
# FloatingPointError: divide by zero encountered in det
-
"--deselect=tests/manifolds/test_positive_definite.py::TestMultiSpecialHermitianPositiveDefiniteManifold::test_retraction"
-
"--deselect=tests/manifolds/test_positive_definite.py::TestSingleSpecialHermitianPositiveDefiniteManifold::test_retraction"
+
"tests/manifolds/test_positive_definite.py::TestMultiSpecialHermitianPositiveDefiniteManifold::test_retraction"
+
"tests/manifolds/test_positive_definite.py::TestSingleSpecialHermitianPositiveDefiniteManifold::test_retraction"
];
meta = {
+3 -5
pkgs/development/python-modules/pymatgen/default.nix
···
pythonImportsCheck = [ "pymatgen" ];
-
pytestFlagsArray = [
-
# We have not packaged moyopy yet.
-
"--deselect=tests/analysis/test_prototypes.py::test_get_protostructure_label_from_moyopy"
-
];
-
nativeCheckInputs = [
addBinToPathHook
pytestCheckHook
···
];
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
+
# We have not packaged moyopy yet.
+
"tests/analysis/test_prototypes.py::test_get_protostructure_label_from_moyopy"
+
# Crash when running the pmg command
# Critical error: required built-in appearance SystemAppearance not found
"tests/cli/test_pmg_plot.py"
+1 -1
pkgs/development/python-modules/pymoo/default.nix
···
numba
];
# Select some lightweight tests
-
pytestFlagsArray = [ "-m 'not long'" ];
+
disabledTestMarks = [ "long" ];
disabledTests =
[
# ModuleNotFoundError: No module named 'pymoo.cython.non_dominated_sorting'
+2 -2
pkgs/development/python-modules/pyogrio/default.nix
···
python setup.py build_ext --inplace
'';
-
pytestFlagsArray = [
+
disabledTestMarks = [
# disable tests which require network access
-
"-m 'not network'"
+
"network"
];
pythonImportsCheck = [ "pyogrio" ];
+2 -3
pkgs/development/python-modules/pyopenweathermap/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [
-
"-m"
-
"'not network'"
+
disabledTestMarks = [
+
"network"
];
pythonImportsCheck = [ "pyopenweathermap" ];
+2 -3
pkgs/development/python-modules/pypdf/default.nix
···
pytest-timeout
] ++ optional-dependencies.full;
-
pytestFlagsArray = [
+
disabledTestMarks = [
# don't access the network
-
"-m"
-
"'not enable_socket'"
+
"enable_socket"
];
meta = with lib; {
+1 -1
pkgs/development/python-modules/pypinyin/default.nix
···
pytest-cov-stub
];
-
pytestFlagsArray = [ "tests" ];
+
enabledTestPaths = [ "tests" ];
meta = with lib; {
description = "Chinese Characters to Pinyin - 汉字转拼音";
+1 -1
pkgs/development/python-modules/pyppmd/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
pythonImportsCheck = [
"pyppmd"
+2 -2
pkgs/development/python-modules/pyquery/default.nix
···
}))
];
-
pytestFlagsArray = [
+
disabledTestPaths = [
# requires network
-
"--deselect=tests/test_pyquery.py::TestWebScrappingEncoding::test_get"
+
"tests/test_pyquery.py::TestWebScrappingEncoding::test_get"
];
disabledTests = [
-5
pkgs/development/python-modules/pyradiomics/default.nix
···
"lung1_shape2D-original_shape2D"
"lung2_shape2D-original_shape2D"
];
-
# note the above elements of disabledTests are patterns, not exact tests,
-
# so simply setting `disabledTests` does not suffice:
-
pytestFlagsArray = [
-
"-k '${toString (lib.intersperse "and" (lib.forEach disabledTests (t: "not ${t}")))}'"
-
];
pythonImportsCheck = [ "radiomics" ];
+8 -8
pkgs/development/python-modules/pyscf/default.nix
···
"test_sacasscf_grad"
];
-
pytestFlagsArray = [
-
"--ignore=pyscf/pbc/tdscf"
-
"--ignore=pyscf/pbc/gw"
-
"--ignore-glob=*_slow.*py"
-
"--ignore-glob=*_kproxy_.*py"
-
"--ignore-glob=test_proxy.py"
-
"--ignore-glob=pyscf/nac/test/test_sacasscf.py"
-
"--ignore-glob=pyscf/grad/test/test_casscf.py"
+
disabledTestPaths = [
+
"pyscf/pbc/tdscf"
+
"pyscf/pbc/gw"
+
"*_slow.*py"
+
"*_kproxy_.*py"
+
"test_proxy.py"
+
"pyscf/nac/test/test_sacasscf.py"
+
"pyscf/grad/test/test_casscf.py"
];
meta = {
+1 -1
pkgs/development/python-modules/pyshark/default.nix
···
pythonImportsCheck = [ "pyshark" ];
-
pytestFlagsArray = [ "../tests/" ];
+
enabledTestPaths = [ "../tests/" ];
meta = with lib; {
description = "Python wrapper for tshark, allowing Python packet parsing using Wireshark dissectors";
+5 -2
pkgs/development/python-modules/pystac-client/default.nix
···
requests-mock
];
-
pytestFlagsArray = [
+
pytestFlags = [
"--benchmark-disable"
+
];
+
+
disabledTestMarks = [
# Tests accessing Internet
-
"-m 'not vcr'"
+
"vcr"
];
pythonImportsCheck = [ "pystac_client" ];
+1 -1
pkgs/development/python-modules/pytensor/default.nix
···
writableTmpDirAsHomeHook
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
pythonImportsCheck = [ "pytensor" ];
+1 -1
pkgs/development/python-modules/pytest-factoryboy/default.nix
···
nativeCheckInputs = [ pytestCheckHook ];
-
pytestFlagsArray = [ "--ignore=docs" ];
+
disabledTestPaths = [ "docs" ];
meta = with lib; {
description = "Integration of factory_boy into the pytest runner";
+2 -2
pkgs/development/python-modules/pytest-flask/default.nix
···
pythonImportsCheck = [ "pytest_flask" ];
-
pytestFlagsArray = lib.optionals stdenv.hostPlatform.isDarwin [
-
"--ignore=tests/test_live_server.py"
+
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
+
"tests/test_live_server.py"
];
meta = with lib; {
+5 -8
pkgs/development/python-modules/python-creole/default.nix
···
# rendering differencenes, likely docutils version mismatch
"creole/tests/test_cross_compare_rest.py"
"creole/tests/test_rest2html.py"
-
];
-
-
pytestFlagsArray = [
# fixture mismatch after docutils update
-
"--deselect=creole/rest_tools/clean_writer.py::creole.rest_tools.clean_writer.rest2html"
-
"--deselect=creole/tests/test_cross_compare_all.py::CrossCompareTests::test_link"
-
"--deselect=creole/tests/test_cross_compare_all.py::CrossCompareTests::test_link_with_at_sign"
-
"--deselect=creole/tests/test_cross_compare_all.py::CrossCompareTests::test_link_with_unknown_protocol"
-
"--deselect=creole/tests/test_cross_compare_all.py::CrossCompareTests::test_link_without_title"
+
"creole/rest_tools/clean_writer.py::creole.rest_tools.clean_writer.rest2html"
+
"creole/tests/test_cross_compare_all.py::CrossCompareTests::test_link"
+
"creole/tests/test_cross_compare_all.py::CrossCompareTests::test_link_with_at_sign"
+
"creole/tests/test_cross_compare_all.py::CrossCompareTests::test_link_with_unknown_protocol"
+
"creole/tests/test_cross_compare_all.py::CrossCompareTests::test_link_without_title"
];
meta = with lib; {
+1 -1
pkgs/development/python-modules/python-efl/default.nix
···
--replace-fail ".assert_(" ".assertTrue("
'';
-
pytestFlagsArray = [ "tests/" ];
+
enabledTestPaths = [ "tests/" ];
disabledTestPaths = [
"tests/dbus/test_01_basics.py" # needs dbus daemon
+1 -1
pkgs/development/python-modules/python-olm/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
meta = {
inherit (olm.meta) license maintainers;
+7 -3
pkgs/development/python-modules/pytorch-pfn-extras/default.nix
···
torchvision
];
-
pytestFlagsArray = [
-
# Requires CUDA access which is not possible in the nix environment.
-
"-m 'not gpu and not mpi'"
+
pytestFlags = [
"-Wignore::DeprecationWarning"
];
pythonImportsCheck = [ "pytorch_pfn_extras" ];
+
+
disabledTestMarks = [
+
# Requires CUDA access which is not possible in the nix environment.
+
"gpu"
+
"mpi"
+
];
disabledTests =
[
+2 -3
pkgs/development/python-modules/pyzmq/default.nix
···
rm -r zmq
'';
-
pytestFlagsArray = [
-
"-m"
-
"'not flaky'"
+
disabledTestMarks = [
+
"flaky"
];
disabledTests = [
+6 -3
pkgs/development/python-modules/qcodes/default.nix
···
__darwinAllowLocalNetworking = true;
-
pytestFlagsArray = [
+
pytestFlags = [
"-v"
+
"--hypothesis-profile ci"
# Follow upstream with settings
-
"-m 'not serial'"
-
"--hypothesis-profile ci"
"--durations=20"
];
···
"tests/dataset/measurement/test_load_legacy_data.py"
# TypeError
"tests/dataset/test_dataset_basic.py"
+
];
+
+
disabledTestMarks = [
+
"serial"
];
disabledTests = [
+4 -2
pkgs/development/python-modules/qiskit-machine-learning/default.nix
···
pythonImportsCheck = [ "qiskit_machine_learning" ];
-
pytestFlagsArray = [
+
pytestFlags = [
"--durations=10"
"--showlocals"
"-vv"
-
"--ignore=test/connectors/test_torch_connector.py" # TODO: fix, get multithreading errors with python3.9, segfaults
+
];
+
disabledTestPaths = [
+
"test/connectors/test_torch_connector.py" # TODO: fix, get multithreading errors with python3.9, segfaults
];
disabledTests = [
# Slow tests >10 s
+1 -1
pkgs/development/python-modules/rasterio/default.nix
···
rm -r rasterio # prevent importing local rasterio
'';
-
pytestFlagsArray = [ "-m 'not network'" ];
+
disabledTestMarks = [ "network" ];
disabledTests = [
# flaky
+1 -1
pkgs/development/python-modules/ratelimit/default.nix
···
pytest-cov-stub
];
-
pytestFlagsArray = [ "tests" ];
+
enabledTestPaths = [ "tests" ];
pythonImportsCheck = [ "ratelimit" ];
+3 -3
pkgs/development/python-modules/rdflib/default.nix
···
++ optional-dependencies.networkx
++ optional-dependencies.html;
-
pytestFlagsArray = [
+
disabledTestPaths = [
# requires network access
-
"--deselect=rdflib/__init__.py::rdflib"
-
"--deselect=test/jsonld/test_onedotone.py::test_suite"
+
"rdflib/__init__.py::rdflib"
+
"test/jsonld/test_onedotone.py::test_suite"
];
disabledTests =
+12 -6
pkgs/development/python-modules/reproject/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [
-
"build/lib*"
+
pytestFlags = [
# Avoid failure due to user warning: Distutils was imported before Setuptools
-
"-p no:warnings"
-
# Uses network
-
"--ignore build/lib*/reproject/interpolation/"
+
"-pno:warnings"
# prevent "'filterwarnings' not found in `markers` configuration option" error
-
"-o 'markers=filterwarnings'"
+
"-omarkers=filterwarnings"
+
];
+
+
enabledTestPaths = [
+
"build/lib*"
+
];
+
+
disabledTestPaths = [
+
# Uses network
+
"build/lib*/reproject/interpolation/"
];
pythonImportsCheck = [ "reproject" ];
+1 -1
pkgs/development/python-modules/returns/default.nix
···
pythonImportsCheck = [ "returns" ];
-
pytestFlagsArray = [ "--ignore=typesafety" ];
+
disabledTestPaths = [ "typesafety" ];
meta = with lib; {
description = "Make your functions return something meaningful, typed, and safe!";
+5 -1
pkgs/development/python-modules/schemainspect/default.nix
···
"test_weird_names"
];
-
pytestFlagsArray = [
+
pytestFlags = [
"-x"
"-svv"
+
];
+
+
enabledTestPaths = [
"tests"
];
+
pythonImportsCheck = [ "schemainspect" ];
postUnpack = ''
+4 -1
pkgs/development/python-modules/scikit-build-core/default.nix
···
# cmake is only used for tests
dontUseCmakeConfigure = true;
-
pytestFlagsArray = [ "-m 'not isolated and not network'" ];
+
disabledTestMarks = [
+
"isolated"
+
"network"
+
];
disabledTestPaths = [
# store permissions issue in Nix:
+26 -28
pkgs/development/python-modules/scikit-image/default.nix
···
rm -r skimage
'';
-
disabledTestPaths = [
-
# Requires network access (actually some data is loaded via `skimage._shared.testing.fetch` in the global scope, which calls `pytest.skip` when a network is unaccessible, leading to a pytest collection error).
-
"${installedPackageRoot}/skimage/filters/rank/tests/test_rank.py"
+
pytestFlagsArray = [
+
"${installedPackageRoot}"
+
"--pyargs"
+
"skimage"
];
-
pytestFlagsArray =
+
+
disabledTestPaths =
[
-
"${installedPackageRoot}"
-
"--pyargs"
-
"skimage"
+
# Requires network access (actually some data is loaded via `skimage._shared.testing.fetch` in the global scope, which calls `pytest.skip` when a network is unaccessible, leading to a pytest collection error).
+
"${installedPackageRoot}/skimage/filters/rank/tests/test_rank.py"
+
+
# These tests require network access
+
"skimage/data/test_data.py::test_skin"
+
"skimage/data/tests/test_data.py::test_skin"
+
"skimage/io/tests/test_io.py::test_imread_http_url"
+
"skimage/restoration/tests/test_rolling_ball.py::test_ndim"
]
-
++ builtins.map (testid: "--deselect=" + testid) (
-
[
-
# These tests require network access
-
"skimage/data/test_data.py::test_skin"
-
"skimage/data/tests/test_data.py::test_skin"
-
"skimage/io/tests/test_io.py::test_imread_http_url"
-
"skimage/restoration/tests/test_rolling_ball.py::test_ndim"
-
]
-
++ lib.optionals stdenv.hostPlatform.isDarwin [
-
# Matplotlib tests are broken inside darwin sandbox
-
"skimage/feature/tests/test_util.py::test_plot_matches"
-
"skimage/filters/tests/test_thresholding.py::TestSimpleImage::test_try_all_threshold"
-
"skimage/io/tests/test_mpl_imshow.py::"
-
# See https://github.com/scikit-image/scikit-image/issues/7061 and https://github.com/scikit-image/scikit-image/issues/7104
-
"skimage/measure/tests/test_fit.py"
-
]
-
++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
-
# https://github.com/scikit-image/scikit-image/issues/7104
-
"skimage/measure/tests/test_moments.py"
-
]
-
);
+
++ lib.optionals stdenv.hostPlatform.isDarwin [
+
# Matplotlib tests are broken inside darwin sandbox
+
"skimage/feature/tests/test_util.py::test_plot_matches"
+
"skimage/filters/tests/test_thresholding.py::TestSimpleImage::test_try_all_threshold"
+
"skimage/io/tests/test_mpl_imshow.py::"
+
# See https://github.com/scikit-image/scikit-image/issues/7061 and https://github.com/scikit-image/scikit-image/issues/7104
+
"skimage/measure/tests/test_fit.py"
+
]
+
++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
+
# https://github.com/scikit-image/scikit-image/issues/7104
+
"skimage/measure/tests/test_moments.py"
+
];
# Check cythonized modules
pythonImportsCheck = [
+1 -1
pkgs/development/python-modules/scipp/default.nix
···
h5py
hypothesis
];
-
pytestFlagsArray = [
+
pytestFlags = [
# See https://github.com/scipp/scipp/issues/3721
"--hypothesis-profile=ci"
];
+1 -2
pkgs/development/python-modules/setuptools-git-versioning/default.nix
···
'';
# limit tests because the full suite takes several minutes to run
-
pytestFlagsArray = [
-
"-m"
+
enabledTestMarks = [
"important"
];
+1 -1
pkgs/development/python-modules/simple-parsing/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [ "--benchmark-disable" ];
+
pytestFlags = [ "--benchmark-disable" ];
disabledTests = [
# AssertionError
+1 -1
pkgs/development/python-modules/simpy/default.nix
···
pytestCheckHook
];
-
pytestFlags = [
+
enabledTestPaths = [
"tests"
];
+4 -8
pkgs/development/python-modules/six/default.nix
···
nativeCheckInputs = [ pytestCheckHook ];
-
pytestFlagsArray =
-
if isPyPy then
-
[
-
# uses ctypes to find native library
-
"--deselect=test_six.py::test_move_items"
-
]
-
else
-
null;
+
disabledTestPaths = lib.optionals isPyPy [
+
# uses ctypes to find native library
+
"test_six.py::test_move_items"
+
];
pythonImportsCheck = [ "six" ];
+1 -1
pkgs/development/python-modules/slicedimage/default.nix
···
nativeCheckInputs = [ pytestCheckHook ];
# Ignore tests which require setup, check again if disabledTestFiles can be used
-
pytestFlagsArray = [ "--ignore tests/io_" ];
+
disabledTestPaths = [ "tests/io_" ];
pythonImportsCheck = [ "slicedimage" ];
+1 -1
pkgs/development/python-modules/smbus-cffi/default.nix
···
'';
# requires hardware access
-
pytestFlagsArray = [ "--ignore=test/test_smbus_integration.py" ];
+
disabledTestPaths = [ "test/test_smbus_integration.py" ];
nativeCheckInputs = [
py
+2 -4
pkgs/development/python-modules/softlayer/default.nix
···
export HOME=$(mktemp -d)
'';
-
pytestFlagsArray = lib.optionals stdenv.hostPlatform.isDarwin [
+
disabledTestPaths = [
# SoftLayer.exceptions.TransportError: TransportError(0): ('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'))
-
"--deselect=tests/CLI/modules/hardware/hardware_basic_tests.py::HardwareCLITests"
-
];
+
"tests/CLI/modules/hardware/hardware_basic_tests.py::HardwareCLITests"
-
disabledTestPaths = [
# Test fails with ConnectionError trying to connect to api.softlayer.com
"tests/transports/soap_tests.py.unstable"
];
+1 -1
pkgs/development/python-modules/spacy/default.nix
···
cd $out
'';
-
pytestFlagsArray = [ "-m 'slow'" ];
+
disabledTestMarks = [ "slow" ];
disabledTests = [
# touches network
+6 -2
pkgs/development/python-modules/sqlbag/default.nix
···
preCheck = ''
export PGUSER="nixbld";
'';
+
+
enabledTestPaths = [
+
"tests"
+
];
+
disabledTests = [
# These all fail with "List argument must consist only of tuples or dictionaries":
# Related issue: https://github.com/djrobstep/sqlbag/issues/14
···
"test_transaction_separation"
];
-
pytestFlagsArray = [
+
pytestFlags = [
"-x"
"-svv"
-
"tests"
];
pythonImportsCheck = [ "sqlbag" ];
+5 -2
pkgs/development/python-modules/starkbank-ecdsa/default.nix
···
cd tests
'';
-
pytestFlagsArray = [
+
enabledTestPaths = [
+
"*.py"
+
];
+
+
pytestFlags = [
"-v"
-
"*.py"
];
pythonImportsCheck = [ "ellipticcurve" ];
+4 -4
pkgs/development/python-modules/swh-model/default.nix
···
types-deprecated
];
-
pytestFlagsArray = lib.optionals (stdenv.hostPlatform.isDarwin) [
+
disabledTestPaths = lib.optionals (stdenv.hostPlatform.isDarwin) [
# OSError: [Errno 92] Illegal byte sequence
-
"--deselect swh/model/tests/test_cli.py::TestIdentify::test_exclude"
-
"--deselect swh/model/tests/test_from_disk.py::DirectoryToObjects::test_exclude"
-
"--deselect swh/model/tests/test_from_disk.py::DirectoryToObjects::test_exclude_trailing"
+
"swh/model/tests/test_cli.py::TestIdentify::test_exclude"
+
"swh/model/tests/test_from_disk.py::DirectoryToObjects::test_exclude"
+
"swh/model/tests/test_from_disk.py::DirectoryToObjects::test_exclude_trailing"
];
meta = {
+6 -4
pkgs/development/python-modules/tbats/default.nix
···
];
nativeCheckInputs = [ pytestCheckHook ];
-
pytestFlagsArray = [
+
+
enabledTestPaths = [
# test_R folder is just for comparison of results with R lib
# we need only test folder
"test/"
-
-
# several tests has same name, so we use --deselect instead of disableTests
+
];
+
# several tests has same name, so we use --deselect instead of disableTests
+
dilsabledTestPaths = [
# Test execution is too long > 15 min
-
"--deselect=test/tbats/TBATS_test.py::TestTBATS::test_fit_predict_trigonometric_seasonal"
+
"test/tbats/TBATS_test.py::TestTBATS::test_fit_predict_trigonometric_seasonal"
];
pythonImportsCheck = [ "tbats" ];
+4 -6
pkgs/development/python-modules/tensorflow-datasets/default.nix
···
zarr
];
-
pytestFlagsArray = [
-
# AttributeError: 'NoneType' object has no attribute 'Table'
-
"--deselect=tensorflow_datasets/core/file_adapters_test.py::test_read_write"
-
"--deselect=tensorflow_datasets/text/c4_wsrs/c4_wsrs_test.py::C4WSRSTest"
-
];
-
disabledTests = [
# Since updating apache-beam to 2.65.0
# RuntimeError: Unable to pickle fn CallableWrapperDoFn...: maximum recursion depth exceeded
···
# Require `gcld3` and `nltk.punkt` which are not packaged in `nixpkgs`.
"tensorflow_datasets/text/c4_test.py"
"tensorflow_datasets/text/c4_utils_test.py"
+
+
# AttributeError: 'NoneType' object has no attribute 'Table'
+
"tensorflow_datasets/core/file_adapters_test.py::test_read_write"
+
"tensorflow_datasets/text/c4_wsrs/c4_wsrs_test.py::C4WSRSTest"
];
meta = {
+29 -24
pkgs/development/python-modules/torcheval/default.nix
···
torchvision
];
-
pytestFlagsArray =
-
[
-
"-v"
-
"tests/"
+
pytestFlags = [
+
"-v"
+
];
+
enabledTestPaths = [
+
"tests/"
+
];
+
+
disabledTestPaths =
+
[
# -- tests/metrics/audio/test_fad.py --
# Touch filesystem and require network access.
# torchaudio.utils.download_asset("models/vggish.pt") -> PermissionError: [Errno 13] Permission denied: '/homeless-shelter'
-
"--deselect=tests/metrics/audio/test_fad.py::TestFAD::test_vggish_fad"
-
"--deselect=tests/metrics/audio/test_fad.py::TestFAD::test_vggish_fad_merge"
+
"tests/metrics/audio/test_fad.py::TestFAD::test_vggish_fad"
+
"tests/metrics/audio/test_fad.py::TestFAD::test_vggish_fad_merge"
# -- tests/metrics/image/test_fid.py --
# Touch filesystem and require network access.
# models.inception_v3(weights=weights) -> PermissionError: [Errno 13] Permission denied: '/homeless-shelter'
-
"--deselect=tests/metrics/image/test_fid.py::TestFrechetInceptionDistance::test_fid_invalid_input"
-
"--deselect=tests/metrics/image/test_fid.py::TestFrechetInceptionDistance::test_fid_random_data_custom_model"
-
"--deselect=tests/metrics/image/test_fid.py::TestFrechetInceptionDistance::test_fid_random_data_default_model"
-
"--deselect=tests/metrics/image/test_fid.py::TestFrechetInceptionDistance::test_fid_with_dissimilar_inputs"
-
"--deselect=tests/metrics/image/test_fid.py::TestFrechetInceptionDistance::test_fid_with_similar_inputs"
+
"tests/metrics/image/test_fid.py::TestFrechetInceptionDistance::test_fid_invalid_input"
+
"tests/metrics/image/test_fid.py::TestFrechetInceptionDistance::test_fid_random_data_custom_model"
+
"tests/metrics/image/test_fid.py::TestFrechetInceptionDistance::test_fid_random_data_default_model"
+
"tests/metrics/image/test_fid.py::TestFrechetInceptionDistance::test_fid_with_dissimilar_inputs"
+
"tests/metrics/image/test_fid.py::TestFrechetInceptionDistance::test_fid_with_similar_inputs"
# -- tests/metrics/functional/text/test_perplexity.py --
# AssertionError: Scalars are not close!
# Expected 3.537154912949 but got 3.53715443611145
-
"--deselect=tests/metrics/functional/text/test_perplexity.py::Perplexity::test_perplexity_with_ignore_index"
+
"tests/metrics/functional/text/test_perplexity.py::Perplexity::test_perplexity_with_ignore_index"
# -- tests/metrics/image/test_psnr.py --
# AssertionError: Scalars are not close!
# Expected 7.781850814819336 but got 7.781772613525391
-
"--deselect=tests/metrics/image/test_psnr.py::TestPeakSignalNoiseRatio::test_psnr_with_random_data"
+
"tests/metrics/image/test_psnr.py::TestPeakSignalNoiseRatio::test_psnr_with_random_data"
# -- tests/metrics/regression/test_mean_squared_error.py --
# AssertionError: Scalars are not close!
# Expected -640.4547729492188 but got -640.4707641601562
-
"--deselect=tests/metrics/regression/test_mean_squared_error.py::TestMeanSquaredError::test_mean_squared_error_class_update_input_shape_different"
+
"tests/metrics/regression/test_mean_squared_error.py::TestMeanSquaredError::test_mean_squared_error_class_update_input_shape_different"
# -- tests/metrics/window/test_mean_squared_error.py --
# AssertionError: Scalars are not close!
# Expected 0.0009198983898386359 but got 0.0009198188781738281
-
"--deselect=tests/metrics/window/test_mean_squared_error.py::TestMeanSquaredError::test_mean_squared_error_class_update_input_shape_different"
+
"tests/metrics/window/test_mean_squared_error.py::TestMeanSquaredError::test_mean_squared_error_class_update_input_shape_different"
]
# These tests error on darwin platforms.
···
# Expected TensorOptions(dtype=float, device=cpu, ...), got TensorOptions(dtype=float, device=mps:0, ...)
++ lib.optional stdenv.hostPlatform.isDarwin [
# -- tests/metrics/test_synclib.py --
-
"--deselect=tests/metrics/test_synclib.py::SynclibTest::test_complex_mixed_state_sync"
-
"--deselect=tests/metrics/test_synclib.py::SynclibTest::test_complex_mixed_state_sync"
-
"--deselect=tests/metrics/test_synclib.py::SynclibTest::test_empty_tensor_list_sync_state"
-
"--deselect=tests/metrics/test_synclib.py::SynclibTest::test_sync_dtype_and_shape"
-
"--deselect=tests/metrics/test_synclib.py::SynclibTest::test_tensor_list_sync_states"
-
"--deselect=tests/metrics/test_synclib.py::SynclibTest::test_tensor_dict_sync_states"
-
"--deselect=tests/metrics/test_synclib.py::SynclibTest::test_tensor_sync_states"
+
"tests/metrics/test_synclib.py::SynclibTest::test_complex_mixed_state_sync"
+
"tests/metrics/test_synclib.py::SynclibTest::test_complex_mixed_state_sync"
+
"tests/metrics/test_synclib.py::SynclibTest::test_empty_tensor_list_sync_state"
+
"tests/metrics/test_synclib.py::SynclibTest::test_sync_dtype_and_shape"
+
"tests/metrics/test_synclib.py::SynclibTest::test_tensor_list_sync_states"
+
"tests/metrics/test_synclib.py::SynclibTest::test_tensor_dict_sync_states"
+
"tests/metrics/test_synclib.py::SynclibTest::test_tensor_sync_states"
# -- tests/metrics/test_toolkit.py --
-
"--deselect=tests/metrics/test_toolkit.py::MetricToolkitTest::test_metric_sync"
-
"--deselect=tests/metrics/test_toolkit.py::MetricCollectionToolkitTest::test_metric_collection_sync"
+
"tests/metrics/test_toolkit.py::MetricToolkitTest::test_metric_sync"
+
"tests/metrics/test_toolkit.py::MetricCollectionToolkitTest::test_metric_collection_sync"
];
meta = {
+1 -1
pkgs/development/python-modules/trino-python-client/default.nix
···
"tests/integration/test_sqlalchemy_integration.py"
];
-
pytestFlagsArray = [ "-k 'not auth'" ];
+
disabledTestMarks = [ "auth" ];
meta = with lib; {
changelog = "https://github.com/trinodb/trino-python-client/blob/${version}/CHANGES.md";
+17 -14
pkgs/development/python-modules/txtai/default.nix
···
++ optional-dependencies.api
++ optional-dependencies.similarity;
+
enabledTestPaths = [
+
"test/python/test*.py"
+
];
+
# The deselected paths depend on the huggingface hub and should be run as a passthru test
# disabledTestPaths won't work as the problem is with the classes containing the tests
# (in other words, it fails on __init__)
-
pytestFlagsArray = [
-
"test/python/test*.py"
-
"--deselect=test/python/testagent.py"
-
"--deselect=test/python/testcloud.py"
-
"--deselect=test/python/testconsole.py"
-
"--deselect=test/python/testembeddings.py"
-
"--deselect=test/python/testgraph.py"
-
"--deselect=test/python/testapi/testapiembeddings.py"
-
"--deselect=test/python/testapi/testapipipelines.py"
-
"--deselect=test/python/testapi/testapiworkflow.py"
-
"--deselect=test/python/testdatabase/testclient.py"
-
"--deselect=test/python/testdatabase/testduckdb.py"
-
"--deselect=test/python/testdatabase/testencoder.py"
-
"--deselect=test/python/testworkflow.py"
+
disabledTestPaths = [
+
"test/python/testagent.py"
+
"test/python/testcloud.py"
+
"test/python/testconsole.py"
+
"test/python/testembeddings.py"
+
"test/python/testgraph.py"
+
"test/python/testapi/testapiembeddings.py"
+
"test/python/testapi/testapipipelines.py"
+
"test/python/testapi/testapiworkflow.py"
+
"test/python/testdatabase/testclient.py"
+
"test/python/testdatabase/testduckdb.py"
+
"test/python/testdatabase/testencoder.py"
+
"test/python/testworkflow.py"
];
disabledTests = [
+4 -1
pkgs/development/python-modules/typogrify/default.nix
···
pythonImportsCheck = [ "typogrify.filters" ];
-
pytestFlagsArray = [
+
pytestFlags = [
"--doctest-modules"
+
];
+
+
enabledTestPaths = [
"typogrify/filters.py"
"typogrify/packages/titlecase/tests.py"
];
+4 -3
pkgs/development/python-modules/unstructured-client/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [
-
# see test-unit in Makefile
+
# see test-unit in Makefile
+
enabledTestPaths = [
"_test_unstructured_client"
-
"-k"
+
];
+
enabledTests = [
"unit"
];
+1 -1
pkgs/development/python-modules/urwid/default.nix
···
env.LC_ALL = "en_US.UTF8";
-
pytestFlagsArray = [ "tests" ];
+
enabledTestPaths = [ "tests" ];
disabledTests = [
# Flaky tests
+1 -1
pkgs/development/python-modules/uuid6/default.nix
···
pytestCheckHook
];
-
pytestFlagsArray = [
+
enabledTestPaths = [
"test/"
];
+12 -15
pkgs/development/python-modules/uvloop/default.nix
···
psutil
];
-
pytestFlagsArray =
+
disabledTestPaths =
[
+
# ignore code linting tests
+
"tests/test_sourcecode.py"
# Tries to run "env", but fails to find it, even with coreutils provided
-
"--deselect=tests/test_process.py::Test_UV_Process::test_process_env_2"
-
"--deselect=tests/test_process.py::Test_AIO_Process::test_process_env_2"
+
"tests/test_process.py::Test_UV_Process::test_process_env_2"
+
"tests/test_process.py::Test_AIO_Process::test_process_env_2"
# AssertionError: b'' != b'out\n'
-
"--deselect=tests/test_process.py::Test_UV_Process::test_process_streams_redirect"
-
"--deselect=tests/test_process.py::Test_AIO_Process::test_process_streams_redirect"
+
"tests/test_process.py::Test_UV_Process::test_process_streams_redirect"
+
"tests/test_process.py::Test_AIO_Process::test_process_streams_redirect"
# Depends on performance of builder
-
"--deselect=tests/test_base.py::TestBaseUV.test_call_at"
+
"tests/test_base.py::TestBaseUV.test_call_at"
# Pointless and flaky (at least on darwin, depending on the sandbox perhaps)
-
"--deselect=tests/test_dns.py"
+
"tests/test_dns.py"
]
++ lib.optionals (pythonOlder "3.11") [
-
"--deselect=tests/test_tcp.py::Test_UV_TCPSSL::test_create_connection_ssl_failed_certificat"
+
"tests/test_tcp.py::Test_UV_TCPSSL::test_create_connection_ssl_failed_certificat"
]
++ lib.optionals (stdenv.hostPlatform.isDarwin) [
# Segmentation fault
-
"--deselect=tests/test_fs_event.py::Test_UV_FS_EVENT_RENAME::test_fs_event_rename"
+
"tests/test_fs_event.py::Test_UV_FS_EVENT_RENAME::test_fs_event_rename"
# Broken: https://github.com/NixOS/nixpkgs/issues/160904
-
"--deselect=tests/test_context.py::Test_UV_Context::test_create_ssl_server_manual_connection_lost"
+
"tests/test_context.py::Test_UV_Context::test_create_ssl_server_manual_connection_lost"
];
-
-
disabledTestPaths = [
-
# ignore code linting tests
-
"tests/test_sourcecode.py"
-
];
preCheck =
''
+4 -1
pkgs/development/python-modules/valkey/default.nix
···
uvloop
] ++ lib.flatten (lib.attrValues optional-dependencies);
-
pytestFlagsArray = [ "-m 'not onlycluster and not ssl'" ];
+
disabledTestMarks = [
+
"onlycluster"
+
"ssl"
+
];
disabledTests =
[
+5 -2
pkgs/development/python-modules/warcio/default.nix
···
pytest-cov-stub
];
-
pytestFlagsArray = [
+
pytestFlags = [
"--offline"
-
"--ignore=test/test_capture_http_proxy.py"
+
];
+
+
disabledTestPaths = [
+
"test/test_capture_http_proxy.py"
];
pythonImportsCheck = [ "warcio" ];
+2 -2
pkgs/development/python-modules/werkzeug/default.nix
···
"tests/test_serving.py"
];
-
pytestFlagsArray = [
+
disabledTestMarks = [
# don't run tests that are marked with filterwarnings, they fail with
# warnings._OptionError: unknown warning category: 'pytest.PytestUnraisableExceptionWarning'
-
"-m 'not filterwarnings'"
+
"filterwarnings"
];
passthru.tests = {
+9 -5
pkgs/development/tools/devpi-server/default.nix
···
export PATH=$PATH:$out/bin
export HOME=$TMPDIR
'';
-
pytestFlagsArray = [
-
"./test_devpi_server"
+
pytestFlags = [
"-rfsxX"
-
"--ignore=test_devpi_server/test_nginx_replica.py"
-
"--ignore=test_devpi_server/test_streaming_nginx.py"
-
"--ignore=test_devpi_server/test_streaming_replica_nginx.py"
+
];
+
enabledTestPaths = [
+
"./test_devpi_server"
+
];
+
disabledTestPaths = [
+
"test_devpi_server/test_nginx_replica.py"
+
"test_devpi_server/test_streaming_nginx.py"
+
"test_devpi_server/test_streaming_replica_nginx.py"
];
disabledTests = [
"root_passwd_hash_option"
+9 -6
pkgs/development/tools/hotdoc/default.nix
···
"hotdoc.extensions.gst.gst_extension"
];
-
pytestFlagsArray = [
-
# Executing hotdoc exits with code 1
-
"--deselect tests/test_hotdoc.py::TestHotdoc::test_basic"
-
"--deselect tests/test_hotdoc.py::TestHotdoc::test_explicit_conf_file"
-
"--deselect tests/test_hotdoc.py::TestHotdoc::test_implicit_conf_file"
-
"--deselect tests/test_hotdoc.py::TestHotdoc::test_private_folder"
+
pytestFlags = [
# Run the tests by package instead of current dir
"--pyargs"
"hotdoc"
+
];
+
+
disabledTestPaths = [
+
# Executing hotdoc exits with code 1
+
"tests/test_hotdoc.py::TestHotdoc::test_basic"
+
"tests/test_hotdoc.py::TestHotdoc::test_explicit_conf_file"
+
"tests/test_hotdoc.py::TestHotdoc::test_implicit_conf_file"
+
"tests/test_hotdoc.py::TestHotdoc::test_private_folder"
];
disabledTests =
+2 -2
pkgs/servers/home-assistant/custom-components/yandex-station/package.nix
···
zeroconf
];
-
pytestFlagsArray = [
+
disabledTestPaths = [
# this test seems to be broken
-
"--deselect=tests/test_local.py::test_track"
+
"tests/test_local.py::test_track"
];
nativeCheckInputs = [
home-assistant
+15 -12
pkgs/servers/home-assistant/default.nix
···
"qwikswitch"
];
-
pytestFlagsArray = [
+
pytestFlags = [
# assign tests grouped by file to workers
-
"--dist loadfile"
+
"--dist=loadfile"
# enable full variable printing on error
"--showlocals"
-
# AssertionError: assert 1 == 0
-
"--deselect tests/test_config.py::test_merge"
-
# checks whether pip is installed
-
"--deselect=tests/util/test_package.py::test_check_package_fragment"
-
# flaky
-
"--deselect=tests/test_bootstrap.py::test_setup_hass_takes_longer_than_log_slow_startup"
-
"--deselect=tests/test_test_fixtures.py::test_evict_faked_translations"
-
"--deselect=tests/helpers/test_backup.py::test_async_get_manager"
-
# (2025.7.0) Fails to find name of tracked time interval in scheduled jobs
-
"--deselect=tests/helpers/test_event.py::test_track_time_interval_name"
+
];
+
+
enabledTestPaths = [
# tests are located in tests/
"tests"
];
···
"tests/test_circular_imports.py"
# don't bulk test all components
"tests/components"
+
# AssertionError: assert 1 == 0
+
"tests/test_config.py::test_merge"
+
# checks whether pip is installed
+
"tests/util/test_package.py::test_check_package_fragment"
+
# flaky
+
"tests/test_bootstrap.py::test_setup_hass_takes_longer_than_log_slow_startup"
+
"tests/test_test_fixtures.py::test_evict_faked_translations"
+
"tests/helpers/test_backup.py::test_async_get_manager"
+
# (2025.7.0) Fails to find name of tracked time interval in scheduled jobs
+
"tests/helpers/test_event.py::test_track_time_interval_name"
];
preCheck = ''
+5 -1
pkgs/tools/audio/beets/plugins/filetote.nix
···
dev = optional-dependencies.lint ++ optional-dependencies.test ++ [ python3Packages.tox ];
};
-
pytestFlagsArray = [ "-r fEs" ];
+
pytestFlags = [
+
# This is the same as:
+
# -r fEs
+
"-rfEs"
+
];
disabledTestPaths = [
"tests/test_cli_operation.py"