diff --git a/pkgs/development/python-modules/accelerate/default.nix b/pkgs/development/python-modules/accelerate/default.nix index dd2f90f912e118..b05d6848768f53 100644 --- a/pkgs/development/python-modules/accelerate/default.nix +++ b/pkgs/development/python-modules/accelerate/default.nix @@ -61,14 +61,9 @@ buildPythonPackage rec { pytest7CheckHook transformers ]; - preCheck = - '' - export HOME=$(mktemp -d) - export PATH=$out/bin:$PATH - '' - + lib.optionalString config.cudaSupport '' - export TRITON_PTXAS_PATH="${cudatoolkit}/bin/ptxas" - ''; + preCheck = lib.optionalString config.cudaSupport '' + export TRITON_PTXAS_PATH="${cudatoolkit}/bin/ptxas" + ''; pytestFlagsArray = [ "tests" ]; disabledTests = [ diff --git a/pkgs/development/python-modules/aeppl/default.nix b/pkgs/development/python-modules/aeppl/default.nix index 62067166d5df0a..ca4920126c5412 100644 --- a/pkgs/development/python-modules/aeppl/default.nix +++ b/pkgs/development/python-modules/aeppl/default.nix @@ -38,10 +38,6 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - export HOME=$(mktemp -d); - ''; - pythonImportsCheck = [ "aeppl" ]; disabledTests = [ diff --git a/pkgs/development/python-modules/afdko/default.nix b/pkgs/development/python-modules/afdko/default.nix index 3181ecda763970..0a92ae2439e261 100644 --- a/pkgs/development/python-modules/afdko/default.nix +++ b/pkgs/development/python-modules/afdko/default.nix @@ -97,8 +97,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' - export PATH=$PATH:$out/bin - # Remove build artifacts to prevent them from messing with the tests rm -rf _skbuild ''; diff --git a/pkgs/development/python-modules/aiodhcpwatcher/default.nix b/pkgs/development/python-modules/aiodhcpwatcher/default.nix index f7fde19dc644a7..16989e989305c7 100644 --- a/pkgs/development/python-modules/aiodhcpwatcher/default.nix +++ b/pkgs/development/python-modules/aiodhcpwatcher/default.nix @@ -39,10 +39,6 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - export HOME=$TMPDIR - ''; - pythonImportsCheck = [ "aiodhcpwatcher" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/aiogithubapi/default.nix b/pkgs/development/python-modules/aiogithubapi/default.nix index 5f4a3c28d15469..6e0c9a5e65902b 100644 --- a/pkgs/development/python-modules/aiogithubapi/default.nix +++ b/pkgs/development/python-modules/aiogithubapi/default.nix @@ -56,8 +56,6 @@ buildPythonPackage rec { pytestFlagsArray = [ "--asyncio-mode=auto" ]; preCheck = '' - export HOME=$(mktemp -d) - # Need sigstore is an optional dependencies and need <2 rm -rf tests/test_helper.py ''; diff --git a/pkgs/development/python-modules/aiohttp/default.nix b/pkgs/development/python-modules/aiohttp/default.nix index 3d681d212dfc55..3e42865a5c7f84 100644 --- a/pkgs/development/python-modules/aiohttp/default.nix +++ b/pkgs/development/python-modules/aiohttp/default.nix @@ -135,8 +135,6 @@ buildPythonPackage rec { # aiohttp in current folder shadows installed version rm -r aiohttp touch tests/data.unknown_mime_type # has to be modified after 1 Jan 1990 - - export HOME=$(mktemp -d) '' + lib.optionalString stdenv.hostPlatform.isDarwin '' # Work around "OSError: AF_UNIX path too long" diff --git a/pkgs/development/python-modules/amqtt/default.nix b/pkgs/development/python-modules/amqtt/default.nix index 0221295513b34e..948f869ecc1cbc 100644 --- a/pkgs/development/python-modules/amqtt/default.nix +++ b/pkgs/development/python-modules/amqtt/default.nix @@ -75,11 +75,6 @@ buildPythonPackage rec { "tests/test_client.py" ]; - preCheck = '' - # Some tests need amqtt - export PATH=$out/bin:$PATH - ''; - pythonImportsCheck = [ "amqtt" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/ansi2html/default.nix b/pkgs/development/python-modules/ansi2html/default.nix index 9ab201720ddf86..8324c4501c440c 100644 --- a/pkgs/development/python-modules/ansi2html/default.nix +++ b/pkgs/development/python-modules/ansi2html/default.nix @@ -24,8 +24,6 @@ buildPythonPackage rec { wheel ]; - preCheck = "export PATH=$PATH:$out/bin"; - nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "ansi2html" ]; diff --git a/pkgs/development/python-modules/ansible-compat/default.nix b/pkgs/development/python-modules/ansible-compat/default.nix index 68eb5fb6a75e5a..a5c703e5fd97b7 100644 --- a/pkgs/development/python-modules/ansible-compat/default.nix +++ b/pkgs/development/python-modules/ansible-compat/default.nix @@ -38,7 +38,6 @@ buildPythonPackage rec { ]; preCheck = '' - export HOME=$(mktemp -d) substituteInPlace test/test_runtime.py \ --replace-fail "printenv" "${coreutils}/bin/printenv" ''; diff --git a/pkgs/development/python-modules/ansible-runner/default.nix b/pkgs/development/python-modules/ansible-runner/default.nix index 11d0f37773e49f..0b7a351aee2f08 100644 --- a/pkgs/development/python-modules/ansible-runner/default.nix +++ b/pkgs/development/python-modules/ansible-runner/default.nix @@ -62,8 +62,6 @@ buildPythonPackage rec { ]; preCheck = '' - export HOME=$(mktemp -d) - export PATH="$PATH:$out/bin"; # avoid coverage flags rm pytest.ini ''; diff --git a/pkgs/development/python-modules/ansible-vault-rw/default.nix b/pkgs/development/python-modules/ansible-vault-rw/default.nix index 1a772b3c639f97..0cbc9f503a5655 100644 --- a/pkgs/development/python-modules/ansible-vault-rw/default.nix +++ b/pkgs/development/python-modules/ansible-vault-rw/default.nix @@ -28,12 +28,6 @@ buildPythonPackage rec { propagatedBuildInputs = [ ansible-core ]; - # Otherwise tests will fail to create directory - # Permission denied: '/homeless-shelter' - preCheck = '' - export HOME=$(mktemp -d) - ''; - # no tests in sdist, no 2.1.0 tag on git doCheck = false; diff --git a/pkgs/development/python-modules/appthreat-vulnerability-db/default.nix b/pkgs/development/python-modules/appthreat-vulnerability-db/default.nix index 3a2916887bafb1..7b3ab30baa8d45 100644 --- a/pkgs/development/python-modules/appthreat-vulnerability-db/default.nix +++ b/pkgs/development/python-modules/appthreat-vulnerability-db/default.nix @@ -59,10 +59,6 @@ buildPythonPackage rec { pytest-cov-stub ]; - preCheck = '' - export HOME=$(mktemp -d); - ''; - disabledTests = [ # Tests require network access "test_bulk_search" diff --git a/pkgs/development/python-modules/apptools/default.nix b/pkgs/development/python-modules/apptools/default.nix index 8540a8f39c4bda..dc508ae6dc2ec1 100644 --- a/pkgs/development/python-modules/apptools/default.nix +++ b/pkgs/development/python-modules/apptools/default.nix @@ -48,10 +48,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies); - preCheck = '' - export HOME=$TMP - ''; - pythonImportsCheck = [ "apptools" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/arelle/default.nix b/pkgs/development/python-modules/arelle/default.nix index 6e20880ff84186..abd152a1edb88e 100644 --- a/pkgs/development/python-modules/arelle/default.nix +++ b/pkgs/development/python-modules/arelle/default.nix @@ -122,10 +122,6 @@ buildPythonPackage rec { boto3 ] ++ lib.flatten (lib.attrValues optional-dependencies); - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTestPaths = [ "tests/integration_tests" diff --git a/pkgs/development/python-modules/argilla/default.nix b/pkgs/development/python-modules/argilla/default.nix index c767e7ca3eed39..fe9502db56a6a8 100644 --- a/pkgs/development/python-modules/argilla/default.nix +++ b/pkgs/development/python-modules/argilla/default.nix @@ -169,10 +169,6 @@ buildPythonPackage rec { # Still quite a bit of optional dependencies missing doCheck = false; - preCheck = '' - export HOME=$(mktemp -d) - ''; - nativeCheckInputs = [ pytestCheckHook pytest-mock diff --git a/pkgs/development/python-modules/aria2p/default.nix b/pkgs/development/python-modules/aria2p/default.nix index b2ac4e967398d1..9812419d6c04d2 100644 --- a/pkgs/development/python-modules/aria2p/default.nix +++ b/pkgs/development/python-modules/aria2p/default.nix @@ -52,10 +52,6 @@ buildPythonPackage rec { ]; }; - preCheck = '' - export HOME=$TMPDIR - ''; - nativeCheckInputs = [ aria2 fastapi diff --git a/pkgs/development/python-modules/arviz/default.nix b/pkgs/development/python-modules/arviz/default.nix index 563f5d786c498d..0a4ed055aaa355 100644 --- a/pkgs/development/python-modules/arviz/default.nix +++ b/pkgs/development/python-modules/arviz/default.nix @@ -82,10 +82,6 @@ buildPythonPackage rec { zarr ]; - preCheck = '' - export HOME=$(mktemp -d); - ''; - pytestFlagsArray = [ "arviz/tests/base_tests/" ]; disabledTests = [ diff --git a/pkgs/development/python-modules/asdf-astropy/default.nix b/pkgs/development/python-modules/asdf-astropy/default.nix index adf443d35961ec..afb7eaa6cede10 100644 --- a/pkgs/development/python-modules/asdf-astropy/default.nix +++ b/pkgs/development/python-modules/asdf-astropy/default.nix @@ -54,10 +54,6 @@ buildPythonPackage rec { pythonImportsCheck = [ "asdf_astropy" ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - meta = with lib; { description = "Extension library for ASDF to provide support for Astropy"; homepage = "https://github.com/astropy/asdf-astropy"; diff --git a/pkgs/development/python-modules/ase/default.nix b/pkgs/development/python-modules/ase/default.nix index fb8dcd8a599879..bc0f45dbc142fd 100644 --- a/pkgs/development/python-modules/ase/default.nix +++ b/pkgs/development/python-modules/ase/default.nix @@ -74,10 +74,6 @@ buildPythonPackage rec { "test_fix_scaled" # Did not raise UserWarning ] ++ lib.optionals (pythonAtLeast "3.12") [ "test_info_calculators" ]; - preCheck = '' - export PATH="$out/bin:$PATH" - ''; - pythonImportsCheck = [ "ase" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/aspell-python/default.nix b/pkgs/development/python-modules/aspell-python/default.nix index 3f66a9a2bf5ddf..ff0a0256d7a254 100644 --- a/pkgs/development/python-modules/aspell-python/default.nix +++ b/pkgs/development/python-modules/aspell-python/default.nix @@ -32,7 +32,6 @@ buildPythonPackage rec { preCheck = '' export ASPELL_CONF="dict-dir ${aspellDicts.en}/lib/aspell" - export HOME=$(mktemp -d) ''; pytestFlagsArray = [ "test/unittests.py" ]; diff --git a/pkgs/development/python-modules/astropy/default.nix b/pkgs/development/python-modules/astropy/default.nix index 4e26f583b2f9be..ecce215b245563 100644 --- a/pkgs/development/python-modules/astropy/default.nix +++ b/pkgs/development/python-modules/astropy/default.nix @@ -130,7 +130,6 @@ buildPythonPackage rec { # https://github.com/astropy/astropy/issues/15316#issuecomment-1722190547 preCheck = '' cd "$out" - export HOME="$(mktemp -d)" export OMP_NUM_THREADS=$(( $NIX_BUILD_CORES / 4 )) ''; diff --git a/pkgs/development/python-modules/astroquery/default.nix b/pkgs/development/python-modules/astroquery/default.nix index 7988d75a904471..72a37f8de0f6cd 100644 --- a/pkgs/development/python-modules/astroquery/default.nix +++ b/pkgs/development/python-modules/astroquery/default.nix @@ -71,7 +71,6 @@ buildPythonPackage rec { # Tests must be run in the build directory. The tests create files # in $HOME/.astropy so we need to set HOME to $TMPDIR. preCheck = '' - export HOME=$TMPDIR cd build/lib ''; diff --git a/pkgs/development/python-modules/aw-client/default.nix b/pkgs/development/python-modules/aw-client/default.nix index bec43cbf2dbefd..6f8afb47a92939 100644 --- a/pkgs/development/python-modules/aw-client/default.nix +++ b/pkgs/development/python-modules/aw-client/default.nix @@ -47,11 +47,6 @@ buildPythonPackage rec { # an instance of aw-server running in order to function. pytestFlagsArray = [ "tests/test_requestqueue.py" ]; - preCheck = '' - # Fake home folder for tests that write to $HOME - export HOME="$TMPDIR" - ''; - pythonImportsCheck = [ "aw_client" ]; passthru.updateScript = gitUpdater { rev-prefix = "v"; }; diff --git a/pkgs/development/python-modules/aw-core/default.nix b/pkgs/development/python-modules/aw-core/default.nix index 591c862597d528..d0dba3719495c5 100644 --- a/pkgs/development/python-modules/aw-core/default.nix +++ b/pkgs/development/python-modules/aw-core/default.nix @@ -55,11 +55,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - preCheck = '' - # Fake home folder for tests that write to $HOME - export HOME="$TMPDIR" - ''; - pythonImportsCheck = [ "aw_core" ]; passthru.updateScript = gitUpdater { rev-prefix = "v"; }; diff --git a/pkgs/development/python-modules/aws-adfs/default.nix b/pkgs/development/python-modules/aws-adfs/default.nix index c2c0b859b033cf..c5e3a408d05f09 100644 --- a/pkgs/development/python-modules/aws-adfs/default.nix +++ b/pkgs/development/python-modules/aws-adfs/default.nix @@ -57,10 +57,6 @@ buildPythonPackage rec { toml ]; - preCheck = '' - export HOME=$(mktemp -d); - ''; - pythonImportsCheck = [ "aws_adfs" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/bambi/default.nix b/pkgs/development/python-modules/bambi/default.nix index 20f267b6d8da34..9403f390971fcf 100644 --- a/pkgs/development/python-modules/bambi/default.nix +++ b/pkgs/development/python-modules/bambi/default.nix @@ -50,10 +50,6 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTests = [ # Tests require network access diff --git a/pkgs/development/python-modules/bc-detect-secrets/default.nix b/pkgs/development/python-modules/bc-detect-secrets/default.nix index ec8170eb2ac137..36f94ad52cc381 100644 --- a/pkgs/development/python-modules/bc-detect-secrets/default.nix +++ b/pkgs/development/python-modules/bc-detect-secrets/default.nix @@ -49,10 +49,6 @@ buildPythonPackage rec { responses ] ++ lib.flatten (builtins.attrValues optional-dependencies); - preCheck = '' - export HOME=$(mktemp -d); - ''; - disabledTests = [ # Tests are failing for various reasons (missing git repo, missing test data, etc.) "test_baseline_filters_out_known_secrets" diff --git a/pkgs/development/python-modules/betterproto/default.nix b/pkgs/development/python-modules/betterproto/default.nix index ab36e1dda56287..c366af19c75f86 100644 --- a/pkgs/development/python-modules/betterproto/default.nix +++ b/pkgs/development/python-modules/betterproto/default.nix @@ -62,7 +62,6 @@ buildPythonPackage rec { # the protoc-gen-python_betterproto script from the package to be on PATH. preCheck = '' (($(ulimit -n) < 1024)) && ulimit -n 1024 - export PATH=$PATH:$out/bin patchShebangs src/betterproto/plugin/main.py ${python.interpreter} -m tests.generate ''; diff --git a/pkgs/development/python-modules/bimmer-connected/default.nix b/pkgs/development/python-modules/bimmer-connected/default.nix index c9dde5e3ede057..90e767015a4b09 100644 --- a/pkgs/development/python-modules/bimmer-connected/default.nix +++ b/pkgs/development/python-modules/bimmer-connected/default.nix @@ -66,7 +66,6 @@ buildPythonPackage rec { preCheck = '' export TZDIR=${tzdata}/${python.sitePackages}/tzdata/zoneinfo - export PATH=$out/bin:$PATH ''; pythonImportsCheck = [ "bimmer_connected" ]; diff --git a/pkgs/development/python-modules/birch/default.nix b/pkgs/development/python-modules/birch/default.nix index 772ab25109e4c1..1c1e8e30d499e1 100644 --- a/pkgs/development/python-modules/birch/default.nix +++ b/pkgs/development/python-modules/birch/default.nix @@ -54,10 +54,6 @@ buildPythonPackage rec { pyyaml ]; - preCheck = '' - export HOME="$(mktemp -d)" - ''; - meta = with lib; { description = "Simple hierarchical configuration for Python packages"; homepage = "https://github.com/shaypal5/birch"; diff --git a/pkgs/development/python-modules/black/default.nix b/pkgs/development/python-modules/black/default.nix index f0cdcf2c2ea422..f4dc9ee92cfac5 100644 --- a/pkgs/development/python-modules/black/default.nix +++ b/pkgs/development/python-modules/black/default.nix @@ -80,8 +80,6 @@ buildPythonPackage rec { preCheck = '' - export PATH="$PATH:$out/bin" - # The top directory /build matches black's DEFAULT_EXCLUDE regex. # Make /build the project root for black tests to avoid excluding files. touch ../.git diff --git a/pkgs/development/python-modules/boiboite-opener-framework/default.nix b/pkgs/development/python-modules/boiboite-opener-framework/default.nix index 79442baf25b445..b216d368cfa4cf 100644 --- a/pkgs/development/python-modules/boiboite-opener-framework/default.nix +++ b/pkgs/development/python-modules/boiboite-opener-framework/default.nix @@ -34,10 +34,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - # Race condition, https://github.com/secdev/scapy/pull/4558 # pythonImportsCheck = [ "bof" ]; diff --git a/pkgs/development/python-modules/cartopy/default.nix b/pkgs/development/python-modules/cartopy/default.nix index 104adf72996898..8704e4fdd24e2c 100644 --- a/pkgs/development/python-modules/cartopy/default.nix +++ b/pkgs/development/python-modules/cartopy/default.nix @@ -74,7 +74,6 @@ buildPythonPackage rec { preCheck = '' export FONTCONFIG_FILE=${fontconfig.out}/etc/fonts/fonts.conf - export HOME=$TMPDIR ''; pytestFlagsArray = [ diff --git a/pkgs/development/python-modules/cassandra-driver/default.nix b/pkgs/development/python-modules/cassandra-driver/default.nix index f6069e3475e0b5..3379f871f44334 100644 --- a/pkgs/development/python-modules/cassandra-driver/default.nix +++ b/pkgs/development/python-modules/cassandra-driver/default.nix @@ -72,7 +72,6 @@ buildPythonPackage rec { # increase tolerance for time-based test substituteInPlace tests/unit/io/utils.py --replace 'delta=.15' 'delta=.3' - export HOME=$(mktemp -d) # cythonize this before we hide the source dir as it references # one of its files cythonize -i tests/unit/cython/types_testhelper.pyx diff --git a/pkgs/development/python-modules/cattrs/default.nix b/pkgs/development/python-modules/cattrs/default.nix index 8772932278e87e..9815cef1efb3fb 100644 --- a/pkgs/development/python-modules/cattrs/default.nix +++ b/pkgs/development/python-modules/cattrs/default.nix @@ -90,10 +90,6 @@ buildPythonPackage rec { --replace-fail "from orjson import loads as orjson_loads" "" ''; - preCheck = '' - export HOME=$(mktemp -d); - ''; - disabledTestPaths = [ # Don't run benchmarking tests "bench" diff --git a/pkgs/development/python-modules/censys/default.nix b/pkgs/development/python-modules/censys/default.nix index 7a3ba89b80419e..797ce1d123d764 100644 --- a/pkgs/development/python-modules/censys/default.nix +++ b/pkgs/development/python-modules/censys/default.nix @@ -61,12 +61,6 @@ buildPythonPackage rec { "rich" ]; - # The tests want to write a configuration file - preCheck = '' - export HOME=$(mktemp -d) - mkdir -p $HOME - ''; - pythonImportsCheck = [ "censys" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/cfn-lint/default.nix b/pkgs/development/python-modules/cfn-lint/default.nix index dad77f086a450b..a7b820e6d57670 100644 --- a/pkgs/development/python-modules/cfn-lint/default.nix +++ b/pkgs/development/python-modules/cfn-lint/default.nix @@ -71,10 +71,6 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.flatten (builtins.attrValues optional-dependencies); - preCheck = '' - export PATH=$out/bin:$PATH - ''; - disabledTests = [ # Requires git directory "test_update_docs" diff --git a/pkgs/development/python-modules/chart-studio/default.nix b/pkgs/development/python-modules/chart-studio/default.nix index b850ed89301e0f..92b73a80da9713 100644 --- a/pkgs/development/python-modules/chart-studio/default.nix +++ b/pkgs/development/python-modules/chart-studio/default.nix @@ -39,10 +39,6 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - # most tests talk to a network service, so only run ones that don't do that. pytestFlagsArray = [ "chart_studio/tests/test_core" diff --git a/pkgs/development/python-modules/chromadb/default.nix b/pkgs/development/python-modules/chromadb/default.nix index 5bb9c0cbffe678..c1da079e91ff92 100644 --- a/pkgs/development/python-modules/chromadb/default.nix +++ b/pkgs/development/python-modules/chromadb/default.nix @@ -142,7 +142,6 @@ buildPythonPackage rec { preCheck = '' (($(ulimit -n) < 1024)) && ulimit -n 1024 - export HOME=$(mktemp -d) ''; disabledTests = [ diff --git a/pkgs/development/python-modules/clarifai/default.nix b/pkgs/development/python-modules/clarifai/default.nix index 124e5cd8d987ed..6ba6e3132c70d5 100644 --- a/pkgs/development/python-modules/clarifai/default.nix +++ b/pkgs/development/python-modules/clarifai/default.nix @@ -58,10 +58,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTests = [ # Test requires network access and API key "test_export_workflow_general" diff --git a/pkgs/development/python-modules/cleanvision/default.nix b/pkgs/development/python-modules/cleanvision/default.nix index ff25048ab8869f..d166ece5e2f11d 100644 --- a/pkgs/development/python-modules/cleanvision/default.nix +++ b/pkgs/development/python-modules/cleanvision/default.nix @@ -58,10 +58,6 @@ buildPythonPackage rec { torchvision ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTests = [ # Requires accessing s3 (online) "test_s3_dataset" diff --git a/pkgs/development/python-modules/click-shell/default.nix b/pkgs/development/python-modules/click-shell/default.nix index 593b035757b450..865da86556de83 100644 --- a/pkgs/development/python-modules/click-shell/default.nix +++ b/pkgs/development/python-modules/click-shell/default.nix @@ -29,8 +29,6 @@ buildPythonPackage rec { pythonImportsCheck = [ "click_shell" ]; - preCheck = "export HOME=$(mktemp -d)"; - meta = with lib; { description = "Extension to click that easily turns your click app into a shell utility"; longDescription = '' diff --git a/pkgs/development/python-modules/cltk/default.nix b/pkgs/development/python-modules/cltk/default.nix index 7635ace28648ea..1252b67d2a8d05 100644 --- a/pkgs/development/python-modules/cltk/default.nix +++ b/pkgs/development/python-modules/cltk/default.nix @@ -75,10 +75,6 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - # Most of tests fail as they require local files to be present and also internet access doCheck = false; diff --git a/pkgs/development/python-modules/cmdstanpy/default.nix b/pkgs/development/python-modules/cmdstanpy/default.nix index 6fcf618bafef44..6767c91c3f381d 100644 --- a/pkgs/development/python-modules/cmdstanpy/default.nix +++ b/pkgs/development/python-modules/cmdstanpy/default.nix @@ -55,10 +55,6 @@ buildPythonPackage rec { pythonRelaxDeps = [ "stanio" ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.all; disabledTestPaths = [ diff --git a/pkgs/development/python-modules/cocotb-bus/default.nix b/pkgs/development/python-modules/cocotb-bus/default.nix index 6e10559b351095..cee1d1c9feeebb 100644 --- a/pkgs/development/python-modules/cocotb-bus/default.nix +++ b/pkgs/development/python-modules/cocotb-bus/default.nix @@ -22,11 +22,6 @@ buildPythonPackage rec { # tests require cocotb, disable for now to avoid circular dependency doCheck = false; - # checkPhase = '' - # export PATH=$out/bin:$PATH - # make test - # ''; - meta = with lib; { description = "Pre-packaged testbenching tools and reusable bus interfaces for cocotb"; homepage = "https://github.com/cocotb/cocotb-bus"; diff --git a/pkgs/development/python-modules/cocotb/default.nix b/pkgs/development/python-modules/cocotb/default.nix index 028cf7238e6f88..d387d52b9fea0c 100644 --- a/pkgs/development/python-modules/cocotb/default.nix +++ b/pkgs/development/python-modules/cocotb/default.nix @@ -62,7 +62,6 @@ buildPythonPackage rec { ]; preCheck = '' - export PATH=$out/bin:$PATH mv cocotb cocotb.hidden ''; diff --git a/pkgs/development/python-modules/colorcet/default.nix b/pkgs/development/python-modules/colorcet/default.nix index b335897207fcf0..bc690eac15af90 100644 --- a/pkgs/development/python-modules/colorcet/default.nix +++ b/pkgs/development/python-modules/colorcet/default.nix @@ -36,7 +36,6 @@ buildPythonPackage rec { ]; preCheck = '' - export HOME=$(mktemp -d) mkdir -p $HOME/.config/matplotlib echo "backend: ps" > $HOME/.config/matplotlib/matplotlibrc ln -s $HOME/.config/matplotlib $HOME/.matplotlib diff --git a/pkgs/development/python-modules/coloredlogs/default.nix b/pkgs/development/python-modules/coloredlogs/default.nix index c3852dc4ad070b..d7d619ca79b728 100644 --- a/pkgs/development/python-modules/coloredlogs/default.nix +++ b/pkgs/development/python-modules/coloredlogs/default.nix @@ -50,11 +50,6 @@ buildPythonPackage rec { # https://github.com/xolox/python-capturer/issues/10 is released. doCheck = !stdenv.hostPlatform.isDarwin; - preCheck = '' - # Required for the CLI test - PATH=$PATH:$out/bin - ''; - disabledTests = [ "test_plain_text_output_format" "test_auto_install" diff --git a/pkgs/development/python-modules/compressai/default.nix b/pkgs/development/python-modules/compressai/default.nix index 15a0f77de90024..2e99a8d80441e1 100644 --- a/pkgs/development/python-modules/compressai/default.nix +++ b/pkgs/development/python-modules/compressai/default.nix @@ -70,10 +70,8 @@ buildPythonPackage rec { ]; preCheck = '' - # We have to delete the source because otherwise it is used intead the installed package. + # We have to delete the source because otherwise it is used instead the installed package. rm -rf compressai - - export HOME=$(mktemp -d) ''; nativeCheckInputs = [ diff --git a/pkgs/development/python-modules/correctionlib/default.nix b/pkgs/development/python-modules/correctionlib/default.nix index e3d52128ab2dd4..1685446300f90a 100644 --- a/pkgs/development/python-modules/correctionlib/default.nix +++ b/pkgs/development/python-modules/correctionlib/default.nix @@ -64,11 +64,6 @@ buildPythonPackage rec { pythonImportsCheck = [ "correctionlib" ]; - # One test requires running the produced `correctionlib` binary - preCheck = '' - export PATH=$out/bin:$PATH - ''; - meta = { description = "Provides a well-structured JSON data format for a wide variety of ad-hoc correction factors encountered in a typical HEP analysis"; mainProgram = "correction"; diff --git a/pkgs/development/python-modules/coveralls/default.nix b/pkgs/development/python-modules/coveralls/default.nix index c59dd631bf0891..b56fc4bebd7fe6 100644 --- a/pkgs/development/python-modules/coveralls/default.nix +++ b/pkgs/development/python-modules/coveralls/default.nix @@ -45,10 +45,6 @@ buildPythonPackage rec { git ]; - preCheck = '' - export PATH=${coverage}/bin:$PATH - ''; - disabledTests = [ # requires .git in checkout "test_git" diff --git a/pkgs/development/python-modules/craft-application/default.nix b/pkgs/development/python-modules/craft-application/default.nix index cc3574d7e3d1ee..09b06a2cabd9df 100644 --- a/pkgs/development/python-modules/craft-application/default.nix +++ b/pkgs/development/python-modules/craft-application/default.nix @@ -81,8 +81,6 @@ buildPythonPackage rec { ]; preCheck = '' - export HOME=$(mktemp -d) - # Tests require access to /etc/os-release, which isn't accessible in # the test environment, so create a fake file, and modify the code # to look for it. diff --git a/pkgs/development/python-modules/craft-parts/default.nix b/pkgs/development/python-modules/craft-parts/default.nix index bececc2a50de46..3761fcade6a53f 100644 --- a/pkgs/development/python-modules/craft-parts/default.nix +++ b/pkgs/development/python-modules/craft-parts/default.nix @@ -70,10 +70,6 @@ buildPythonPackage rec { pytestFlagsArray = [ "tests/unit" ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTests = [ # Relies upon paths not present in Nix (like /bin/bash) "test_run_builtin_build" diff --git a/pkgs/development/python-modules/cwcwidth/default.nix b/pkgs/development/python-modules/cwcwidth/default.nix index 75b8b091c39b47..d15273177e54ac 100644 --- a/pkgs/development/python-modules/cwcwidth/default.nix +++ b/pkgs/development/python-modules/cwcwidth/default.nix @@ -26,7 +26,6 @@ buildPythonPackage rec { preCheck = '' # Hack needed to make pytest + cython work # https://github.com/NixOS/nixpkgs/pull/82410#issuecomment-827186298 - export HOME=$(mktemp -d) cp -r $TMP/$sourceRoot/tests $HOME pushd $HOME diff --git a/pkgs/development/python-modules/cysignals/default.nix b/pkgs/development/python-modules/cysignals/default.nix index 9e90eaf38f19da..ffaf34a34f1048 100644 --- a/pkgs/development/python-modules/cysignals/default.nix +++ b/pkgs/development/python-modules/cysignals/default.nix @@ -31,11 +31,6 @@ buildPythonPackage rec { doCheck = false; checkTarget = "check-install"; - preCheck = '' - # Make sure cysignals-CSI is in PATH - export PATH="$out/bin:$PATH" - ''; - propagatedBuildInputs = [ cython ] ++ lib.optionals pariSupport [ diff --git a/pkgs/development/python-modules/dask-yarn/default.nix b/pkgs/development/python-modules/dask-yarn/default.nix index a7ba751c3b8692..ab3b47b1d7da7f 100644 --- a/pkgs/development/python-modules/dask-yarn/default.nix +++ b/pkgs/development/python-modules/dask-yarn/default.nix @@ -54,10 +54,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - preCheck = '' - export HOME=$TMPDIR - ''; - pythonImportsCheck = [ "dask_yarn" ]; disabledTests = [ diff --git a/pkgs/development/python-modules/datalad-gooey/default.nix b/pkgs/development/python-modules/datalad-gooey/default.nix index fcc3fa3763302a..9883c35c81b0ca 100644 --- a/pkgs/development/python-modules/datalad-gooey/default.nix +++ b/pkgs/development/python-modules/datalad-gooey/default.nix @@ -41,10 +41,6 @@ buildPythonPackage { pythonRemoveDeps = [ "applescript" ]; - preCheck = '' - export HOME=$TMPDIR - ''; - nativeCheckInputs = [ pytestCheckHook pytest-qt diff --git a/pkgs/development/python-modules/datalad-next/default.nix b/pkgs/development/python-modules/datalad-next/default.nix index 19b651db3ac616..bffb3c45e46644 100644 --- a/pkgs/development/python-modules/datalad-next/default.nix +++ b/pkgs/development/python-modules/datalad-next/default.nix @@ -50,9 +50,6 @@ buildPythonPackage rec { more-itertools ]; - preCheck = '' - export HOME=$TMPDIR - ''; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/datalad/default.nix b/pkgs/development/python-modules/datalad/default.nix index 405a6ea5b3c01f..8a48a4325f39cb 100644 --- a/pkgs/development/python-modules/datalad/default.nix +++ b/pkgs/development/python-modules/datalad/default.nix @@ -125,10 +125,6 @@ buildPythonPackage rec { wrapProgram $out/bin/datalad --prefix PYTHONPATH : "$PYTHONPATH" ''; - preCheck = '' - export HOME=$TMPDIR - ''; - # tests depend on apps in $PATH which only will get installed after the test disabledTests = [ # No such file or directory: 'datalad' diff --git a/pkgs/development/python-modules/datashader/default.nix b/pkgs/development/python-modules/datashader/default.nix index 7940e62cb371b6..94e2085ebb0a71 100644 --- a/pkgs/development/python-modules/datashader/default.nix +++ b/pkgs/development/python-modules/datashader/default.nix @@ -69,10 +69,6 @@ buildPythonPackage rec { --replace "xarray >=0.9.6" "xarray" ''; - preCheck = '' - export HOME=$TMPDIR - ''; - pytestFlagsArray = [ "datashader" ]; disabledTests = [ diff --git a/pkgs/development/python-modules/detect-secrets/default.nix b/pkgs/development/python-modules/detect-secrets/default.nix index 820e204e118a4e..16ba8a897b8a42 100644 --- a/pkgs/development/python-modules/detect-secrets/default.nix +++ b/pkgs/development/python-modules/detect-secrets/default.nix @@ -44,10 +44,6 @@ buildPythonPackage rec { pkgs.gitMinimal ]; - preCheck = '' - export HOME=$(mktemp -d); - ''; - disabledTests = [ # Tests are failing for various reasons. Needs to be adjusted with the next update "test_basic" diff --git a/pkgs/development/python-modules/dfdiskcache/default.nix b/pkgs/development/python-modules/dfdiskcache/default.nix index 60081809002457..50fa4448ef1207 100644 --- a/pkgs/development/python-modules/dfdiskcache/default.nix +++ b/pkgs/development/python-modules/dfdiskcache/default.nix @@ -29,11 +29,6 @@ buildPythonPackage rec { typing-extensions ]; - preCheck = '' - # Needed for Permission denied: '/homeless-shelter' - export HOME=$(mktemp -d) - ''; - nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "dfdiskcache" ]; diff --git a/pkgs/development/python-modules/duecredit/default.nix b/pkgs/development/python-modules/duecredit/default.nix index 5aa4505b919615..a710b511aff27d 100644 --- a/pkgs/development/python-modules/duecredit/default.nix +++ b/pkgs/development/python-modules/duecredit/default.nix @@ -42,10 +42,6 @@ buildPythonPackage rec { ]; disabledTests = [ "test_import_doi" ]; # tries to access network - preCheck = '' - export HOME=$(mktemp -d) - ''; - pythonImportsCheck = [ "duecredit" ]; meta = { diff --git a/pkgs/development/python-modules/dufte/default.nix b/pkgs/development/python-modules/dufte/default.nix index 53ef911b8814e5..4371f490d55e8c 100644 --- a/pkgs/development/python-modules/dufte/default.nix +++ b/pkgs/development/python-modules/dufte/default.nix @@ -31,7 +31,6 @@ buildPythonPackage rec { ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; preCheck = '' - export HOME=$(mktemp -d) mkdir -p $HOME/.config/matplotlib echo "backend: ps" > $HOME/.config/matplotlib/matplotlibrc ln -s $HOME/.config/matplotlib $HOME/.matplotlib diff --git a/pkgs/development/python-modules/dunamai/default.nix b/pkgs/development/python-modules/dunamai/default.nix index e565ae8b85d361..46520f081aaedc 100644 --- a/pkgs/development/python-modules/dunamai/default.nix +++ b/pkgs/development/python-modules/dunamai/default.nix @@ -28,11 +28,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ packaging ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; - # needs to be able to run dunami from PATH preCheck = '' - export PATH=$PATH:$out/bin - export HOME=$(mktemp -d) - git config --global user.email "nobody@example.com" git config --global user.name "Nobody" ''; diff --git a/pkgs/development/python-modules/einops/default.nix b/pkgs/development/python-modules/einops/default.nix index 0b1fd24a3ac36a..bd7f1c9ab86d50 100644 --- a/pkgs/development/python-modules/einops/default.nix +++ b/pkgs/development/python-modules/einops/default.nix @@ -49,10 +49,6 @@ buildPythonPackage rec { env.EINOPS_TEST_BACKENDS = "numpy"; - preCheck = '' - export HOME=$(mktemp -d); - ''; - pythonImportsCheck = [ "einops" ]; disabledTests = [ diff --git a/pkgs/development/python-modules/eliot/default.nix b/pkgs/development/python-modules/eliot/default.nix index eae5b60184cb2e..04f9b1e07ec3e2 100644 --- a/pkgs/development/python-modules/eliot/default.nix +++ b/pkgs/development/python-modules/eliot/default.nix @@ -69,11 +69,6 @@ buildPythonPackage rec { pythonImportsCheck = [ "eliot" ]; - # Tests run eliot-prettyprint in out/bin. - preCheck = '' - export PATH=$out/bin:$PATH - ''; - meta = { homepage = "https://eliot.readthedocs.io"; description = "Logging library that tells you why it happened"; diff --git a/pkgs/development/python-modules/evosax/default.nix b/pkgs/development/python-modules/evosax/default.nix index 08771810c948c8..eab4e8288cd488 100644 --- a/pkgs/development/python-modules/evosax/default.nix +++ b/pkgs/development/python-modules/evosax/default.nix @@ -54,10 +54,6 @@ buildPythonPackage rec { pythonImportsCheck = [ "evosax" ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - nativeCheckInputs = [ # brax # gymnax diff --git a/pkgs/development/python-modules/faster-whisper/default.nix b/pkgs/development/python-modules/faster-whisper/default.nix index 42ae02fea649ce..d1348a55f539b8 100644 --- a/pkgs/development/python-modules/faster-whisper/default.nix +++ b/pkgs/development/python-modules/faster-whisper/default.nix @@ -54,10 +54,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - preCheck = '' - export HOME=$TMPDIR - ''; - meta = with lib; { changelog = "https://github.com/SYSTRAN/faster-whisper/releases/tag/v${version}"; description = "Faster Whisper transcription with CTranslate2"; diff --git a/pkgs/development/python-modules/fissix/default.nix b/pkgs/development/python-modules/fissix/default.nix index d600d8410795fe..94de59bfee302f 100644 --- a/pkgs/development/python-modules/fissix/default.nix +++ b/pkgs/development/python-modules/fissix/default.nix @@ -29,10 +29,6 @@ buildPythonPackage { nativeCheckInputs = [ pytestCheckHook ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - pythonImportsCheck = [ "fissix" ]; meta = { diff --git a/pkgs/development/python-modules/flickrapi/default.nix b/pkgs/development/python-modules/flickrapi/default.nix index 9bbd11bd65b6b5..048ee75683cb28 100644 --- a/pkgs/development/python-modules/flickrapi/default.nix +++ b/pkgs/development/python-modules/flickrapi/default.nix @@ -46,10 +46,6 @@ buildPythonPackage rec { responses ]; - preCheck = '' - export HOME=$(mktemp -d); - ''; - disabledTests = [ # Tests require network access "test_default_format" diff --git a/pkgs/development/python-modules/fontbakery/default.nix b/pkgs/development/python-modules/fontbakery/default.nix index 5d7a30fdfa5052..889b871af8aafb 100644 --- a/pkgs/development/python-modules/fontbakery/default.nix +++ b/pkgs/development/python-modules/fontbakery/default.nix @@ -118,8 +118,6 @@ buildPythonPackage rec { ]; preCheck = '' - # Let the tests invoke 'fontbakery' command. - export PATH="$out/bin:$PATH" # font-v tests assume they are running from a git checkout, although they # don't care which one. Create a dummy git repo to satisfy the tests: git init -b main diff --git a/pkgs/development/python-modules/fonttools/default.nix b/pkgs/development/python-modules/fonttools/default.nix index 555c9cb9bf7b57..08bb13bad31c02 100644 --- a/pkgs/development/python-modules/fonttools/default.nix +++ b/pkgs/development/python-modules/fonttools/default.nix @@ -90,11 +90,6 @@ buildPythonPackage rec { pythonImportsCheck = [ "fontTools" ]; - preCheck = '' - # tests want to execute the "fonttools" executable from $PATH - export PATH="$out/bin:$PATH" - ''; - # Timestamp tests have timing issues probably related # to our file timestamp normalization disabledTests = [ diff --git a/pkgs/development/python-modules/fsspec/default.nix b/pkgs/development/python-modules/fsspec/default.nix index 8f6e77800b565e..ce3122b1f3e749 100644 --- a/pkgs/development/python-modules/fsspec/default.nix +++ b/pkgs/development/python-modules/fsspec/default.nix @@ -92,10 +92,6 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - __darwinAllowLocalNetworking = true; disabledTests = diff --git a/pkgs/development/python-modules/ftfy/default.nix b/pkgs/development/python-modules/ftfy/default.nix index ec5aca9062a628..67814bf84f40e5 100644 --- a/pkgs/development/python-modules/ftfy/default.nix +++ b/pkgs/development/python-modules/ftfy/default.nix @@ -40,10 +40,6 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - export PATH=$out/bin:$PATH - ''; - meta = with lib; { changelog = "https://github.com/rspeer/python-ftfy/blob/${src.rev}/CHANGELOG.md"; description = "Given Unicode text, make its representation consistent and possibly less broken"; diff --git a/pkgs/development/python-modules/geodatasets/default.nix b/pkgs/development/python-modules/geodatasets/default.nix index d056d10fe05717..1703d3d777395a 100644 --- a/pkgs/development/python-modules/geodatasets/default.nix +++ b/pkgs/development/python-modules/geodatasets/default.nix @@ -34,10 +34,6 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - export HOME=$TMPDIR - ''; - pytestFlagsArray = [ # disable tests which require network access "-m 'not request'" diff --git a/pkgs/development/python-modules/geopandas/default.nix b/pkgs/development/python-modules/geopandas/default.nix index 4b8f06c50b08cf..2044c42798dfa0 100644 --- a/pkgs/development/python-modules/geopandas/default.nix +++ b/pkgs/development/python-modules/geopandas/default.nix @@ -77,10 +77,6 @@ buildPythonPackage rec { doCheck = !stdenv.hostPlatform.isDarwin; - preCheck = '' - export HOME=$(mktemp -d); - ''; - disabledTests = [ # Requires network access "test_read_file_url" diff --git a/pkgs/development/python-modules/glean-parser/default.nix b/pkgs/development/python-modules/glean-parser/default.nix index 837c2d5d786bfe..a040a0941d9d79 100644 --- a/pkgs/development/python-modules/glean-parser/default.nix +++ b/pkgs/development/python-modules/glean-parser/default.nix @@ -45,10 +45,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - preCheck = '' - export HOME=$TMPDIR - ''; - disabledTests = [ # Network access "test_validate_ping" diff --git a/pkgs/development/python-modules/globus-sdk/default.nix b/pkgs/development/python-modules/globus-sdk/default.nix index 7e1cc1c7f737a9..eeefe67d82106c 100644 --- a/pkgs/development/python-modules/globus-sdk/default.nix +++ b/pkgs/development/python-modules/globus-sdk/default.nix @@ -29,10 +29,6 @@ buildPythonPackage rec { build-system = [ setuptools ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - dependencies = [ cryptography requests diff --git a/pkgs/development/python-modules/glom/default.nix b/pkgs/development/python-modules/glom/default.nix index 366f75e3bfedcb..980692c648995c 100644 --- a/pkgs/development/python-modules/glom/default.nix +++ b/pkgs/development/python-modules/glom/default.nix @@ -39,11 +39,6 @@ buildPythonPackage rec { pyyaml ]; - preCheck = '' - # test_cli.py checks the output of running "glom" - export PATH=$out/bin:$PATH - ''; - disabledTests = [ # Test is outdated (was made for PyYAML 3.x) diff --git a/pkgs/development/python-modules/glymur/default.nix b/pkgs/development/python-modules/glymur/default.nix index b9a37779603cf6..8e87a37b72432e 100644 --- a/pkgs/development/python-modules/glymur/default.nix +++ b/pkgs/development/python-modules/glymur/default.nix @@ -56,10 +56,6 @@ buildPythonPackage rec { scikit-image ]; - preCheck = '' - export PATH="$out/bin:$PATH" - ''; - disabledTestPaths = [ # this test involves glymur's different ways of finding the openjpeg path on # fsh systems by reading an .rc file and such, and is obviated by the patch diff --git a/pkgs/development/python-modules/glyphsets/default.nix b/pkgs/development/python-modules/glyphsets/default.nix index e95a1a3ecb8387..8ed9a30b2ed98a 100644 --- a/pkgs/development/python-modules/glyphsets/default.nix +++ b/pkgs/development/python-modules/glyphsets/default.nix @@ -51,10 +51,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - preCheck = '' - export PATH="$out/bin:$PATH" - ''; - disabledTests = [ # This "test" just tries to connect to PyPI and look for newer releases. Not needed. "test_dependencies" diff --git a/pkgs/development/python-modules/gplaycli/default.nix b/pkgs/development/python-modules/gplaycli/default.nix index 9303ef9d1450e3..e8ce8219821129 100644 --- a/pkgs/development/python-modules/gplaycli/default.nix +++ b/pkgs/development/python-modules/gplaycli/default.nix @@ -47,10 +47,6 @@ buildPythonPackage rec { pythonImportsCheck = [ "gplaycli" ]; - preCheck = '' - export PATH="$PATH:$out/bin"; - ''; - disabledTests = [ "test_alter_token" "test_another_device" diff --git a/pkgs/development/python-modules/gql/default.nix b/pkgs/development/python-modules/gql/default.nix index f6067dab3b6da5..e80558e67dd733 100644 --- a/pkgs/development/python-modules/gql/default.nix +++ b/pkgs/development/python-modules/gql/default.nix @@ -84,10 +84,6 @@ buildPythonPackage rec { botocore = [ botocore ]; }; - preCheck = '' - export PATH=$out/bin:$PATH - ''; - pytestFlagsArray = [ "--asyncio-mode=auto" "-m 'not online'" diff --git a/pkgs/development/python-modules/gto/default.nix b/pkgs/development/python-modules/gto/default.nix index 1ad9a8fbc4c661..005c06a18b5c94 100644 --- a/pkgs/development/python-modules/gto/default.nix +++ b/pkgs/development/python-modules/gto/default.nix @@ -64,8 +64,6 @@ buildPythonPackage rec { ]; preCheck = '' - export HOME=$(mktemp -d) - git config --global user.email "nobody@example.com" git config --global user.name "Nobody" ''; diff --git a/pkgs/development/python-modules/guidance/default.nix b/pkgs/development/python-modules/guidance/default.nix index cb153aab3b64d2..4360de5830c316 100644 --- a/pkgs/development/python-modules/guidance/default.nix +++ b/pkgs/development/python-modules/guidance/default.nix @@ -89,10 +89,6 @@ buildPythonPackage rec { "tests/library/test_gen.py" ]; - preCheck = '' - export HOME=$TMPDIR - ''; - pythonImportsCheck = [ "guidance" ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/habitipy/default.nix b/pkgs/development/python-modules/habitipy/default.nix index 44548561b349fa..3837a899158e2f 100644 --- a/pkgs/development/python-modules/habitipy/default.nix +++ b/pkgs/development/python-modules/habitipy/default.nix @@ -36,10 +36,6 @@ buildPythonPackage rec { responses ]; - preCheck = '' - export HOME=$TMPDIR - ''; - disabledTests = [ # network access "test_content_cache" diff --git a/pkgs/development/python-modules/hatchling/default.nix b/pkgs/development/python-modules/hatchling/default.nix index 19daf7262e1885..ea5379f8fa48c4 100644 --- a/pkgs/development/python-modules/hatchling/default.nix +++ b/pkgs/development/python-modules/hatchling/default.nix @@ -54,10 +54,6 @@ buildPythonPackage rec { virtualenv ]; - preCheck = '' - export HOME=$TMPDIR - ''; - checkPhase = '' runHook preCheck ${python.interpreter} tests/downstream/integrate.py diff --git a/pkgs/development/python-modules/heudiconv/default.nix b/pkgs/development/python-modules/heudiconv/default.nix index 6d19a460fde1c7..2ed262631615e9 100644 --- a/pkgs/development/python-modules/heudiconv/default.nix +++ b/pkgs/development/python-modules/heudiconv/default.nix @@ -55,10 +55,6 @@ buildPythonPackage rec { git ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - pythonImportsCheck = [ "heudiconv" ]; disabledTests = [ diff --git a/pkgs/development/python-modules/hledger-utils/default.nix b/pkgs/development/python-modules/hledger-utils/default.nix index 0dd811f5a7be54..c12f79525d0a2d 100644 --- a/pkgs/development/python-modules/hledger-utils/default.nix +++ b/pkgs/development/python-modules/hledger-utils/default.nix @@ -51,10 +51,6 @@ buildPythonPackage rec { perl ]; - preCheck = '' - export PATH=$out/bin:$PATH - ''; - meta = with lib; { description = "Utilities extending hledger"; homepage = "https://gitlab.com/nobodyinperson/hledger-utils"; diff --git a/pkgs/development/python-modules/howdoi/default.nix b/pkgs/development/python-modules/howdoi/default.nix index 4a716b8b037b2a..52d889ca302b3f 100644 --- a/pkgs/development/python-modules/howdoi/default.nix +++ b/pkgs/development/python-modules/howdoi/default.nix @@ -59,13 +59,9 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTests = [ "test_colorize" - # Tests are flaky, OSError: [Errno 24] Too many open files happpens + # Tests are flaky, OSError: [Errno 24] Too many open files happens "test_answer_links_using_l_option" "test_answers_bing" "test_answers" diff --git a/pkgs/development/python-modules/htseq/default.nix b/pkgs/development/python-modules/htseq/default.nix index fc965bbae573d1..16c1c4ca87a550 100644 --- a/pkgs/development/python-modules/htseq/default.nix +++ b/pkgs/development/python-modules/htseq/default.nix @@ -51,7 +51,6 @@ buildPythonPackage rec { preCheck = '' rm -r src HTSeq - export PATH=$out/bin:$PATH ''; passthru.updateScript = nix-update-script { diff --git a/pkgs/development/python-modules/hy/default.nix b/pkgs/development/python-modules/hy/default.nix index c49c8d6ca5e43f..e93258ededfb6c 100644 --- a/pkgs/development/python-modules/hy/default.nix +++ b/pkgs/development/python-modules/hy/default.nix @@ -35,11 +35,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - preCheck = '' - # For test_bin_hy - export PATH="$out/bin:$PATH" - ''; - pythonImportsCheck = [ "hy" ]; passthru = { diff --git a/pkgs/development/python-modules/imagededup/default.nix b/pkgs/development/python-modules/imagededup/default.nix index e6152a3d586aab..858d870f698a75 100644 --- a/pkgs/development/python-modules/imagededup/default.nix +++ b/pkgs/development/python-modules/imagededup/default.nix @@ -66,8 +66,6 @@ buildPythonPackage rec { ]; preCheck = '' - export HOME=$(mktemp -d) - # Checks with CNN are preloaded to avoid downloads in the check phase mkdir -p $HOME/.cache/torch/hub/checkpoints/ ln -s ${MobileNetV3} $HOME/.cache/torch/hub/checkpoints/${MobileNetV3.name} diff --git a/pkgs/development/python-modules/imbalanced-learn/default.nix b/pkgs/development/python-modules/imbalanced-learn/default.nix index 09ebc40b7abb62..bce982aaa7347b 100644 --- a/pkgs/development/python-modules/imbalanced-learn/default.nix +++ b/pkgs/development/python-modules/imbalanced-learn/default.nix @@ -52,10 +52,6 @@ buildPythonPackage rec { pandas ]; - preCheck = '' - export HOME=$TMPDIR - ''; - disabledTestPaths = [ # require tensorflow and keras, but we don't want to # add them to nativeCheckInputs just for this tests diff --git a/pkgs/development/python-modules/intake/default.nix b/pkgs/development/python-modules/intake/default.nix index 1422752b323087..d6a665c29b32b8 100644 --- a/pkgs/development/python-modules/intake/default.nix +++ b/pkgs/development/python-modules/intake/default.nix @@ -84,11 +84,6 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - preCheck = '' - export HOME=$(mktemp -d); - export PATH="$PATH:$out/bin"; - ''; - disabledTestPaths = [ # Missing plusins "intake/catalog/tests/test_alias.py" diff --git a/pkgs/development/python-modules/ipdb/default.nix b/pkgs/development/python-modules/ipdb/default.nix index 9d140f2bebfa24..611d8e728ab22c 100644 --- a/pkgs/development/python-modules/ipdb/default.nix +++ b/pkgs/development/python-modules/ipdb/default.nix @@ -40,10 +40,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTestPaths = [ # OSError: pytest: reading from stdin while output is captured! Consider using `-s`. diff --git a/pkgs/development/python-modules/ipykernel/tests.nix b/pkgs/development/python-modules/ipykernel/tests.nix index 89ac0be2d3d607..16337b76fe0962 100644 --- a/pkgs/development/python-modules/ipykernel/tests.nix +++ b/pkgs/development/python-modules/ipykernel/tests.nix @@ -30,13 +30,9 @@ buildPythonPackage { pytest-timeout ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTests = [ - # The follwing three tests fail for unclear reasons. + # The following three tests fail for unclear reasons. # pytest.PytestUnhandledThreadExceptionWarning: Exception in thread Thread-8 "test_asyncio_interrupt" diff --git a/pkgs/development/python-modules/isort/default.nix b/pkgs/development/python-modules/isort/default.nix index 32ff65a3914480..d0fd9a16d6363f 100644 --- a/pkgs/development/python-modules/isort/default.nix +++ b/pkgs/development/python-modules/isort/default.nix @@ -44,11 +44,6 @@ buildPythonPackage rec { ) ''; - preCheck = '' - HOME=$TMPDIR - export PATH=$PATH:$out/bin - ''; - pytestFlagsArray = [ "--ignore=tests/benchmark/" # requires pytest-benchmark "--ignore=tests/integration/" # pulls in 10 other packages diff --git a/pkgs/development/python-modules/jedi/default.nix b/pkgs/development/python-modules/jedi/default.nix index 8e31fe41c78056..a5efbe5f5c4580 100644 --- a/pkgs/development/python-modules/jedi/default.nix +++ b/pkgs/development/python-modules/jedi/default.nix @@ -40,10 +40,6 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - export HOME=$TMPDIR - ''; - disabledTests = [ # sensitive to platform, causes false negatives on darwin diff --git a/pkgs/development/python-modules/jupysql/default.nix b/pkgs/development/python-modules/jupysql/default.nix index 56326d52d8378a..0f9763d143a7c6 100644 --- a/pkgs/development/python-modules/jupysql/default.nix +++ b/pkgs/development/python-modules/jupysql/default.nix @@ -122,11 +122,6 @@ buildPythonPackage rec { "src/tests/test_widget.py" ]; - preCheck = '' - # tests need to write temp data - export HOME=$(mktemp -d) - ''; - pythonImportsCheck = [ "sql" ]; meta = { diff --git a/pkgs/development/python-modules/jupyter-book/default.nix b/pkgs/development/python-modules/jupyter-book/default.nix index c787e16c5cdff0..b6ad76b56c1d49 100644 --- a/pkgs/development/python-modules/jupyter-book/default.nix +++ b/pkgs/development/python-modules/jupyter-book/default.nix @@ -89,10 +89,6 @@ buildPythonPackage rec { texsoup ]; - preCheck = '' - export HOME=$TMPDIR - ''; - disabledTests = [ # touch the network "test_create_from_cookiecutter" diff --git a/pkgs/development/python-modules/jupyter-console/default.nix b/pkgs/development/python-modules/jupyter-console/default.nix index e699d4d2518722..dd98eef0e7353f 100644 --- a/pkgs/development/python-modules/jupyter-console/default.nix +++ b/pkgs/development/python-modules/jupyter-console/default.nix @@ -66,10 +66,6 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - export HOME=$TMPDIR - ''; - disabledTests = [ # Flaky: pexpect.exceptions.TIMEOUT: Timeout exceeded "test_console_starts" diff --git a/pkgs/development/python-modules/jupyter-core/default.nix b/pkgs/development/python-modules/jupyter-core/default.nix index 22453d078491f9..b4bc6c071a63a0 100644 --- a/pkgs/development/python-modules/jupyter-core/default.nix +++ b/pkgs/development/python-modules/jupyter-core/default.nix @@ -41,10 +41,6 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - export HOME=$TMPDIR - ''; - pytestFlagsArray = [ # suppress pytest.PytestUnraisableExceptionWarning: Exception ignored in: "-W ignore::pytest.PytestUnraisableExceptionWarning" diff --git a/pkgs/development/python-modules/jupyter-events/default.nix b/pkgs/development/python-modules/jupyter-events/default.nix index 6a5431fd1abf98..12478ce30d28ed 100644 --- a/pkgs/development/python-modules/jupyter-events/default.nix +++ b/pkgs/development/python-modules/jupyter-events/default.nix @@ -61,10 +61,6 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.flatten (builtins.attrValues optional-dependencies); - preCheck = '' - export PATH="$out/bin:$PATH" - ''; - pythonImportsCheck = [ "jupyter_events" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/jupyter-packaging/default.nix b/pkgs/development/python-modules/jupyter-packaging/default.nix index 622e923d1c2757..8ae9763b2369e5 100644 --- a/pkgs/development/python-modules/jupyter-packaging/default.nix +++ b/pkgs/development/python-modules/jupyter-packaging/default.nix @@ -49,10 +49,6 @@ buildPythonPackage rec { pytestFlagsArray = [ "-Wignore::DeprecationWarning" ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTests = [ # disable tests depending on network connection "test_develop" diff --git a/pkgs/development/python-modules/jupyter-server/default.nix b/pkgs/development/python-modules/jupyter-server/default.nix index 071b3707225ba0..134d006f452bd3 100644 --- a/pkgs/development/python-modules/jupyter-server/default.nix +++ b/pkgs/development/python-modules/jupyter-server/default.nix @@ -89,11 +89,6 @@ buildPythonPackage rec { "ignore::DeprecationWarning" ]; - preCheck = '' - export HOME=$(mktemp -d) - export PATH=$out/bin:$PATH - ''; - disabledTests = [ "test_cull_idle" diff --git a/pkgs/development/python-modules/jupyter-sphinx/default.nix b/pkgs/development/python-modules/jupyter-sphinx/default.nix index 89fc4fe88bf538..eb3e3c73b04508 100644 --- a/pkgs/development/python-modules/jupyter-sphinx/default.nix +++ b/pkgs/development/python-modules/jupyter-sphinx/default.nix @@ -49,10 +49,6 @@ buildPythonPackage rec { "test_builder_priority" ]; - preCheck = '' - export HOME=$TMPDIR - ''; - __darwinAllowLocalNetworking = true; meta = with lib; { diff --git a/pkgs/development/python-modules/jupyterhub/default.nix b/pkgs/development/python-modules/jupyterhub/default.nix index 5fb9cc969b59ba..8c1c64581a250b 100644 --- a/pkgs/development/python-modules/jupyterhub/default.nix +++ b/pkgs/development/python-modules/jupyterhub/default.nix @@ -127,10 +127,6 @@ buildPythonPackage rec { virtualenv ]; - preCheck = '' - export PATH=$out/bin:$PATH; - ''; - disabledTests = [ # Tries to install older versions through pip "test_upgrade" diff --git a/pkgs/development/python-modules/jupyterlab-git/default.nix b/pkgs/development/python-modules/jupyterlab-git/default.nix index 1ab347130ae1ba..8502739a423258 100644 --- a/pkgs/development/python-modules/jupyterlab-git/default.nix +++ b/pkgs/development/python-modules/jupyterlab-git/default.nix @@ -56,10 +56,6 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - export HOME=$TMPDIR - ''; - disabledTestPaths = [ "jupyterlab_git/tests/test_handlers.py" # PyPI doesn't ship all required files for the tests diff --git a/pkgs/development/python-modules/jupyterlab-server/default.nix b/pkgs/development/python-modules/jupyterlab-server/default.nix index 357b2b29259508..71342e72de8a4a 100644 --- a/pkgs/development/python-modules/jupyterlab-server/default.nix +++ b/pkgs/development/python-modules/jupyterlab-server/default.nix @@ -63,10 +63,6 @@ buildPythonPackage rec { strict-rfc3339 ] ++ optional-dependencies.openapi; - preCheck = '' - export HOME=$(mktemp -d) - ''; - pytestFlagsArray = [ "-W" "ignore::DeprecationWarning" diff --git a/pkgs/development/python-modules/jupytext/default.nix b/pkgs/development/python-modules/jupytext/default.nix index df0fc676633f3c..f75cd338ff6238 100644 --- a/pkgs/development/python-modules/jupytext/default.nix +++ b/pkgs/development/python-modules/jupytext/default.nix @@ -50,12 +50,6 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - # Tests that use a Jupyter notebook require $HOME to be writable - export HOME=$(mktemp -d); - export PATH=$out/bin:$PATH; - ''; - disabledTestPaths = [ "tests/external" ]; disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ diff --git a/pkgs/development/python-modules/keras/default.nix b/pkgs/development/python-modules/keras/default.nix index d33143d829d52d..44a3c83525ac3e 100644 --- a/pkgs/development/python-modules/keras/default.nix +++ b/pkgs/development/python-modules/keras/default.nix @@ -75,10 +75,6 @@ buildPythonPackage rec { torch ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTests = [ # Tries to install the package in the sandbox diff --git a/pkgs/development/python-modules/launchpadlib/default.nix b/pkgs/development/python-modules/launchpadlib/default.nix index da58622e268465..12dafc458a573d 100644 --- a/pkgs/development/python-modules/launchpadlib/default.nix +++ b/pkgs/development/python-modules/launchpadlib/default.nix @@ -35,10 +35,6 @@ buildPythonPackage rec { testresources ]; - preCheck = '' - export HOME=$TMPDIR - ''; - pythonImportsCheck = [ "launchpadlib" "launchpadlib.apps" diff --git a/pkgs/development/python-modules/libpysal/default.nix b/pkgs/development/python-modules/libpysal/default.nix index c81bab3c15127d..484a93574c648f 100644 --- a/pkgs/development/python-modules/libpysal/default.nix +++ b/pkgs/development/python-modules/libpysal/default.nix @@ -54,10 +54,6 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - export HOME=$TMPDIR - ''; - # requires network access disabledTestPaths = [ "libpysal/graph/tests/test_summary.py" diff --git a/pkgs/development/python-modules/librosa/default.nix b/pkgs/development/python-modules/librosa/default.nix index 2c9e2447e33c1b..3bee6ffa788240 100644 --- a/pkgs/development/python-modules/librosa/default.nix +++ b/pkgs/development/python-modules/librosa/default.nix @@ -92,10 +92,6 @@ buildPythonPackage rec { samplerate ] ++ optional-dependencies.matplotlib; - preCheck = '' - export HOME=$TMPDIR - ''; - disabledTests = [ # requires network access diff --git a/pkgs/development/python-modules/line-profiler/default.nix b/pkgs/development/python-modules/line-profiler/default.nix index dce3a93374e0ae..512ff4f63e26c8 100644 --- a/pkgs/development/python-modules/line-profiler/default.nix +++ b/pkgs/development/python-modules/line-profiler/default.nix @@ -48,7 +48,6 @@ buildPythonPackage rec { preCheck = '' rm -r line_profiler - export PATH=$out/bin:$PATH ''; pythonImportsCheck = [ "line_profiler" ]; diff --git a/pkgs/development/python-modules/linien-common/tests.nix b/pkgs/development/python-modules/linien-common/tests.nix index b95307fce9ac55..24da062ff8ba0e 100644 --- a/pkgs/development/python-modules/linien-common/tests.nix +++ b/pkgs/development/python-modules/linien-common/tests.nix @@ -29,10 +29,6 @@ buildPythonPackage { pytestCheckHook ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTestPaths = [ # require linien-server which is not packaged "tests/test_algorithm_selection.py" diff --git a/pkgs/development/python-modules/macholib/default.nix b/pkgs/development/python-modules/macholib/default.nix index 6bf2ec3eeeb72d..822343d911011e 100644 --- a/pkgs/development/python-modules/macholib/default.nix +++ b/pkgs/development/python-modules/macholib/default.nix @@ -43,10 +43,6 @@ buildPythonPackage rec { inherit pyinstaller; # Requires macholib for darwin }; - preCheck = '' - export PATH="$PATH:$out/bin" - ''; - meta = with lib; { description = "Analyze and edit Mach-O headers, the executable format used by Mac OS X."; homepage = "https://github.com/ronaldoussoren/macholib"; diff --git a/pkgs/development/python-modules/maestral/default.nix b/pkgs/development/python-modules/maestral/default.nix index 52ebece153147c..2cb00b726035ec 100644 --- a/pkgs/development/python-modules/maestral/default.nix +++ b/pkgs/development/python-modules/maestral/default.nix @@ -77,10 +77,6 @@ buildPythonPackage rec { # ModuleNotFoundError: No module named '_watchdog_fsevents' doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64); - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTests = [ # We don't want to benchmark diff --git a/pkgs/development/python-modules/mammoth/default.nix b/pkgs/development/python-modules/mammoth/default.nix index edb1a5299e50b8..fc26179d1531de 100644 --- a/pkgs/development/python-modules/mammoth/default.nix +++ b/pkgs/development/python-modules/mammoth/default.nix @@ -41,10 +41,6 @@ buildPythonPackage rec { tempman ]; - preCheck = '' - export PATH=$out/bin:$PATH - ''; - passthru.updateScripts = gitUpdater { }; meta = { diff --git a/pkgs/development/python-modules/manifest-ml/default.nix b/pkgs/development/python-modules/manifest-ml/default.nix index 80d80d51f93419..a284445335a17b 100644 --- a/pkgs/development/python-modules/manifest-ml/default.nix +++ b/pkgs/development/python-modules/manifest-ml/default.nix @@ -86,10 +86,6 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies); - preCheck = '' - export HOME=$TMPDIR - ''; - pytestFlagsArray = [ # this file tries importing `deepspeed`, which is not yet packaged in nixpkgs "--ignore=tests/test_huggingface_api.py" diff --git a/pkgs/development/python-modules/md2pdf/default.nix b/pkgs/development/python-modules/md2pdf/default.nix index abcb118aa81887..3bc8288ebd9375 100644 --- a/pkgs/development/python-modules/md2pdf/default.nix +++ b/pkgs/development/python-modules/md2pdf/default.nix @@ -42,10 +42,6 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - export PATH="$out/bin:$PATH" - ''; - meta = { changelog = "https://github.com/jmaupetit/md2pdf/blob/${src.rev}/CHANGELOG.md"; description = "Markdown to PDF conversion tool"; diff --git a/pkgs/development/python-modules/mdtraj/default.nix b/pkgs/development/python-modules/mdtraj/default.nix index e4a2dc8587e8c8..a87951d65cd792 100644 --- a/pkgs/development/python-modules/mdtraj/default.nix +++ b/pkgs/development/python-modules/mdtraj/default.nix @@ -77,7 +77,6 @@ buildPythonPackage rec { preCheck = '' cd tests - export PATH=$out/bin:$PATH ''; disabledTests = [ diff --git a/pkgs/development/python-modules/meshtastic/default.nix b/pkgs/development/python-modules/meshtastic/default.nix index 18de6f4c4bb776..6dc5ff049ac130 100644 --- a/pkgs/development/python-modules/meshtastic/default.nix +++ b/pkgs/development/python-modules/meshtastic/default.nix @@ -86,10 +86,6 @@ buildPythonPackage rec { riden ] ++ lib.flatten (builtins.attrValues optional-dependencies); - preCheck = '' - export PATH="$PATH:$out/bin"; - ''; - pythonImportsCheck = [ "meshtastic" ]; disabledTestPaths = [ diff --git a/pkgs/development/python-modules/mike/default.nix b/pkgs/development/python-modules/mike/default.nix index 934c77440529d5..cc12dec4c6ac2a 100644 --- a/pkgs/development/python-modules/mike/default.nix +++ b/pkgs/development/python-modules/mike/default.nix @@ -41,10 +41,6 @@ buildPythonPackage rec { unittestCheckHook ]; - preCheck = '' - export PATH=$out/bin:$PATH - ''; - # Difficult to setup doCheck = false; diff --git a/pkgs/development/python-modules/mitmproxy/default.nix b/pkgs/development/python-modules/mitmproxy/default.nix index 6248d2e0d47ecb..c802a5274cadc8 100644 --- a/pkgs/development/python-modules/mitmproxy/default.nix +++ b/pkgs/development/python-modules/mitmproxy/default.nix @@ -105,10 +105,6 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTests = [ # Tests require a git repository "test_get_version" diff --git a/pkgs/development/python-modules/mmengine/default.nix b/pkgs/development/python-modules/mmengine/default.nix index 78d3198e4155d6..76d81793b889e8 100644 --- a/pkgs/development/python-modules/mmengine/default.nix +++ b/pkgs/development/python-modules/mmengine/default.nix @@ -83,13 +83,10 @@ buildPythonPackage rec { ]; preCheck = - '' - export HOME=$(mktemp -d) - '' # Otherwise, the backprop hangs forever. More precisely, this exact line: # https://github.com/open-mmlab/mmengine/blob/02f80e8bdd38f6713e04a872304861b02157905a/tests/test_runner/test_activation_checkpointing.py#L46 # Solution suggested in https://github.com/pytorch/pytorch/issues/91547#issuecomment-1370011188 - + '' + '' export MKL_NUM_THREADS=1 ''; diff --git a/pkgs/development/python-modules/mne-python/default.nix b/pkgs/development/python-modules/mne-python/default.nix index 3493806d5fe4e8..78a2b454e4d6aa 100644 --- a/pkgs/development/python-modules/mne-python/default.nix +++ b/pkgs/development/python-modules/mne-python/default.nix @@ -68,7 +68,6 @@ buildPythonPackage rec { ] ++ lib.flatten (builtins.attrValues optional-dependencies); preCheck = '' - export HOME=$(mktemp -d) export MNE_SKIP_TESTING_DATASET_TESTS=true export MNE_SKIP_NETWORK_TESTS=1 ''; diff --git a/pkgs/development/python-modules/naked/default.nix b/pkgs/development/python-modules/naked/default.nix index adabd6c6f5aa0e..3bc2c3567d7bfa 100644 --- a/pkgs/development/python-modules/naked/default.nix +++ b/pkgs/development/python-modules/naked/default.nix @@ -50,8 +50,6 @@ buildPythonPackage rec { preCheck = '' cd tests - - PATH=$PATH:$out/bin ''; disabledTestPaths = [ "testfiles" ]; diff --git a/pkgs/development/python-modules/nanoemoji/default.nix b/pkgs/development/python-modules/nanoemoji/default.nix index 9d2dfffcaf9f1d..37e1f482797709 100644 --- a/pkgs/development/python-modules/nanoemoji/default.nix +++ b/pkgs/development/python-modules/nanoemoji/default.nix @@ -86,11 +86,6 @@ buildPythonPackage rec { }" ]; - preCheck = '' - # make sure the built binaries (nanoemoji/maximum_color) can be found by the test - export PATH="$out/bin:$PATH" - ''; - meta = with lib; { description = "Wee tool to build color fonts"; homepage = "https://github.com/googlefonts/nanoemoji"; diff --git a/pkgs/development/python-modules/nbclient/default.nix b/pkgs/development/python-modules/nbclient/default.nix index 105108d3ab6b65..1488ba056013cb 100644 --- a/pkgs/development/python-modules/nbclient/default.nix +++ b/pkgs/development/python-modules/nbclient/default.nix @@ -56,10 +56,6 @@ let xmltodict ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - passthru.tests = { check = nbclient.overridePythonAttrs (_: { doCheck = true; diff --git a/pkgs/development/python-modules/nbconvert/default.nix b/pkgs/development/python-modules/nbconvert/default.nix index d13414c125673d..510321c9af594e 100644 --- a/pkgs/development/python-modules/nbconvert/default.nix +++ b/pkgs/development/python-modules/nbconvert/default.nix @@ -75,10 +75,6 @@ buildPythonPackage rec { traitlets ] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - nativeCheckInputs = [ flaky ipykernel diff --git a/pkgs/development/python-modules/nbexec/default.nix b/pkgs/development/python-modules/nbexec/default.nix index 370de0db428c07..0d244b885a160f 100644 --- a/pkgs/development/python-modules/nbexec/default.nix +++ b/pkgs/development/python-modules/nbexec/default.nix @@ -43,10 +43,6 @@ buildPythonPackage { ipykernel ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - unittestFlagsArray = [ "-s" "test" diff --git a/pkgs/development/python-modules/nbmake/default.nix b/pkgs/development/python-modules/nbmake/default.nix index 46ffe613f695c7..d83aa9d86af041 100644 --- a/pkgs/development/python-modules/nbmake/default.nix +++ b/pkgs/development/python-modules/nbmake/default.nix @@ -60,10 +60,6 @@ buildPythonPackage rec { typing-extensions ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - __darwinAllowLocalNetworking = true; meta = { diff --git a/pkgs/development/python-modules/nibabel/default.nix b/pkgs/development/python-modules/nibabel/default.nix index c0a51cd1dd39e7..d5a566ce9393b8 100644 --- a/pkgs/development/python-modules/nibabel/default.nix +++ b/pkgs/development/python-modules/nibabel/default.nix @@ -61,10 +61,6 @@ buildPythonPackage rec { pytest7CheckHook ] ++ optional-dependencies.all; - preCheck = '' - export PATH=$out/bin:$PATH - ''; - disabledTestPaths = lib.optionals (pythonAtLeast "3.12") [ # uses distutils "nisext/tests/test_sexts.py" diff --git a/pkgs/development/python-modules/nicegui/default.nix b/pkgs/development/python-modules/nicegui/default.nix index 0951e8b5189dd1..0b4c5afd9eb6e0 100644 --- a/pkgs/development/python-modules/nicegui/default.nix +++ b/pkgs/development/python-modules/nicegui/default.nix @@ -104,10 +104,6 @@ buildPythonPackage rec { webdriver-manager ] ++ lib.flatten (builtins.attrValues optional-dependencies); - preCheck = '' - export HOME=$(mktemp -d) - ''; - pythonImportsCheck = [ "nicegui" ]; # chromedriver release doesn't seems to be supported, try with next release diff --git a/pkgs/development/python-modules/niworkflows/default.nix b/pkgs/development/python-modules/niworkflows/default.nix index 1816cdbd20a38a..784c1b52fe8c8c 100644 --- a/pkgs/development/python-modules/niworkflows/default.nix +++ b/pkgs/development/python-modules/niworkflows/default.nix @@ -74,7 +74,6 @@ buildPythonPackage rec { env.SETUPTOOLS_SCM_PRETEND_VERSION = version; nativeCheckInputs = [ pytestCheckHook ]; - preCheck = ''export HOME=$(mktemp -d)''; pytestFlagsArray = [ "niworkflows" ]; # try to download data: disabledTests = [ diff --git a/pkgs/development/python-modules/nox/default.nix b/pkgs/development/python-modules/nox/default.nix index 9485022155da80..42271c8f51cc7b 100644 --- a/pkgs/development/python-modules/nox/default.nix +++ b/pkgs/development/python-modules/nox/default.nix @@ -57,10 +57,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (builtins.attrValues optional-dependencies); - preCheck = '' - export HOME=$(mktemp -d) - ''; - pythonImportsCheck = [ "nox" ]; disabledTests = [ diff --git a/pkgs/development/python-modules/ofxtools/default.nix b/pkgs/development/python-modules/ofxtools/default.nix index cbf5d5e3c0b2b3..05d09471ddb00b 100644 --- a/pkgs/development/python-modules/ofxtools/default.nix +++ b/pkgs/development/python-modules/ofxtools/default.nix @@ -24,9 +24,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; # override $HOME directory: # error: [Errno 13] Permission denied: '/homeless-shelter' - preCheck = '' - export HOME=$(mktemp -d) - ''; meta = with lib; { homepage = "https://github.com/csingley/ofxtools"; diff --git a/pkgs/development/python-modules/onnx/default.nix b/pkgs/development/python-modules/onnx/default.nix index 0af451607af3dd..6120e8f9752269 100644 --- a/pkgs/development/python-modules/onnx/default.nix +++ b/pkgs/development/python-modules/onnx/default.nix @@ -93,8 +93,6 @@ buildPythonPackage rec { dontUseCmakeConfigure = true; preCheck = '' - export HOME=$(mktemp -d) - # detecting source dir as a python package confuses pytest mv onnx/__init__.py onnx/__init__.py.hidden ''; diff --git a/pkgs/development/python-modules/openai-whisper/default.nix b/pkgs/development/python-modules/openai-whisper/default.nix index 871182550d2adc..408d97fca2b5d6 100644 --- a/pkgs/development/python-modules/openai-whisper/default.nix +++ b/pkgs/development/python-modules/openai-whisper/default.nix @@ -55,10 +55,6 @@ buildPythonPackage rec { tqdm ] ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform triton) [ triton ]; - preCheck = '' - export HOME=$TMPDIR - ''; - nativeCheckInputs = [ pytestCheckHook scipy diff --git a/pkgs/development/python-modules/optuna/default.nix b/pkgs/development/python-modules/optuna/default.nix index 9df86d3458d843..bb7622c63b6f16 100644 --- a/pkgs/development/python-modules/optuna/default.nix +++ b/pkgs/development/python-modules/optuna/default.nix @@ -101,10 +101,6 @@ buildPythonPackage rec { ]; }; - preCheck = '' - export PATH=$out/bin:$PATH - ''; - nativeCheckInputs = [ fakeredis diff --git a/pkgs/development/python-modules/orange-canvas-core/default.nix b/pkgs/development/python-modules/orange-canvas-core/default.nix index 3db1f35784bd64..6fe4b82bc1a6a0 100644 --- a/pkgs/development/python-modules/orange-canvas-core/default.nix +++ b/pkgs/development/python-modules/orange-canvas-core/default.nix @@ -60,7 +60,6 @@ buildPythonPackage rec { pythonImportsCheck = [ "orangecanvas" ]; preCheck = '' - export HOME=$(mktemp -d) export QT_PLUGIN_PATH="${qt5.qtbase.bin}/${qt5.qtbase.qtPluginPrefix}" export QT_QPA_PLATFORM_PLUGIN_PATH="${qt5.qtbase.bin}/lib/qt-${qt5.qtbase.version}/plugins"; export QT_QPA_PLATFORM=offscreen diff --git a/pkgs/development/python-modules/orange-widget-base/default.nix b/pkgs/development/python-modules/orange-widget-base/default.nix index 28c97fdb4238ce..7bb02ff51128bd 100644 --- a/pkgs/development/python-modules/orange-widget-base/default.nix +++ b/pkgs/development/python-modules/orange-widget-base/default.nix @@ -37,7 +37,6 @@ buildPythonPackage rec { pythonImportsCheck = [ "orangewidget" ]; preCheck = '' - export HOME=$(mktemp -d) export QT_PLUGIN_PATH="${qt5.qtbase.bin}/${qt5.qtbase.qtPluginPrefix}" export QT_QPA_PLATFORM_PLUGIN_PATH="${qt5.qtbase.bin}/lib/qt-${qt5.qtbase.version}/plugins"; export QT_QPA_PLATFORM=offscreen diff --git a/pkgs/development/python-modules/osxphotos/default.nix b/pkgs/development/python-modules/osxphotos/default.nix index f22e7e34d9aa6d..312952a8729889 100644 --- a/pkgs/development/python-modules/osxphotos/default.nix +++ b/pkgs/development/python-modules/osxphotos/default.nix @@ -86,10 +86,6 @@ buildPythonPackage rec { pytest-mock ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTestPaths = [ "tests/test_comments.py" ]; disabledTests = [ "test_iphoto_info" diff --git a/pkgs/development/python-modules/pandas/default.nix b/pkgs/development/python-modules/pandas/default.nix index 1e2d51af36273b..b74dd5578c1a3d 100644 --- a/pkgs/development/python-modules/pandas/default.nix +++ b/pkgs/development/python-modules/pandas/default.nix @@ -221,7 +221,6 @@ let # so change directory where `import .test` is able to be resolved preCheck = '' - export HOME=$TMPDIR export LC_ALL="en_US.UTF-8" cd $out/${python.sitePackages}/pandas '' diff --git a/pkgs/development/python-modules/papermill/default.nix b/pkgs/development/python-modules/papermill/default.nix index 6291f013941463..7c3e1053271856 100644 --- a/pkgs/development/python-modules/papermill/default.nix +++ b/pkgs/development/python-modules/papermill/default.nix @@ -80,10 +80,6 @@ buildPythonPackage rec { ++ optional-dependencies.s3 ++ optional-dependencies.gcs; - preCheck = '' - export HOME=$(mktemp -d) - ''; - pythonImportsCheck = [ "papermill" ]; disabledTests = diff --git a/pkgs/development/python-modules/papis/default.nix b/pkgs/development/python-modules/papis/default.nix index c2f4b8f21d6d0f..36bd5f6e2416e5 100644 --- a/pkgs/development/python-modules/papis/default.nix +++ b/pkgs/development/python-modules/papis/default.nix @@ -85,10 +85,6 @@ buildPythonPackage rec { sphinx-click ]; - preCheck = '' - export HOME=$(mktemp -d); - ''; - pytestFlagsArray = [ "papis" "tests" diff --git a/pkgs/development/python-modules/pdbfixer/default.nix b/pkgs/development/python-modules/pdbfixer/default.nix index 0042364a3218fe..a977337390b487 100644 --- a/pkgs/development/python-modules/pdbfixer/default.nix +++ b/pkgs/development/python-modules/pdbfixer/default.nix @@ -33,10 +33,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - preCheck = '' - export PATH=$out/bin:$PATH - ''; - disabledTests = [ # require network access "test_build_and_simulate" diff --git a/pkgs/development/python-modules/pdfplumber/default.nix b/pkgs/development/python-modules/pdfplumber/default.nix index 47e0dd303d462b..8e0c6e8b13b3d5 100644 --- a/pkgs/development/python-modules/pdfplumber/default.nix +++ b/pkgs/development/python-modules/pdfplumber/default.nix @@ -41,10 +41,6 @@ buildPythonPackage rec { wand ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - nativeCheckInputs = [ ghostscript jupyterlab diff --git a/pkgs/development/python-modules/persim/default.nix b/pkgs/development/python-modules/persim/default.nix index 060e3ff8ef72ef..ac649851c047db 100644 --- a/pkgs/development/python-modules/persim/default.nix +++ b/pkgs/development/python-modules/persim/default.nix @@ -40,7 +40,6 @@ buildPythonPackage rec { preCheck = '' # specifically needed for darwin - export HOME=$(mktemp -d) mkdir -p $HOME/.matplotlib echo "backend: ps" > $HOME/.matplotlib/matplotlibrc ''; diff --git a/pkgs/development/python-modules/pint/default.nix b/pkgs/development/python-modules/pint/default.nix index e480d1657875e2..ca90db072bab45 100644 --- a/pkgs/development/python-modules/pint/default.nix +++ b/pkgs/development/python-modules/pint/default.nix @@ -64,10 +64,6 @@ buildPythonPackage rec { pytestFlagsArray = [ "--benchmark-disable" ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - meta = { changelog = "https://github.com/hgrecco/pint/blob/${version}/CHANGES"; description = "Physical quantities module"; diff --git a/pkgs/development/python-modules/pipx/default.nix b/pkgs/development/python-modules/pipx/default.nix index 052ef15fc37329..4b904978f46888 100644 --- a/pkgs/development/python-modules/pipx/default.nix +++ b/pkgs/development/python-modules/pipx/default.nix @@ -51,10 +51,6 @@ buildPythonPackage rec { git ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - pytestFlagsArray = [ "--ignore=tests/test_install_all_packages.py" # start local pypi server and use in tests diff --git a/pkgs/development/python-modules/plotnine/default.nix b/pkgs/development/python-modules/plotnine/default.nix index 6fd63a35390c16..421f0b9aa3dea5 100644 --- a/pkgs/development/python-modules/plotnine/default.nix +++ b/pkgs/development/python-modules/plotnine/default.nix @@ -54,10 +54,6 @@ buildPythonPackage rec { scikit-misc ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - pythonImportsCheck = [ "plotnine" ]; disabledTests = [ diff --git a/pkgs/development/python-modules/plux/default.nix b/pkgs/development/python-modules/plux/default.nix index 0ca2084fd8c4e8..d5379c5bd2bf26 100644 --- a/pkgs/development/python-modules/plux/default.nix +++ b/pkgs/development/python-modules/plux/default.nix @@ -30,10 +30,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - preCheck = '' - export HOME=$TMPDIR - ''; - pythonImportsCheck = [ "plugin.core" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/podman/default.nix b/pkgs/development/python-modules/podman/default.nix index 24b026b2fe7983..f79a3c7404cb6d 100644 --- a/pkgs/development/python-modules/podman/default.nix +++ b/pkgs/development/python-modules/podman/default.nix @@ -44,10 +44,6 @@ buildPythonPackage rec { requests-mock ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - pythonImportsCheck = [ "podman" ]; disabledTests = [ diff --git a/pkgs/development/python-modules/pooch/default.nix b/pkgs/development/python-modules/pooch/default.nix index ed35b18025cebf..d0c296986047c9 100644 --- a/pkgs/development/python-modules/pooch/default.nix +++ b/pkgs/development/python-modules/pooch/default.nix @@ -46,10 +46,6 @@ buildPythonPackage rec { xxhash = [ xxhash ]; }; }; - preCheck = '' - export HOME=$TMPDIR - ''; - nativeCheckInputs = [ pytestCheckHook ]; # tries to touch network diff --git a/pkgs/development/python-modules/proton-vpn-network-manager/default.nix b/pkgs/development/python-modules/proton-vpn-network-manager/default.nix index 70a773c0a2655e..02c23b6a6eba1a 100644 --- a/pkgs/development/python-modules/proton-vpn-network-manager/default.nix +++ b/pkgs/development/python-modules/proton-vpn-network-manager/default.nix @@ -67,11 +67,6 @@ buildPythonPackage rec { pytest-asyncio ]; - preCheck = '' - # Needed for Permission denied: '/homeless-shelter' - export HOME=$(mktemp -d) - ''; - meta = { description = "Provides the necessary functionality for other ProtonVPN components to interact with NetworkManager"; homepage = "https://github.com/ProtonVPN/python-proton-vpn-network-manager"; diff --git a/pkgs/development/python-modules/proxy-db/default.nix b/pkgs/development/python-modules/proxy-db/default.nix index 7ccfe3bb890a57..881f781c2ee57f 100644 --- a/pkgs/development/python-modules/proxy-db/default.nix +++ b/pkgs/development/python-modules/proxy-db/default.nix @@ -39,10 +39,6 @@ buildPythonPackage rec { requests-mock ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - pythonImportsCheck = [ "proxy_db" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/proxy-py/default.nix b/pkgs/development/python-modules/proxy-py/default.nix index df174a12558876..dbc6b29ae78b21 100644 --- a/pkgs/development/python-modules/proxy-py/default.nix +++ b/pkgs/development/python-modules/proxy-py/default.nix @@ -64,10 +64,6 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - preCheck = '' - export HOME=$(mktemp -d); - ''; - disabledTests = [ # Test requires network access "http" diff --git a/pkgs/development/python-modules/pudb/default.nix b/pkgs/development/python-modules/pudb/default.nix index 08abae48d113cf..7fd9de0d8bf7b8 100644 --- a/pkgs/development/python-modules/pudb/default.nix +++ b/pkgs/development/python-modules/pudb/default.nix @@ -40,10 +40,6 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - export HOME=$TMPDIR - ''; - pythonImportsCheck = [ "pudb" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/pulsectl/default.nix b/pkgs/development/python-modules/pulsectl/default.nix index 51132de4d5f683..ab64a89796ac15 100644 --- a/pkgs/development/python-modules/pulsectl/default.nix +++ b/pkgs/development/python-modules/pulsectl/default.nix @@ -36,10 +36,6 @@ buildPythonPackage rec { pulseaudio ]; - preCheck = '' - export HOME=$TMPDIR - ''; - meta = with lib; { description = "Python high-level interface and ctypes-based bindings for PulseAudio (libpulse)"; homepage = "https://github.com/mk-fg/python-pulse-control"; diff --git a/pkgs/development/python-modules/pycookiecheat/default.nix b/pkgs/development/python-modules/pycookiecheat/default.nix index bc51c78bf551b3..12b3a9b52c1e14 100644 --- a/pkgs/development/python-modules/pycookiecheat/default.nix +++ b/pkgs/development/python-modules/pycookiecheat/default.nix @@ -48,10 +48,6 @@ buildPythonPackage rec { pythonImportsCheck = [ "pycookiecheat" ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTests = [ # Tests want to use playwright executable "test_fake_cookie" diff --git a/pkgs/development/python-modules/pycurl/default.nix b/pkgs/development/python-modules/pycurl/default.nix index 40aa79a8a7e925..09f9f85ba75d48 100644 --- a/pkgs/development/python-modules/pycurl/default.nix +++ b/pkgs/development/python-modules/pycurl/default.nix @@ -60,10 +60,6 @@ buildPythonPackage rec { "tests" ]; - preCheck = '' - export HOME=$TMPDIR - ''; - disabledTests = [ # tests that require network access diff --git a/pkgs/development/python-modules/pydantic/1.nix b/pkgs/development/python-modules/pydantic/1.nix index cfd0df8c7603a1..a1c4d59de3e375 100644 --- a/pkgs/development/python-modules/pydantic/1.nix +++ b/pkgs/development/python-modules/pydantic/1.nix @@ -53,10 +53,6 @@ buildPythonPackage rec { "ignore::pytest.PytestReturnNotNoneWarning" ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTests = lib.optionals (pythonAtLeast "3.12") [ # depends on distuils "test_cython_function_untouched" diff --git a/pkgs/development/python-modules/pydantic/default.nix b/pkgs/development/python-modules/pydantic/default.nix index bb5ba289d5f56b..cf13bd38ba9a01 100644 --- a/pkgs/development/python-modules/pydantic/default.nix +++ b/pkgs/development/python-modules/pydantic/default.nix @@ -71,7 +71,6 @@ buildPythonPackage rec { ++ lib.optionals (pythonOlder "3.10") [ eval-type-backport ]; preCheck = '' - export HOME=$(mktemp -d) substituteInPlace pyproject.toml \ --replace-fail "'--benchmark-columns', 'min,mean,stddev,outliers,rounds,iterations'," "" \ --replace-fail "'--benchmark-group-by', 'group'," "" \ diff --git a/pkgs/development/python-modules/pygame-ce/default.nix b/pkgs/development/python-modules/pygame-ce/default.nix index 0c7ef2cebbb9e8..986e949de95d85 100644 --- a/pkgs/development/python-modules/pygame-ce/default.nix +++ b/pkgs/development/python-modules/pygame-ce/default.nix @@ -123,7 +123,6 @@ buildPythonPackage rec { }; preCheck = '' - export HOME=$(mktemp -d) # No audio or video device in test environment export SDL_VIDEODRIVER=dummy export SDL_AUDIODRIVER=disk diff --git a/pkgs/development/python-modules/pykcs11/tests.nix b/pkgs/development/python-modules/pykcs11/tests.nix index 00468733ae3093..5531f227392b33 100644 --- a/pkgs/development/python-modules/pykcs11/tests.nix +++ b/pkgs/development/python-modules/pykcs11/tests.nix @@ -23,7 +23,6 @@ buildPythonPackage { ]; preCheck = '' - export HOME=$(mktemp -d) export PYKCS11LIB=${softhsm}/lib/softhsm/libsofthsm2.so export SOFTHSM2_CONF=$HOME/softhsm2.conf echo "directories.tokendir = $HOME/tokens" > $HOME/softhsm2.conf diff --git a/pkgs/development/python-modules/pymatgen/default.nix b/pkgs/development/python-modules/pymatgen/default.nix index 6074b06b0bdcfb..d726203d2faf1f 100644 --- a/pkgs/development/python-modules/pymatgen/default.nix +++ b/pkgs/development/python-modules/pymatgen/default.nix @@ -83,8 +83,6 @@ buildPythonPackage rec { preCheck = '' # ensure tests can find these export PMG_TEST_FILES_DIR="$(realpath ./tests/files)" - # some tests cover the command-line scripts - export PATH=$out/bin:$PATH ''; pythonImportsCheck = [ "pymatgen" ]; diff --git a/pkgs/development/python-modules/pymupdf/default.nix b/pkgs/development/python-modules/pymupdf/default.nix index 80bcf8c6117b5f..a2cc795cb3a835 100644 --- a/pkgs/development/python-modules/pymupdf/default.nix +++ b/pkgs/development/python-modules/pymupdf/default.nix @@ -121,10 +121,6 @@ buildPythonPackage rec { "fitz" ]; - preCheck = '' - export PATH="$out/bin:$PATH"; - ''; - meta = { description = "Python bindings for MuPDF's rendering library"; homepage = "https://github.com/pymupdf/PyMuPDF"; diff --git a/pkgs/development/python-modules/pyomo/default.nix b/pkgs/development/python-modules/pyomo/default.nix index 2a9b47803c2cf3..a154bd4dfa8373 100644 --- a/pkgs/development/python-modules/pyomo/default.nix +++ b/pkgs/development/python-modules/pyomo/default.nix @@ -34,10 +34,6 @@ buildPythonPackage rec { pythonImportsCheck = [ "pyomo" ]; - preCheck = '' - export HOME=$(mktemp -d); - ''; - disabledTestPaths = [ # Don't test the documentation and the examples "doc/" diff --git a/pkgs/development/python-modules/pyopencl/default.nix b/pkgs/development/python-modules/pyopencl/default.nix index 3af43a63a73c07..db80cac271124e 100644 --- a/pkgs/development/python-modules/pyopencl/default.nix +++ b/pkgs/development/python-modules/pyopencl/default.nix @@ -66,8 +66,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' - export HOME=$(mktemp -d) - # https://github.com/NixOS/nixpkgs/issues/255262 cd $out ''; diff --git a/pkgs/development/python-modules/pypass/default.nix b/pkgs/development/python-modules/pypass/default.nix index 1b9dc08d672008..e93da902d2b7b5 100644 --- a/pkgs/development/python-modules/pypass/default.nix +++ b/pkgs/development/python-modules/pypass/default.nix @@ -61,7 +61,6 @@ buildPythonPackage rec { # Configuration so that the tests work preCheck = '' - export HOME=$(mktemp -d) export GNUPGHOME=pypass/tests/gnupg ${git}/bin/git config --global user.email "nix-builder@nixos.org" ${git}/bin/git config --global user.name "Nix Builder" diff --git a/pkgs/development/python-modules/pypiserver/default.nix b/pkgs/development/python-modules/pypiserver/default.nix index 6202ae3156cf08..2437f1be2c915c 100644 --- a/pkgs/development/python-modules/pypiserver/default.nix +++ b/pkgs/development/python-modules/pypiserver/default.nix @@ -63,10 +63,6 @@ buildPythonPackage rec { (allow mach-lookup (global-name "com.apple.FSEvents")) ''; - preCheck = '' - export HOME=$TMPDIR - ''; - disabledTests = [ # Fails to install the package "test_hash_algos" diff --git a/pkgs/development/python-modules/pypng/default.nix b/pkgs/development/python-modules/pypng/default.nix index eb06d04b5dbe73..aecf53b13d765d 100644 --- a/pkgs/development/python-modules/pypng/default.nix +++ b/pkgs/development/python-modules/pypng/default.nix @@ -26,11 +26,6 @@ buildPythonPackage rec { ./setup-cfg-pngsuite.patch ]; - # allow tests to use the binaries produced by this package - preCheck = '' - export PATH="$out/bin:$PATH" - ''; - pythonImportsCheck = [ "png" "pngsuite" diff --git a/pkgs/development/python-modules/pyqtdarktheme/default.nix b/pkgs/development/python-modules/pyqtdarktheme/default.nix index 2d484122707193..ae982b94f6488f 100644 --- a/pkgs/development/python-modules/pyqtdarktheme/default.nix +++ b/pkgs/development/python-modules/pyqtdarktheme/default.nix @@ -48,7 +48,6 @@ buildPythonPackage rec { ''; preCheck = '' - export HOME=$(mktemp -d) export QT_PLUGIN_PATH="${qt5.qtbase.bin}/${qt5.qtbase.qtPluginPrefix}" export QT_QPA_PLATFORM_PLUGIN_PATH="${qt5.qtbase.bin}/lib/qt-${qt5.qtbase.version}/plugins"; export QT_QPA_PLATFORM=offscreen diff --git a/pkgs/development/python-modules/pyreadstat/default.nix b/pkgs/development/python-modules/pyreadstat/default.nix index e59530c63a886e..dbe38fdb1ce0f7 100644 --- a/pkgs/development/python-modules/pyreadstat/default.nix +++ b/pkgs/development/python-modules/pyreadstat/default.nix @@ -41,10 +41,6 @@ buildPythonPackage rec { pythonImportsCheck = [ "pyreadstat" ]; - preCheck = '' - export HOME=$(mktemp -d); - ''; - checkPhase = '' runHook preCheck diff --git a/pkgs/development/python-modules/pyshark/default.nix b/pkgs/development/python-modules/pyshark/default.nix index 9dfa464a4139cf..c153fd1323f159 100644 --- a/pkgs/development/python-modules/pyshark/default.nix +++ b/pkgs/development/python-modules/pyshark/default.nix @@ -57,10 +57,6 @@ buildPythonPackage rec { wireshark-cli ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTests = [ # flaky diff --git a/pkgs/development/python-modules/pytask/default.nix b/pkgs/development/python-modules/pytask/default.nix index 260b9634b3119c..c31ff0f9fedacb 100644 --- a/pkgs/development/python-modules/pytask/default.nix +++ b/pkgs/development/python-modules/pytask/default.nix @@ -63,11 +63,6 @@ buildPythonPackage rec { syrupy ]; - # The test suite runs the installed command for e2e tests - preCheck = '' - export PATH="$PATH:$out/bin"; - ''; - disabledTests = [ # This accesses the network "test_download_file" diff --git a/pkgs/development/python-modules/pytest-ansible/default.nix b/pkgs/development/python-modules/pytest-ansible/default.nix index 0ddb147a32a07e..9236a70c8c6c1e 100644 --- a/pkgs/development/python-modules/pytest-ansible/default.nix +++ b/pkgs/development/python-modules/pytest-ansible/default.nix @@ -48,10 +48,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - preCheck = '' - export HOME=$TMPDIR - ''; - pytestFlagsArray = [ "tests/" ]; disabledTests = diff --git a/pkgs/development/python-modules/pytest-bdd/default.nix b/pkgs/development/python-modules/pytest-bdd/default.nix index 025938b9426474..607fedd1164c69 100644 --- a/pkgs/development/python-modules/pytest-bdd/default.nix +++ b/pkgs/development/python-modules/pytest-bdd/default.nix @@ -39,10 +39,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - preCheck = '' - export PATH=$PATH:$out/bin - ''; - pythonImportsCheck = [ "pytest_bdd" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/pytest-benchmark/default.nix b/pkgs/development/python-modules/pytest-benchmark/default.nix index e66926d4c5cd1d..df77cb1f958c5e 100644 --- a/pkgs/development/python-modules/pytest-benchmark/default.nix +++ b/pkgs/development/python-modules/pytest-benchmark/default.nix @@ -57,11 +57,6 @@ buildPythonPackage rec { pytest-xdist ] ++ lib.flatten (lib.attrValues optional-dependencies); - preCheck = '' - export PATH="$out/bin:$PATH" - export HOME=$(mktemp -d) - ''; - disabledTests = lib.optionals (pythonOlder "3.12") [ # AttributeError: 'PluginImportFixer' object has no attribute 'find_spec' diff --git a/pkgs/development/python-modules/pytest-mypy-plugins/default.nix b/pkgs/development/python-modules/pytest-mypy-plugins/default.nix index ecc53049ee1ce6..8cd710ffe652d5 100644 --- a/pkgs/development/python-modules/pytest-mypy-plugins/default.nix +++ b/pkgs/development/python-modules/pytest-mypy-plugins/default.nix @@ -52,10 +52,6 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - export PATH="$PATH:$out/bin"; - ''; - disabledTestPaths = [ "pytest_mypy_plugins/tests/test_explicit_configs.py" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/pytest-testinfra/default.nix b/pkgs/development/python-modules/pytest-testinfra/default.nix index 888233166693c3..c53cd4c24f75c5 100644 --- a/pkgs/development/python-modules/pytest-testinfra/default.nix +++ b/pkgs/development/python-modules/pytest-testinfra/default.nix @@ -38,7 +38,6 @@ buildPythonPackage rec { # Markers don't get added when docker is not available (leads to warnings): # https://github.com/pytest-dev/pytest-testinfra/blob/9.0.0/test/conftest.py#L223 preCheck = '' - export HOME=$(mktemp -d) sed -i '54imarkers = \ \ttestinfra_hosts(host_selector): mark test to run on selected hosts \ \tdestructive: mark test as destructive \ diff --git a/pkgs/development/python-modules/python-can/default.nix b/pkgs/development/python-modules/python-can/default.nix index 4272950862f3df..7e1b0d6bd1ecb9 100644 --- a/pkgs/development/python-modules/python-can/default.nix +++ b/pkgs/development/python-modules/python-can/default.nix @@ -82,8 +82,7 @@ buildPythonPackage rec { ]; preCheck = '' - export PATH="$PATH:$out/bin"; - # skips timing senstive tests + # skips timing sensitive tests export CI=1 ''; diff --git a/pkgs/development/python-modules/python-creole/default.nix b/pkgs/development/python-modules/python-creole/default.nix index 53f77d388f5f4b..97aac672c1dc65 100644 --- a/pkgs/development/python-modules/python-creole/default.nix +++ b/pkgs/development/python-modules/python-creole/default.nix @@ -57,10 +57,6 @@ buildPythonPackage rec { textile ]; - preCheck = '' - export PATH=$out/bin:$PATH - ''; - disabledTests = [ # macro didn't expect argument "test_macro_wrong_arguments_quite" diff --git a/pkgs/development/python-modules/python-escpos/default.nix b/pkgs/development/python-modules/python-escpos/default.nix index 79db357347147a..6f4a68be544909 100644 --- a/pkgs/development/python-modules/python-escpos/default.nix +++ b/pkgs/development/python-modules/python-escpos/default.nix @@ -74,9 +74,6 @@ buildPythonPackage rec { # disable checking coverage substituteInPlace pyproject.toml \ --replace-fail "--cov escpos --cov-report=xml" "" - - # allow tests to find the cli executable - export PATH="$out/bin:$PATH" ''; nativeCheckInputs = [ diff --git a/pkgs/development/python-modules/python-lsp-server/default.nix b/pkgs/development/python-modules/python-lsp-server/default.nix index 3e64e48a592640..2f89be920a3e82 100644 --- a/pkgs/development/python-modules/python-lsp-server/default.nix +++ b/pkgs/development/python-modules/python-lsp-server/default.nix @@ -127,10 +127,6 @@ buildPythonPackage rec { "test_jedi_completion_with_fuzzy_enabled" ]; - preCheck = '' - export HOME=$(mktemp -d); - ''; - pythonImportsCheck = [ "pylsp" "pylsp.python_lsp" diff --git a/pkgs/development/python-modules/qiskit-aer/default.nix b/pkgs/development/python-modules/qiskit-aer/default.nix index 62c404ff972006..0110459b0d12b2 100644 --- a/pkgs/development/python-modules/qiskit-aer/default.nix +++ b/pkgs/development/python-modules/qiskit-aer/default.nix @@ -134,7 +134,6 @@ buildPythonPackage rec { preCheck = '' # Tests include a compiled "circuit" which is auto-built in $HOME - export HOME=$(mktemp -d) # move tests b/c by default try to find (missing) cython-ized code in /build/source dir cp -r $TMP/$sourceRoot/test $HOME diff --git a/pkgs/development/python-modules/qiskit-ignis/default.nix b/pkgs/development/python-modules/qiskit-ignis/default.nix index a51ad99805b9e2..846112feac60fe 100644 --- a/pkgs/development/python-modules/qiskit-ignis/default.nix +++ b/pkgs/development/python-modules/qiskit-ignis/default.nix @@ -50,11 +50,7 @@ buildPythonPackage rec { # Tests pythonImportsCheck = [ "qiskit.ignis" ]; - dontUseSetuptoolsCheck = true; - preCheck = '' - export HOME=$TMPDIR - ''; - nativeCheckInputs = [ + dontUseSetuptoolsCheck = true; nativeCheckInputs = [ pytestCheckHook ddt pyfakefs diff --git a/pkgs/development/python-modules/qtile-bonsai/default.nix b/pkgs/development/python-modules/qtile-bonsai/default.nix index 0edd0eadd7765c..c367c84673d4df 100644 --- a/pkgs/development/python-modules/qtile-bonsai/default.nix +++ b/pkgs/development/python-modules/qtile-bonsai/default.nix @@ -45,10 +45,6 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTestPaths = [ # Needs a running DBUS "tests/integration/test_layout.py" diff --git a/pkgs/development/python-modules/qtile-extras/default.nix b/pkgs/development/python-modules/qtile-extras/default.nix index 6157a058dee967..8ad4939feb69ff 100644 --- a/pkgs/development/python-modules/qtile-extras/default.nix +++ b/pkgs/development/python-modules/qtile-extras/default.nix @@ -77,7 +77,6 @@ buildPythonPackage rec { ]; preCheck = '' - export HOME=$(mktemp -d) export GDK_PIXBUF_MODULE_FILE=${librsvg}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache sed -i 's#/usr/bin/sleep#sleep#' test/widget/test_snapcast.py ''; diff --git a/pkgs/development/python-modules/qutip/default.nix b/pkgs/development/python-modules/qutip/default.nix index 4907fd55075942..01613a8eaa37b4 100644 --- a/pkgs/development/python-modules/qutip/default.nix +++ b/pkgs/development/python-modules/qutip/default.nix @@ -60,7 +60,6 @@ buildPythonPackage rec { # This is due to the Cython-compiled modules not being in the correct location # of the source tree. preCheck = '' - export HOME=$(mktemp -d); export OMP_NUM_THREADS=$NIX_BUILD_CORES mkdir -p test && cd test ''; diff --git a/pkgs/development/python-modules/reptor/default.nix b/pkgs/development/python-modules/reptor/default.nix index db45305baa2a7f..29a2174868224b 100644 --- a/pkgs/development/python-modules/reptor/default.nix +++ b/pkgs/development/python-modules/reptor/default.nix @@ -77,11 +77,6 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.flatten (builtins.attrValues optional-dependencies); - preCheck = '' - export HOME=$(mktemp -d) - export PATH="$PATH:$out/bin"; - ''; - pythonImportsCheck = [ "reptor" ]; disabledTestPaths = [ diff --git a/pkgs/development/python-modules/requests-cache/default.nix b/pkgs/development/python-modules/requests-cache/default.nix index c1e5f1fd6c1b92..4de174d593d4cb 100644 --- a/pkgs/development/python-modules/requests-cache/default.nix +++ b/pkgs/development/python-modules/requests-cache/default.nix @@ -84,10 +84,6 @@ buildPythonPackage rec { ++ optional-dependencies.json ++ optional-dependencies.security; - preCheck = '' - export HOME=$(mktemp -d); - ''; - pytestFlagsArray = [ # Integration tests require local DBs "tests/unit" diff --git a/pkgs/development/python-modules/ripser/default.nix b/pkgs/development/python-modules/ripser/default.nix index d67de41c6d75e7..e9ac1ed3684607 100644 --- a/pkgs/development/python-modules/ripser/default.nix +++ b/pkgs/development/python-modules/ripser/default.nix @@ -36,7 +36,6 @@ buildPythonPackage rec { preCheck = '' # specifically needed for darwin - export HOME=$(mktemp -d) mkdir -p $HOME/.matplotlib echo "backend: ps" > $HOME/.matplotlib/matplotlibrc ''; diff --git a/pkgs/development/python-modules/rply/default.nix b/pkgs/development/python-modules/rply/default.nix index 064a7a7a904017..2dd10db12a491e 100644 --- a/pkgs/development/python-modules/rply/default.nix +++ b/pkgs/development/python-modules/rply/default.nix @@ -26,10 +26,6 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - meta = with lib; { description = "Python Lex/Yacc that works with RPython"; homepage = "https://github.com/alex/rply"; diff --git a/pkgs/development/python-modules/rq/default.nix b/pkgs/development/python-modules/rq/default.nix index 31368014924709..2c4c054b7f7ce4 100644 --- a/pkgs/development/python-modules/rq/default.nix +++ b/pkgs/development/python-modules/rq/default.nix @@ -46,7 +46,6 @@ buildPythonPackage rec { ]; preCheck = '' - PATH=$out/bin:$PATH ${redis-server}/bin/redis-server & ''; diff --git a/pkgs/development/python-modules/rstcheck/default.nix b/pkgs/development/python-modules/rstcheck/default.nix index 206f9192d92aa9..364ac74f862b3d 100644 --- a/pkgs/development/python-modules/rstcheck/default.nix +++ b/pkgs/development/python-modules/rstcheck/default.nix @@ -51,11 +51,6 @@ buildPythonPackage rec { pythonImportsCheck = [ "rstcheck" ]; - preCheck = '' - # The tests need to find and call the rstcheck executable - export PATH="$PATH:$out/bin"; - ''; - meta = with lib; { description = "Checks syntax of reStructuredText and code blocks nested within it"; homepage = "https://github.com/myint/rstcheck"; diff --git a/pkgs/development/python-modules/sacrebleu/default.nix b/pkgs/development/python-modules/sacrebleu/default.nix index 50a3a5d998b7f8..6793660bef54e3 100644 --- a/pkgs/development/python-modules/sacrebleu/default.nix +++ b/pkgs/development/python-modules/sacrebleu/default.nix @@ -51,10 +51,6 @@ buildPythonPackage { "test/test_dataset.py" ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - pythonImportsCheck = [ "sacrebleu" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/safety/default.nix b/pkgs/development/python-modules/safety/default.nix index b3acfb3834bd5d..4c30cae7c83e72 100644 --- a/pkgs/development/python-modules/safety/default.nix +++ b/pkgs/development/python-modules/safety/default.nix @@ -94,10 +94,6 @@ buildPythonPackage rec { # ImportError: cannot import name 'get_command_for' from partially initialized module 'safety.cli_util' (most likely due to a circular import) disabledTestPaths = [ "tests/alerts/test_utils.py" ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - meta = with lib; { description = "Checks installed dependencies for known vulnerabilities"; mainProgram = "safety"; diff --git a/pkgs/development/python-modules/salmon-mail/default.nix b/pkgs/development/python-modules/salmon-mail/default.nix index 72df3f89e3b9a2..16a8c1d8b54251 100644 --- a/pkgs/development/python-modules/salmon-mail/default.nix +++ b/pkgs/development/python-modules/salmon-mail/default.nix @@ -46,12 +46,6 @@ buildPythonPackage rec { # https://github.com/NixOS/nixpkgs/pull/82166#discussion_r399909846 __darwinAllowLocalNetworking = true; - # The tests use salmon executable installed by salmon itself so we need to add - # that to PATH - preCheck = '' - export PATH=$out/bin:$PATH - ''; - meta = with lib; { homepage = "https://salmon-mail.readthedocs.org/"; changelog = "https://github.com/moggers87/salmon/blob/${src.rev}/CHANGELOG.rst"; diff --git a/pkgs/development/python-modules/sanic/default.nix b/pkgs/development/python-modules/sanic/default.nix index 05cdff616166ec..e246d8d0489c7d 100644 --- a/pkgs/development/python-modules/sanic/default.nix +++ b/pkgs/development/python-modules/sanic/default.nix @@ -76,7 +76,6 @@ buildPythonPackage rec { preCheck = '' # Some tests depends on sanic on PATH - PATH="$out/bin:$PATH" PYTHONPATH=$PWD:$PYTHONPATH # needed for relative paths for some packages diff --git a/pkgs/development/python-modules/sasmodels/default.nix b/pkgs/development/python-modules/sasmodels/default.nix index 5443545d5af53e..4666695ce3048e 100644 --- a/pkgs/development/python-modules/sasmodels/default.nix +++ b/pkgs/development/python-modules/sasmodels/default.nix @@ -52,10 +52,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.full; - preCheck = '' - export HOME=$TMPDIR - ''; - pythonImportsCheck = [ "sasmodels" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/scikit-survival/default.nix b/pkgs/development/python-modules/scikit-survival/default.nix index eb703518964496..1bf8a05f7ccfc5 100644 --- a/pkgs/development/python-modules/scikit-survival/default.nix +++ b/pkgs/development/python-modules/scikit-survival/default.nix @@ -60,7 +60,6 @@ buildPythonPackage rec { # Hack needed to make pytest + cython work # https://github.com/NixOS/nixpkgs/pull/82410#issuecomment-827186298 preCheck = '' - export HOME=$(mktemp -d) cp -r $TMP/$sourceRoot/tests $HOME pushd $HOME ''; diff --git a/pkgs/development/python-modules/scooby/default.nix b/pkgs/development/python-modules/scooby/default.nix index 90be3a6538722f..367279bafdb462 100644 --- a/pkgs/development/python-modules/scooby/default.nix +++ b/pkgs/development/python-modules/scooby/default.nix @@ -37,10 +37,6 @@ buildPythonPackage rec { scipy ]; - preCheck = '' - export PATH="$PATH:$out/bin"; - ''; - pythonImportsCheck = [ "scooby" ]; disabledTests = [ diff --git a/pkgs/development/python-modules/send2trash/default.nix b/pkgs/development/python-modules/send2trash/default.nix index fe777922e22635..008a22404d5f13 100644 --- a/pkgs/development/python-modules/send2trash/default.nix +++ b/pkgs/development/python-modules/send2trash/default.nix @@ -23,10 +23,6 @@ buildPythonPackage rec { doCheck = !stdenv.hostPlatform.isDarwin; - preCheck = '' - export HOME=$TMPDIR - ''; - nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { diff --git a/pkgs/development/python-modules/setuptools-git-versioning/default.nix b/pkgs/development/python-modules/setuptools-git-versioning/default.nix index edc6a72c015f79..6219923e7007d4 100644 --- a/pkgs/development/python-modules/setuptools-git-versioning/default.nix +++ b/pkgs/development/python-modules/setuptools-git-versioning/default.nix @@ -47,11 +47,6 @@ buildPythonPackage rec { toml ]; - preCheck = '' - # so that its built binary is accessible by tests - export PATH="$out/bin:$PATH" - ''; - # limit tests because the full suite takes several minutes to run pytestFlagsArray = [ "-m" diff --git a/pkgs/development/python-modules/sh/default.nix b/pkgs/development/python-modules/sh/default.nix index 06ae4cd49b4d69..6239479747a0e0 100644 --- a/pkgs/development/python-modules/sh/default.nix +++ b/pkgs/development/python-modules/sh/default.nix @@ -25,11 +25,6 @@ buildPythonPackage rec { pytestFlagsArray = [ "tests" ]; - # A test needs the HOME directory to be different from $TMPDIR. - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTests = [ # Disable tests that fail on Hydra diff --git a/pkgs/development/python-modules/shimmy/default.nix b/pkgs/development/python-modules/shimmy/default.nix index eb19b4e16398bd..2be9d36bd59ed3 100644 --- a/pkgs/development/python-modules/shimmy/default.nix +++ b/pkgs/development/python-modules/shimmy/default.nix @@ -76,10 +76,6 @@ buildPythonPackage rec { "tests/test_openspiel.py" ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTests = [ # Require network access "test_check_env[bsuite/mnist_noise-v0]" diff --git a/pkgs/development/python-modules/sigstore/default.nix b/pkgs/development/python-modules/sigstore/default.nix index 99b9674dbb7eb0..da72da0fbde8a7 100644 --- a/pkgs/development/python-modules/sigstore/default.nix +++ b/pkgs/development/python-modules/sigstore/default.nix @@ -67,10 +67,6 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - pythonImportsCheck = [ "sigstore" ]; disabledTests = [ diff --git a/pkgs/development/python-modules/slack-sdk/default.nix b/pkgs/development/python-modules/slack-sdk/default.nix index 82411d20626e70..b03fc6a3e77d73 100644 --- a/pkgs/development/python-modules/slack-sdk/default.nix +++ b/pkgs/development/python-modules/slack-sdk/default.nix @@ -56,10 +56,6 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTests = [ # Requires internet access (to slack API) "test_start_raises_an_error_if_rtm_ws_url_is_not_returned" diff --git a/pkgs/development/python-modules/snakeviz/default.nix b/pkgs/development/python-modules/snakeviz/default.nix index c2fd38466ff64b..1c17e00c4a7862 100644 --- a/pkgs/development/python-modules/snakeviz/default.nix +++ b/pkgs/development/python-modules/snakeviz/default.nix @@ -38,10 +38,6 @@ buildPythonPackage rec { pythonImportsCheck = [ "snakeviz" ]; - preCheck = '' - export PATH="$PATH:$out/bin"; - ''; - meta = with lib; { description = "Browser based viewer for profiling data"; mainProgram = "snakeviz"; diff --git a/pkgs/development/python-modules/snowflake-connector-python/default.nix b/pkgs/development/python-modules/snowflake-connector-python/default.nix index f913ee43a2ff81..7691c6c9cafa59 100644 --- a/pkgs/development/python-modules/snowflake-connector-python/default.nix +++ b/pkgs/development/python-modules/snowflake-connector-python/default.nix @@ -74,10 +74,6 @@ buildPythonPackage rec { secure-local-storage = [ keyring ]; }; - preCheck = '' - export HOME=$(mktemp -d) - ''; - nativeCheckInputs = [ pytest-xdist pytestCheckHook diff --git a/pkgs/development/python-modules/softlayer/default.nix b/pkgs/development/python-modules/softlayer/default.nix index 49550048e3596a..0750294e410aec 100644 --- a/pkgs/development/python-modules/softlayer/default.nix +++ b/pkgs/development/python-modules/softlayer/default.nix @@ -68,12 +68,6 @@ buildPythonPackage rec { zeep ]; - # Otherwise soap_tests.py will fail to create directory - # Permission denied: '/homeless-shelter' - preCheck = '' - export HOME=$(mktemp -d) - ''; - pytestFlagsArray = lib.optionals stdenv.hostPlatform.isDarwin [ # SoftLayer.exceptions.TransportError: TransportError(0): ('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer')) "--deselect=tests/CLI/modules/hardware/hardware_basic_tests.py::HardwareCLITests" diff --git a/pkgs/development/python-modules/sphinx/default.nix b/pkgs/development/python-modules/sphinx/default.nix index f39899a2c5b6d6..8243374ebb36fc 100644 --- a/pkgs/development/python-modules/sphinx/default.nix +++ b/pkgs/development/python-modules/sphinx/default.nix @@ -95,10 +95,6 @@ buildPythonPackage rec { typing-extensions ]; - preCheck = '' - export HOME=$TMPDIR - ''; - disabledTests = [ # requires network access diff --git a/pkgs/development/python-modules/sqlfmt/default.nix b/pkgs/development/python-modules/sqlfmt/default.nix index 3d191ea49208aa..d3d339c1c00b63 100644 --- a/pkgs/development/python-modules/sqlfmt/default.nix +++ b/pkgs/development/python-modules/sqlfmt/default.nix @@ -54,11 +54,6 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.flatten (builtins.attrValues optional-dependencies); - preCheck = '' - export HOME=$(mktemp -d) - export PATH="$PATH:$out/bin"; - ''; - pythonImportsCheck = [ "sqlfmt" ]; meta = { diff --git a/pkgs/development/python-modules/ssort/default.nix b/pkgs/development/python-modules/ssort/default.nix index 6a60f6ab1e5397..b7218de3c724d1 100644 --- a/pkgs/development/python-modules/ssort/default.nix +++ b/pkgs/development/python-modules/ssort/default.nix @@ -31,10 +31,6 @@ buildPythonPackage rec { pyyaml ]; - preCheck = '' - export PATH=$out/bin:$PATH - ''; - meta = { description = "Automatically sorting python statements within a module"; homepage = "https://github.com/bwhmather/ssort"; diff --git a/pkgs/development/python-modules/staticjinja/default.nix b/pkgs/development/python-modules/staticjinja/default.nix index 2967f11b9aa67d..08bc1af1faa33b 100644 --- a/pkgs/development/python-modules/staticjinja/default.nix +++ b/pkgs/development/python-modules/staticjinja/default.nix @@ -48,11 +48,6 @@ buildPythonPackage rec { typing-extensions ]; - # The tests need to find and call the installed staticjinja executable - preCheck = '' - export PATH="$PATH:$out/bin"; - ''; - passthru.tests = { version = testers.testVersion { package = staticjinja; }; minimal-template = callPackage ./test-minimal-template { }; diff --git a/pkgs/development/python-modules/subarulink/default.nix b/pkgs/development/python-modules/subarulink/default.nix index 6adb88a40f3287..982b8f94973254 100644 --- a/pkgs/development/python-modules/subarulink/default.nix +++ b/pkgs/development/python-modules/subarulink/default.nix @@ -42,10 +42,6 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - preCheck = '' - export HOME=$(mktemp -d) - ''; - pythonImportsCheck = [ "subarulink" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/sunpy/default.nix b/pkgs/development/python-modules/sunpy/default.nix index cc7c01702c3dff..a20de8cea54ab8 100644 --- a/pkgs/development/python-modules/sunpy/default.nix +++ b/pkgs/development/python-modules/sunpy/default.nix @@ -105,10 +105,6 @@ buildPythonPackage rec { # darwin has write permission issues doCheck = stdenv.hostPlatform.isLinux; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTests = [ "rst" "test_sunpy_warnings_logging" diff --git a/pkgs/development/python-modules/tables/default.nix b/pkgs/development/python-modules/tables/default.nix index 7dc18cefc48142..2e4b5e2e89887b 100644 --- a/pkgs/development/python-modules/tables/default.nix +++ b/pkgs/development/python-modules/tables/default.nix @@ -85,7 +85,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytest ]; preCheck = '' - export HOME=$(mktemp -d) cd .. ''; diff --git a/pkgs/development/python-modules/timetagger/default.nix b/pkgs/development/python-modules/timetagger/default.nix index 15a94ffb05a74f..ddf62e1bcd8074 100644 --- a/pkgs/development/python-modules/timetagger/default.nix +++ b/pkgs/development/python-modules/timetagger/default.nix @@ -43,10 +43,6 @@ buildPythonPackage rec { uvicorn ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - nativeCheckInputs = [ nodejs pytestCheckHook diff --git a/pkgs/development/python-modules/timezonefinder/default.nix b/pkgs/development/python-modules/timezonefinder/default.nix index e869dc7ddc855b..3f1eecb2490ec2 100644 --- a/pkgs/development/python-modules/timezonefinder/default.nix +++ b/pkgs/development/python-modules/timezonefinder/default.nix @@ -46,11 +46,6 @@ buildPythonPackage rec { pythonImportsCheck = [ "timezonefinder" ]; - preCheck = '' - # Some tests need the CLI on the PATH - export PATH=$out/bin:$PATH - ''; - meta = with lib; { changelog = "https://github.com/jannikmi/timezonefinder/blob/${version}/CHANGELOG.rst"; description = "Module for finding the timezone of any point on earth (coordinates) offline"; diff --git a/pkgs/development/python-modules/tinygrad/default.nix b/pkgs/development/python-modules/tinygrad/default.nix index d181f339b5b792..68ec48efee1018 100644 --- a/pkgs/development/python-modules/tinygrad/default.nix +++ b/pkgs/development/python-modules/tinygrad/default.nix @@ -130,10 +130,6 @@ buildPythonPackage rec { transformers ] ++ networkx.optional-dependencies.extra; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTests = [ # Fixed in https://github.com/tinygrad/tinygrad/pull/7792 diff --git a/pkgs/development/python-modules/tokenizers/default.nix b/pkgs/development/python-modules/tokenizers/default.nix index 81d9c74792be8c..1f5c3cef2f46fd 100644 --- a/pkgs/development/python-modules/tokenizers/default.nix +++ b/pkgs/development/python-modules/tokenizers/default.nix @@ -125,10 +125,6 @@ buildPythonPackage rec { ln -s ${test-data}/* $sourceRoot/tests/data/ ''; - preCheck = '' - export HOME=$(mktemp -d); - ''; - pythonImportsCheck = [ "tokenizers" ]; disabledTests = [ diff --git a/pkgs/development/python-modules/tololib/default.nix b/pkgs/development/python-modules/tololib/default.nix index 9344f14dd0e8a3..dfe90b2a21ba4d 100644 --- a/pkgs/development/python-modules/tololib/default.nix +++ b/pkgs/development/python-modules/tololib/default.nix @@ -26,10 +26,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - preCheck = '' - export PATH="$PATH:$out/bin"; - ''; - pythonImportsCheck = [ "tololib" ]; # Network discovery doesn't work in the sandbox for darwin diff --git a/pkgs/development/python-modules/torch-geometric/default.nix b/pkgs/development/python-modules/torch-geometric/default.nix index d1342510d7af5a..86ac7da40c5532 100644 --- a/pkgs/development/python-modules/torch-geometric/default.nix +++ b/pkgs/development/python-modules/torch-geometric/default.nix @@ -150,10 +150,6 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTests = [ # TODO: try to re-enable when triton will have been updated to 3.0 diff --git a/pkgs/development/python-modules/torchinfo/default.nix b/pkgs/development/python-modules/torchinfo/default.nix index a10dad4b10c0ae..d4ded07f638878 100644 --- a/pkgs/development/python-modules/torchinfo/default.nix +++ b/pkgs/development/python-modules/torchinfo/default.nix @@ -43,10 +43,6 @@ buildPythonPackage rec { transformers ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTests = [ # Skip as it downloads pretrained weights (require network access) "test_eval_order_doesnt_matter" diff --git a/pkgs/development/python-modules/towncrier/default.nix b/pkgs/development/python-modules/towncrier/default.nix index 580d82133f2d43..41621e39cc5d53 100644 --- a/pkgs/development/python-modules/towncrier/default.nix +++ b/pkgs/development/python-modules/towncrier/default.nix @@ -38,10 +38,6 @@ buildPythonPackage rec { ++ lib.optionals (pythonOlder "3.10") [ importlib-resources ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; - preCheck = '' - export PATH=$out/bin:$PATH - ''; - nativeCheckInputs = [ git mock diff --git a/pkgs/development/python-modules/trackpy/default.nix b/pkgs/development/python-modules/trackpy/default.nix index 91945de8dc89a7..c2845fcddd4139 100644 --- a/pkgs/development/python-modules/trackpy/default.nix +++ b/pkgs/development/python-modules/trackpy/default.nix @@ -42,7 +42,6 @@ buildPythonPackage rec { preCheck = lib.optionalString stdenv.hostPlatform.isDarwin '' # specifically needed for darwin - export HOME=$(mktemp -d) mkdir -p $HOME/.matplotlib echo "backend: ps" > $HOME/.matplotlib/matplotlibrc ''; diff --git a/pkgs/development/python-modules/trx-python/default.nix b/pkgs/development/python-modules/trx-python/default.nix index 556cf6118ec908..679dc6b81ef05b 100644 --- a/pkgs/development/python-modules/trx-python/default.nix +++ b/pkgs/development/python-modules/trx-python/default.nix @@ -43,10 +43,6 @@ buildPythonPackage rec { psutil ]; - preCheck = '' - export HOME=$TMPDIR - ''; - pytestFlagsArray = [ "trx/tests" ]; disabledTestPaths = [ diff --git a/pkgs/development/python-modules/trytond/default.nix b/pkgs/development/python-modules/trytond/default.nix index c51766df6c907b..7ec222798668e2 100644 --- a/pkgs/development/python-modules/trytond/default.nix +++ b/pkgs/development/python-modules/trytond/default.nix @@ -67,7 +67,6 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; preCheck = '' - export HOME=$(mktemp -d) export TRYTOND_DATABASE_URI="sqlite://" export DB_NAME=":memory:"; ''; diff --git a/pkgs/development/python-modules/twisted/default.nix b/pkgs/development/python-modules/twisted/default.nix index c54791543489de..0d733ddd1b01df 100644 --- a/pkgs/development/python-modules/twisted/default.nix +++ b/pkgs/development/python-modules/twisted/default.nix @@ -204,15 +204,12 @@ buildPythonPackage rec { !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) ) optional-dependencies.tls; - preCheck = '' - export SOURCE_DATE_EPOCH=315532800 - export PATH=$out/bin:$PATH - ''; - checkPhase = '' runHook preCheck - # race conditions when running in paralell + + # race conditions when running in parallel ${python.interpreter} -m twisted.trial -j1 twisted + runHook postCheck ''; diff --git a/pkgs/development/python-modules/typer/default.nix b/pkgs/development/python-modules/typer/default.nix index dae031fe710e34..572d57eabb0cf0 100644 --- a/pkgs/development/python-modules/typer/default.nix +++ b/pkgs/development/python-modules/typer/default.nix @@ -55,10 +55,6 @@ buildPythonPackage rec { procps ]; - preCheck = '' - export HOME=$(mktemp -d); - ''; - disabledTests = [ "test_scripts" diff --git a/pkgs/development/python-modules/ubelt/default.nix b/pkgs/development/python-modules/ubelt/default.nix index 11491426bd0975..ad0f20265ebc75 100644 --- a/pkgs/development/python-modules/ubelt/default.nix +++ b/pkgs/development/python-modules/ubelt/default.nix @@ -47,10 +47,6 @@ buildPythonPackage rec { xdoctest ]; - preCheck = '' - export HOME=$TMPDIR - ''; - disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ # fail due to sandbox environment "CacheStamp.expired" diff --git a/pkgs/development/python-modules/umap-learn/default.nix b/pkgs/development/python-modules/umap-learn/default.nix index 9d91c6d94ffafb..2762cb2af49dce 100644 --- a/pkgs/development/python-modules/umap-learn/default.nix +++ b/pkgs/development/python-modules/umap-learn/default.nix @@ -69,10 +69,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - preCheck = '' - export HOME=$TMPDIR - ''; - disabledTests = [ # Plot functionality requires additional packages. # These test also fail with 'RuntimeError: cannot cache function' error. diff --git a/pkgs/development/python-modules/unstructured-inference/default.nix b/pkgs/development/python-modules/unstructured-inference/default.nix index 28991d89734a49..82df8351569b76 100644 --- a/pkgs/development/python-modules/unstructured-inference/default.nix +++ b/pkgs/development/python-modules/unstructured-inference/default.nix @@ -62,10 +62,6 @@ buildPythonPackage rec { # This dependency needs to be updated properly doCheck = false; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTests = [ # not sure why this fails "test_get_path_oob_move_deeply_nested" diff --git a/pkgs/development/python-modules/velbus-aio/default.nix b/pkgs/development/python-modules/velbus-aio/default.nix index f43ff25f655545..1267478ea00c24 100644 --- a/pkgs/development/python-modules/velbus-aio/default.nix +++ b/pkgs/development/python-modules/velbus-aio/default.nix @@ -41,10 +41,6 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - pythonImportsCheck = [ "velbusaio" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/virtualenv/default.nix b/pkgs/development/python-modules/virtualenv/default.nix index 660859b9576945..94f8d897686cd7 100644 --- a/pkgs/development/python-modules/virtualenv/default.nix +++ b/pkgs/development/python-modules/virtualenv/default.nix @@ -51,10 +51,6 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.optionals (!isPyPy) [ time-machine ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTestPaths = [ # Ignore tests which require network access "tests/unit/create/test_creator.py" diff --git a/pkgs/development/python-modules/wandb/default.nix b/pkgs/development/python-modules/wandb/default.nix index 321b42e7abfb18..e293a46c3b0b29 100644 --- a/pkgs/development/python-modules/wandb/default.nix +++ b/pkgs/development/python-modules/wandb/default.nix @@ -242,10 +242,6 @@ buildPythonPackage rec { tqdm ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTestPaths = [ # Require docker access "tests/release_tests/test_launch" diff --git a/pkgs/development/python-modules/wcmatch/default.nix b/pkgs/development/python-modules/wcmatch/default.nix index 4faf5b1805ceb6..99d7b77eaf1a69 100644 --- a/pkgs/development/python-modules/wcmatch/default.nix +++ b/pkgs/development/python-modules/wcmatch/default.nix @@ -23,10 +23,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTests = [ "TestTilde" ]; pythonImportsCheck = [ "wcmatch" ]; diff --git a/pkgs/development/python-modules/weaviate-client/default.nix b/pkgs/development/python-modules/weaviate-client/default.nix index fccbb289976eef..fb87b8fbee7f23 100644 --- a/pkgs/development/python-modules/weaviate-client/default.nix +++ b/pkgs/development/python-modules/weaviate-client/default.nix @@ -71,7 +71,6 @@ buildPythonPackage rec { ]; preCheck = '' - export HOME=$(mktemp -d) sed -i '/raw.githubusercontent.com/,+1d' test/test_util.py substituteInPlace pytest.ini \ --replace-fail "--benchmark-skip" "" diff --git a/pkgs/development/python-modules/wfuzz/default.nix b/pkgs/development/python-modules/wfuzz/default.nix index 71577257d22857..868d6fce80c3fb 100644 --- a/pkgs/development/python-modules/wfuzz/default.nix +++ b/pkgs/development/python-modules/wfuzz/default.nix @@ -60,10 +60,6 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTestPaths = [ # The tests are requiring a local web server "tests/test_acceptance.py" diff --git a/pkgs/development/python-modules/whispers/default.nix b/pkgs/development/python-modules/whispers/default.nix index ad550eafe5207e..1f4876b8ba808a 100644 --- a/pkgs/development/python-modules/whispers/default.nix +++ b/pkgs/development/python-modules/whispers/default.nix @@ -72,9 +72,6 @@ buildPythonPackage rec { # pinning test highly sensitive to semgrep version substituteInPlace tests/unit/test_main.py \ --replace-fail '("--ast", 421),' "" - - # Some tests need the binary available in PATH - export PATH=$out/bin:$PATH ''; pythonImportsCheck = [ "whispers" ]; diff --git a/pkgs/development/python-modules/wn/default.nix b/pkgs/development/python-modules/wn/default.nix index 822a5740d2dd78..71f7632e0d8e2a 100644 --- a/pkgs/development/python-modules/wn/default.nix +++ b/pkgs/development/python-modules/wn/default.nix @@ -30,10 +30,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - pythonImportsCheck = [ "wn" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/x-wr-timezone/default.nix b/pkgs/development/python-modules/x-wr-timezone/default.nix index 90a25e98ee742f..a2a092ce10be7f 100644 --- a/pkgs/development/python-modules/x-wr-timezone/default.nix +++ b/pkgs/development/python-modules/x-wr-timezone/default.nix @@ -41,10 +41,6 @@ buildPythonPackage rec { pytest-click ]; - preCheck = '' - export PATH=$out/bin:$PATH - ''; - pythonImportsCheck = [ "x_wr_timezone" ]; meta = { diff --git a/pkgs/development/python-modules/xdoctest/default.nix b/pkgs/development/python-modules/xdoctest/default.nix index db4865f48e29e7..affe0224a6203f 100644 --- a/pkgs/development/python-modules/xdoctest/default.nix +++ b/pkgs/development/python-modules/xdoctest/default.nix @@ -26,11 +26,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - preCheck = '' - export HOME=$TMPDIR - export PATH=$out/bin:$PATH - ''; - pythonImportsCheck = [ "xdoctest" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/yabadaba/default.nix b/pkgs/development/python-modules/yabadaba/default.nix index 7d5eb445d58de4..268ddc4dafb5cf 100644 --- a/pkgs/development/python-modules/yabadaba/default.nix +++ b/pkgs/development/python-modules/yabadaba/default.nix @@ -46,10 +46,6 @@ buildPythonPackage rec { pythonImportsCheck = [ "yabadaba" ]; - preCheck = '' - export HOME=$(mktemp -d); - ''; - meta = with lib; { description = "Abstraction layer allowing for common interactions with databases and records"; homepage = "https://github.com/usnistgov/yabadaba"; diff --git a/pkgs/development/python-modules/yamlfix/default.nix b/pkgs/development/python-modules/yamlfix/default.nix index b8747bc3f0fc84..cb4c8d06631183 100644 --- a/pkgs/development/python-modules/yamlfix/default.nix +++ b/pkgs/development/python-modules/yamlfix/default.nix @@ -44,10 +44,6 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - pythonImportsCheck = [ "yamlfix" ]; pytestFlagsArray = [ diff --git a/pkgs/development/python-modules/yte/default.nix b/pkgs/development/python-modules/yte/default.nix index 3afdf2d243c516..dc60b082e6c80a 100644 --- a/pkgs/development/python-modules/yte/default.nix +++ b/pkgs/development/python-modules/yte/default.nix @@ -42,11 +42,6 @@ buildPythonPackage rec { pytestFlagsArray = [ "tests.py" ]; - preCheck = '' - # The CLI test need yte on the PATH - export PATH=$out/bin:$PATH - ''; - meta = with lib; { description = "YAML template engine with Python expressions"; homepage = "https://github.com/koesterlab/yte"; diff --git a/pkgs/development/python-modules/zeep/default.nix b/pkgs/development/python-modules/zeep/default.nix index 139d4ba8ea54fd..f1fe04d7febd27 100644 --- a/pkgs/development/python-modules/zeep/default.nix +++ b/pkgs/development/python-modules/zeep/default.nix @@ -82,10 +82,6 @@ buildPythonPackage rec { "test_password_digest" ]; - preCheck = '' - export HOME=$TMPDIR - ''; - meta = with lib; { changelog = "https://github.com/mvantellingen/python-zeep/releases/tag/${version}"; description = "Python SOAP client";