diff --git a/pkgs/applications/networking/p2p/deluge/default.nix b/pkgs/applications/networking/p2p/deluge/default.nix index 9472c7b0aa0e..668bd4298d66 100644 --- a/pkgs/applications/networking/p2p/deluge/default.nix +++ b/pkgs/applications/networking/p2p/deluge/default.nix @@ -68,7 +68,7 @@ let nativeCheckInputs = with pypkgs; [ pytestCheckHook pytest-twisted - pytest-cov + pytest-cov-stub mock mccabe pylint diff --git a/pkgs/by-name/be/bepasty/package.nix b/pkgs/by-name/be/bepasty/package.nix index 51309a35da9b..4c7c92a84d8d 100644 --- a/pkgs/by-name/be/bepasty/package.nix +++ b/pkgs/by-name/be/bepasty/package.nix @@ -57,7 +57,7 @@ bepastyPython.pkgs.buildPythonPackage rec { build flake8 pytestCheckHook - pytest-cov + pytest-cov-stub selenium tox twine diff --git a/pkgs/by-name/bu/buku/package.nix b/pkgs/by-name/bu/buku/package.nix index edf76eadacc1..ee862b474df0 100644 --- a/pkgs/by-name/bu/buku/package.nix +++ b/pkgs/by-name/bu/buku/package.nix @@ -40,14 +40,14 @@ buildPythonApplication rec { nativeCheckInputs = [ hypothesis - pytest + pytestCheckHook pytest-recording pyyaml mypy-extensions click pylint flake8 - pytest-cov + pytest-cov-stub pyyaml ]; diff --git a/pkgs/by-name/ca/canaille/package.nix b/pkgs/by-name/ca/canaille/package.nix index d53f3648d64e..5c2d23b62323 100644 --- a/pkgs/by-name/ca/canaille/package.nix +++ b/pkgs/by-name/ca/canaille/package.nix @@ -58,7 +58,7 @@ python.pkgs.buildPythonApplication rec { coverage flask-webtest pyquery - pytest-cov + pytest-cov-stub pytest-httpserver pytest-lazy-fixtures pytest-smtpd diff --git a/pkgs/by-name/cl/cloudsmith-cli/package.nix b/pkgs/by-name/cl/cloudsmith-cli/package.nix index 130676bcc1dc..093ace78d56e 100644 --- a/pkgs/by-name/cl/cloudsmith-cli/package.nix +++ b/pkgs/by-name/cl/cloudsmith-cli/package.nix @@ -51,7 +51,7 @@ python3.pkgs.buildPythonApplication rec { nativeCheckInputs = with python3.pkgs; [ pytestCheckHook - pytest-cov + pytest-cov-stub ]; checkInputs = with python3.pkgs; [ diff --git a/pkgs/by-name/fa/fastcov/package.nix b/pkgs/by-name/fa/fastcov/package.nix index a118d28f7128..861199298db3 100644 --- a/pkgs/by-name/fa/fastcov/package.nix +++ b/pkgs/by-name/fa/fastcov/package.nix @@ -32,7 +32,7 @@ python3Packages.buildPythonPackage rec { dontUseCmakeConfigure = true; # cmake is used for testing nativeCheckInputs = with python3Packages; [ - pytest + pytestCheckHook pytest-cov-stub ]; diff --git a/pkgs/by-name/gi/git-pw/package.nix b/pkgs/by-name/gi/git-pw/package.nix index cf9bce02d574..083bea01547c 100644 --- a/pkgs/by-name/gi/git-pw/package.nix +++ b/pkgs/by-name/gi/git-pw/package.nix @@ -36,7 +36,7 @@ python3.pkgs.buildPythonApplication rec { nativeCheckInputs = with python3.pkgs; [ pytest-cov-stub - pytest + pytestCheckHook git ]; diff --git a/pkgs/by-name/gi/gitfs/package.nix b/pkgs/by-name/gi/gitfs/package.nix index 3b9cf7cfe17b..94c4b3868edd 100644 --- a/pkgs/by-name/gi/gitfs/package.nix +++ b/pkgs/by-name/gi/gitfs/package.nix @@ -27,8 +27,8 @@ python3Packages.buildPythonApplication rec { ''; nativeCheckInputs = with python3Packages; [ - pytest - pytest-cov + pytestCheckHook + pytest-cov-stub mock ]; propagatedBuildInputs = with python3Packages; [ @@ -38,8 +38,7 @@ python3Packages.buildPythonApplication rec { six ]; - checkPhase = "py.test"; - doCheck = false; + pythonImportsCheck = [ "gitfs" ]; meta = { description = "FUSE filesystem that fully integrates with git"; @@ -53,5 +52,8 @@ python3Packages.buildPythonApplication rec { platforms = lib.platforms.unix; maintainers = [ lib.maintainers.robbinch ]; mainProgram = "gitfs"; + # requires <=python39, otherwise you get this at runtime: + # AttributeError: module 'collections' has no attribute 'MutableMapping' + broken = true; }; } diff --git a/pkgs/by-name/me/memray/package.nix b/pkgs/by-name/me/memray/package.nix index b2a1bc80d454..09140b5e9bc2 100644 --- a/pkgs/by-name/me/memray/package.nix +++ b/pkgs/by-name/me/memray/package.nix @@ -44,7 +44,7 @@ python3Packages.buildPythonApplication rec { with python3Packages; [ ipython - pytest-cov # fix Unknown pytest.mark.no_cover + pytest-cov-stub # fix Unknown pytest.mark.no_cover pytest-textual-snapshot pytestCheckHook ] diff --git a/pkgs/by-name/pa/patroni/package.nix b/pkgs/by-name/pa/patroni/package.nix index c57cafd1f9c1..8f6b3ff4d935 100644 --- a/pkgs/by-name/pa/patroni/package.nix +++ b/pkgs/by-name/pa/patroni/package.nix @@ -44,7 +44,7 @@ python3Packages.buildPythonApplication rec { flake8 mock pytestCheckHook - pytest-cov + pytest-cov-stub requests versionCheckHook writableTmpDirAsHomeHook diff --git a/pkgs/by-name/re/rexi/package.nix b/pkgs/by-name/re/rexi/package.nix index cee0aaf7a501..b8feee0ad67b 100644 --- a/pkgs/by-name/re/rexi/package.nix +++ b/pkgs/by-name/re/rexi/package.nix @@ -27,9 +27,9 @@ python3Packages.buildPythonApplication rec { ]; nativeCheckInputs = with python3Packages; [ - pytest + pytestCheckHook pytest-asyncio - pytest-cov + pytest-cov-stub ]; pythonRelaxDeps = [ diff --git a/pkgs/by-name/so/solaar/package.nix b/pkgs/by-name/so/solaar/package.nix index 56a176b95886..f9f2348cfe33 100644 --- a/pkgs/by-name/so/solaar/package.nix +++ b/pkgs/by-name/so/solaar/package.nix @@ -58,7 +58,7 @@ python3Packages.buildPythonApplication rec { nativeCheckInputs = with python3Packages; [ pytestCheckHook pytest-mock - pytest-cov + pytest-cov-stub ]; # the -cli symlink is just to maintain compabilility with older versions where diff --git a/pkgs/by-name/un/unblob/package.nix b/pkgs/by-name/un/unblob/package.nix index f6228fdcedf6..c5393e37f379 100644 --- a/pkgs/by-name/un/unblob/package.nix +++ b/pkgs/by-name/un/unblob/package.nix @@ -116,7 +116,7 @@ python3.pkgs.buildPythonApplication rec { with python3.pkgs; [ pytestCheckHook - pytest-cov + pytest-cov # cannot use stub versionCheckHook ] ++ runtimeDeps; diff --git a/pkgs/by-name/vi/vim-vint/package.nix b/pkgs/by-name/vi/vim-vint/package.nix index 52edbdf0d289..68ceeffa4d82 100644 --- a/pkgs/by-name/vi/vim-vint/package.nix +++ b/pkgs/by-name/vi/vim-vint/package.nix @@ -1,7 +1,7 @@ { lib, python3Packages, - fetchPypi, + fetchFromGitHub, }: with python3Packages; @@ -10,17 +10,19 @@ buildPythonApplication rec { pname = "vim-vint"; version = "0.3.21"; - src = fetchPypi { - inherit pname version; - sha256 = "15qdh8fby9xgfjxidcfv1xmrqqrxxapky7zmyn46qx1abhp9piax"; + src = fetchFromGitHub { + owner = "Vimjas"; + repo = "vint"; + tag = "v${version}"; + hash = "sha256-A0yXDkB/b9kEEXSoLeqVdmdm4p2PYL2QHqbF4FgAn30="; }; # For python 3.5 > version > 2.7 , a nested dependency (pythonPackages.hypothesis) fails. disabled = !pythonAtLeast "3.5"; nativeCheckInputs = [ - pytest - pytest-cov + pytestCheckHook + pytest-cov-stub ]; propagatedBuildInputs = [ ansicolor @@ -29,10 +31,13 @@ buildPythonApplication rec { setuptools ]; - # Unpin test dependency versions. This is fixed in master but not yet released. preCheck = '' - sed -i 's/==.*//g' test-requirements.txt - sed -i 's/mock == 1.0.1/mock/g' setup.py + substituteInPlace \ + test/acceptance/test_cli.py \ + test/acceptance/test_cli_vital.py \ + --replace-fail \ + "cmd = ['bin/vint'" \ + "cmd = ['$out/bin/vint'" ''; meta = with lib; { diff --git a/pkgs/by-name/vu/vulnix/package.nix b/pkgs/by-name/vu/vulnix/package.nix index 7ce9413457d8..a31a513a6402 100644 --- a/pkgs/by-name/vu/vulnix/package.nix +++ b/pkgs/by-name/vu/vulnix/package.nix @@ -28,8 +28,8 @@ python3Packages.buildPythonApplication rec { nativeCheckInputs = with python3Packages; [ freezegun - pytest - pytest-cov + pytestCheckHook + pytest-cov-stub ]; propagatedBuildInputs = @@ -48,7 +48,7 @@ python3Packages.buildPythonApplication rec { postBuild = "make -C doc"; - checkPhase = "py.test src/vulnix"; + pytestFlagsArray = [ "src/vulnix" ]; postInstall = '' install -D -t $doc/share/doc/vulnix README.rst CHANGES.rst diff --git a/pkgs/by-name/zu/zulip-term/package.nix b/pkgs/by-name/zu/zulip-term/package.nix index d8e3da694844..3ce923be7dba 100644 --- a/pkgs/by-name/zu/zulip-term/package.nix +++ b/pkgs/by-name/zu/zulip-term/package.nix @@ -67,7 +67,7 @@ buildPythonApplication rec { ] ++ (with python3.pkgs; [ pytestCheckHook - pytest-cov + pytest-cov-stub pytest-mock ]); diff --git a/pkgs/development/python-modules/colcon-mixin/default.nix b/pkgs/development/python-modules/colcon-mixin/default.nix index b2821cda8e44..d5a7b7bdb4f0 100644 --- a/pkgs/development/python-modules/colcon-mixin/default.nix +++ b/pkgs/development/python-modules/colcon-mixin/default.nix @@ -3,7 +3,7 @@ buildPythonPackage, fetchFromGitHub, colcon, - pytest-cov, + pytest-cov-stub, pytestCheckHook, setuptools, scspell, @@ -29,7 +29,7 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ - pytest-cov + pytest-cov-stub pytestCheckHook scspell writableTmpDirAsHomeHook diff --git a/pkgs/development/python-modules/colcon-ros-domain-id-coordinator/default.nix b/pkgs/development/python-modules/colcon-ros-domain-id-coordinator/default.nix index cf3c58ee1142..84650e2d6352 100644 --- a/pkgs/development/python-modules/colcon-ros-domain-id-coordinator/default.nix +++ b/pkgs/development/python-modules/colcon-ros-domain-id-coordinator/default.nix @@ -4,7 +4,7 @@ colcon, fetchFromGitHub, pytestCheckHook, - pytest-cov, + pytest-cov-stub, pytest-repeat, pytest-rerunfailures, scspell, @@ -30,7 +30,7 @@ buildPythonPackage { nativeCheckInputs = [ pytestCheckHook - pytest-cov + pytest-cov-stub pytest-repeat pytest-rerunfailures scspell diff --git a/pkgs/development/python-modules/deltalake/default.nix b/pkgs/development/python-modules/deltalake/default.nix index 5318e09a17ac..8732a1b2aa1a 100644 --- a/pkgs/development/python-modules/deltalake/default.nix +++ b/pkgs/development/python-modules/deltalake/default.nix @@ -12,7 +12,7 @@ polars, pytestCheckHook, pytest-benchmark, - pytest-cov, + pytest-cov-stub, pytest-mock, pandas, azure-storage-blob, @@ -64,7 +64,7 @@ buildPythonPackage rec { pandas polars pytest-benchmark - pytest-cov + pytest-cov-stub pytest-mock azure-storage-blob ]; diff --git a/pkgs/development/python-modules/dramatiq-abort/default.nix b/pkgs/development/python-modules/dramatiq-abort/default.nix index 165a209f21ee..b4130f701bfe 100644 --- a/pkgs/development/python-modules/dramatiq-abort/default.nix +++ b/pkgs/development/python-modules/dramatiq-abort/default.nix @@ -4,7 +4,7 @@ fetchFromGitHub, gevent, pytestCheckHook, - pytest-cov, + pytest-cov-stub, dramatiq, redis, setuptools, @@ -37,7 +37,7 @@ buildPythonPackage rec { nativeCheckInputs = [ redis pytestCheckHook - pytest-cov + pytest-cov-stub ]; pythonImportsCheck = [ "dramatiq_abort" ]; diff --git a/pkgs/development/python-modules/haystack-ai/default.nix b/pkgs/development/python-modules/haystack-ai/default.nix index 2c367cc70cb1..dec9d6684d27 100644 --- a/pkgs/development/python-modules/haystack-ai/default.nix +++ b/pkgs/development/python-modules/haystack-ai/default.nix @@ -42,7 +42,7 @@ pylint, pytest, pytest-asyncio, - pytest-cov-stub, + pytest-cov, # , pytest-custom-exit-code python-multipart, reno, @@ -167,7 +167,7 @@ buildPythonPackage rec { pylint pytest pytest-asyncio - pytest-cov-stub + pytest-cov # pytest-custom-exit-code python-multipart reno diff --git a/pkgs/development/python-modules/iocapture/default.nix b/pkgs/development/python-modules/iocapture/default.nix index 0e44cad6916b..715abd657b56 100644 --- a/pkgs/development/python-modules/iocapture/default.nix +++ b/pkgs/development/python-modules/iocapture/default.nix @@ -3,7 +3,7 @@ buildPythonPackage, fetchPypi, flexmock, - pytest, + pytestCheckHook, pytest-cov-stub, six, }: @@ -20,7 +20,7 @@ buildPythonPackage rec { nativeCheckInputs = [ flexmock - pytest + pytestCheckHook pytest-cov-stub six ]; diff --git a/pkgs/development/python-modules/langchain-perplexity/default.nix b/pkgs/development/python-modules/langchain-perplexity/default.nix index 22d471f80f47..acc783d3b46b 100644 --- a/pkgs/development/python-modules/langchain-perplexity/default.nix +++ b/pkgs/development/python-modules/langchain-perplexity/default.nix @@ -13,7 +13,7 @@ # tests langchain-tests, pytest-asyncio, - pytest-cov, + pytest-cov-stub, pytest-mock, pytestCheckHook, @@ -51,7 +51,7 @@ buildPythonPackage rec { nativeCheckInputs = [ langchain-tests pytest-asyncio - pytest-cov + pytest-cov-stub pytest-mock pytestCheckHook ]; diff --git a/pkgs/development/python-modules/nonbloat-db/default.nix b/pkgs/development/python-modules/nonbloat-db/default.nix index 7e3d3f9a70d2..b87e03a9604c 100644 --- a/pkgs/development/python-modules/nonbloat-db/default.nix +++ b/pkgs/development/python-modules/nonbloat-db/default.nix @@ -14,7 +14,7 @@ # tests pytestCheckHook, pytest-asyncio, - pytest-cov, + pytest-cov-stub, pytest-mock, pytest-randomly, faker, @@ -45,7 +45,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook pytest-asyncio - pytest-cov + pytest-cov-stub pytest-mock pytest-randomly faker diff --git a/pkgs/development/python-modules/pdfplumber/default.nix b/pkgs/development/python-modules/pdfplumber/default.nix index 6a8b080339cf..876324a0c03c 100644 --- a/pkgs/development/python-modules/pdfplumber/default.nix +++ b/pkgs/development/python-modules/pdfplumber/default.nix @@ -11,7 +11,7 @@ pdfminer-six, pillow, pypdfium2, - pytest-cov, + pytest-cov-stub, pytest-parallel, pytestCheckHook, types-pillow, @@ -44,7 +44,7 @@ buildPythonPackage rec { nbexec pandas pandas-stubs - pytest-cov + pytest-cov-stub pytest-parallel pytestCheckHook types-pillow diff --git a/pkgs/development/python-modules/plaster/default.nix b/pkgs/development/python-modules/plaster/default.nix index 0651404dc477..b01e94bc1d57 100644 --- a/pkgs/development/python-modules/plaster/default.nix +++ b/pkgs/development/python-modules/plaster/default.nix @@ -1,7 +1,8 @@ { + lib, buildPythonPackage, fetchPypi, - pytest, + pytestCheckHook, pytest-cov-stub, }: @@ -15,12 +16,15 @@ buildPythonPackage rec { hash = "sha256-+L78VL+MEUfBCrQCl+yEwmdvotTqXW9STZQ2qAB075g="; }; - checkPhase = '' - py.test - ''; - nativeCheckInputs = [ - pytest + pytestCheckHook pytest-cov-stub ]; + + meta = { + description = "Loader interface around multiple config file formats"; + homepage = "https://pypi.org/project/plaster/"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ ]; + }; } diff --git a/pkgs/development/python-modules/polars/default.nix b/pkgs/development/python-modules/polars/default.nix index 0cbeee4d65a1..c2dafd53a442 100644 --- a/pkgs/development/python-modules/polars/default.nix +++ b/pkgs/development/python-modules/polars/default.nix @@ -9,7 +9,7 @@ pkgs, # zstd hidden by python3Packages.zstd pytestCheckHook, pytest-codspeed ? null, # Not in Nixpkgs - pytest-cov, + pytest-cov-stub, pytest-xdist, pytest-benchmark, rustc, @@ -229,7 +229,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook pytest-codspeed - pytest-cov + pytest-cov-stub pytest-xdist pytest-benchmark ]; diff --git a/pkgs/development/python-modules/property-manager/default.nix b/pkgs/development/python-modules/property-manager/default.nix index 71fa0e1aeddb..02c0b6accd46 100644 --- a/pkgs/development/python-modules/property-manager/default.nix +++ b/pkgs/development/python-modules/property-manager/default.nix @@ -5,7 +5,7 @@ humanfriendly, verboselogs, coloredlogs, - pytest, + pytestCheckHook, pytest-cov-stub, }: @@ -27,7 +27,7 @@ buildPythonPackage rec { verboselogs ]; nativeCheckInputs = [ - pytest + pytestCheckHook pytest-cov-stub ]; diff --git a/pkgs/development/python-modules/pygerber/default.nix b/pkgs/development/python-modules/pygerber/default.nix index 79017768fd90..cd5c62f8dc9f 100644 --- a/pkgs/development/python-modules/pygerber/default.nix +++ b/pkgs/development/python-modules/pygerber/default.nix @@ -26,7 +26,6 @@ dulwich, tzlocal, pytest-xdist, - pytest-cov, pytest-lsp, pytest-asyncio, pytest-mock, @@ -77,7 +76,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytest-asyncio - pytest-cov pytest-xdist pytest-lsp pytest-mock @@ -94,6 +92,8 @@ buildPythonPackage rec { "test/gerberx3/test_language_server/tests.py" ]; + pytestFlagsArray = [ "--override-ini required_plugins=''" ]; + pythonImportsCheck = [ "pygerber" ]; meta = { diff --git a/pkgs/development/python-modules/pyscaffold/default.nix b/pkgs/development/python-modules/pyscaffold/default.nix index 5a0b13086071..127ca5bb96c2 100644 --- a/pkgs/development/python-modules/pyscaffold/default.nix +++ b/pkgs/development/python-modules/pyscaffold/default.nix @@ -23,7 +23,7 @@ certifi, flake8, pytest, - pytest-cov-stub, + pytest-cov, pytest-randomly, pytest-xdist, sphinx, @@ -80,7 +80,7 @@ buildPythonPackage rec { flake8 pre-commit pytest - pytest-cov-stub + pytest-cov pytest-randomly pytest-xdist setuptools diff --git a/pkgs/development/python-modules/pyscaffoldext-cookiecutter/default.nix b/pkgs/development/python-modules/pyscaffoldext-cookiecutter/default.nix index d5ba7c9b6d82..a34bf93334e9 100644 --- a/pkgs/development/python-modules/pyscaffoldext-cookiecutter/default.nix +++ b/pkgs/development/python-modules/pyscaffoldext-cookiecutter/default.nix @@ -11,7 +11,7 @@ configupdater, pre-commit, pytest, - pytest-cov-stub, + pytest-cov, pytest-xdist, tox, virtualenv, @@ -44,7 +44,7 @@ buildPythonPackage rec { configupdater pre-commit pytest - pytest-cov-stub + pytest-cov pytest-xdist setuptools-scm tox diff --git a/pkgs/development/python-modules/pyscaffoldext-custom-extension/default.nix b/pkgs/development/python-modules/pyscaffoldext-custom-extension/default.nix index 0ee14743b5e9..ee4bc3aa728b 100644 --- a/pkgs/development/python-modules/pyscaffoldext-custom-extension/default.nix +++ b/pkgs/development/python-modules/pyscaffoldext-custom-extension/default.nix @@ -11,7 +11,7 @@ pyscaffold, pre-commit, pytest, - pytest-cov-stub, + pytest-cov, pytest-xdist, tox, virtualenv, @@ -45,7 +45,7 @@ buildPythonPackage rec { configupdater pre-commit pytest - pytest-cov-stub + pytest-cov pytest-xdist setuptools-scm tox diff --git a/pkgs/development/python-modules/pyscaffoldext-django/default.nix b/pkgs/development/python-modules/pyscaffoldext-django/default.nix index 6270dbc2d1d5..e0e9ca4cf69f 100644 --- a/pkgs/development/python-modules/pyscaffoldext-django/default.nix +++ b/pkgs/development/python-modules/pyscaffoldext-django/default.nix @@ -10,7 +10,7 @@ configupdater, pre-commit, pytest, - pytest-cov-stub, + pytest-cov, pytest-xdist, tox, virtualenv, @@ -42,7 +42,7 @@ buildPythonPackage rec { configupdater pre-commit pytest - pytest-cov-stub + pytest-cov pytest-xdist setuptools-scm tox diff --git a/pkgs/development/python-modules/pyscaffoldext-dsproject/default.nix b/pkgs/development/python-modules/pyscaffoldext-dsproject/default.nix index cc70d4098ab8..9763ba8ace95 100644 --- a/pkgs/development/python-modules/pyscaffoldext-dsproject/default.nix +++ b/pkgs/development/python-modules/pyscaffoldext-dsproject/default.nix @@ -11,7 +11,7 @@ configupdater, pre-commit, pytest, - pytest-cov-stub, + pytest-cov, pytest-xdist, tox, virtualenv, @@ -44,7 +44,7 @@ buildPythonPackage rec { configupdater pre-commit pytest - pytest-cov-stub + pytest-cov pytest-xdist setuptools-scm tox diff --git a/pkgs/development/python-modules/pyscaffoldext-markdown/default.nix b/pkgs/development/python-modules/pyscaffoldext-markdown/default.nix index d84320a77a95..4d6157ed4d99 100644 --- a/pkgs/development/python-modules/pyscaffoldext-markdown/default.nix +++ b/pkgs/development/python-modules/pyscaffoldext-markdown/default.nix @@ -11,7 +11,7 @@ configupdater, pre-commit, pytest, - pytest-cov-stub, + pytest-cov, pytest-xdist, tox, twine, @@ -46,7 +46,7 @@ buildPythonPackage rec { configupdater pre-commit pytest - pytest-cov-stub + pytest-cov pytest-xdist setuptools-scm tox diff --git a/pkgs/development/python-modules/pyscaffoldext-travis/default.nix b/pkgs/development/python-modules/pyscaffoldext-travis/default.nix index 4eeaafd14c22..6c08f6c23adc 100644 --- a/pkgs/development/python-modules/pyscaffoldext-travis/default.nix +++ b/pkgs/development/python-modules/pyscaffoldext-travis/default.nix @@ -10,7 +10,7 @@ configupdater, pre-commit, pytest, - pytest-cov-stub, + pytest-cov, pytest-xdist, tox, virtualenv, @@ -42,7 +42,7 @@ buildPythonPackage rec { configupdater pre-commit pytest - pytest-cov-stub + pytest-cov pytest-xdist setuptools-scm tox diff --git a/pkgs/development/python-modules/reikna/default.nix b/pkgs/development/python-modules/reikna/default.nix index 6dee74d2b712..ab32dd6e5aaf 100644 --- a/pkgs/development/python-modules/reikna/default.nix +++ b/pkgs/development/python-modules/reikna/default.nix @@ -4,7 +4,7 @@ buildPythonPackage, sphinx, pytest-cov-stub, - pytest, + pytestCheckHook, mako, numpy, funcsigs, @@ -27,7 +27,7 @@ buildPythonPackage rec { nativeCheckInputs = [ sphinx pytest-cov-stub - pytest + pytestCheckHook ]; propagatedBuildInputs = @@ -39,10 +39,6 @@ buildPythonPackage rec { ++ lib.optional withCuda pycuda ++ lib.optional withOpenCL pyopencl; - checkPhase = '' - py.test - ''; - # Requires device doCheck = false; diff --git a/pkgs/development/python-modules/sanic-ext/default.nix b/pkgs/development/python-modules/sanic-ext/default.nix index 581b44962816..17c33e3563fa 100644 --- a/pkgs/development/python-modules/sanic-ext/default.nix +++ b/pkgs/development/python-modules/sanic-ext/default.nix @@ -18,7 +18,7 @@ msgspec, pydantic, pytest, - pytest-cov, + pytest-cov-stub, pytest-asyncio, tox, jinja2, @@ -51,7 +51,7 @@ buildPythonPackage rec { msgspec pydantic pytest - pytest-cov + pytest-cov-stub pytest-asyncio tox jinja2 diff --git a/pkgs/development/python-modules/sklearn-compat/default.nix b/pkgs/development/python-modules/sklearn-compat/default.nix index 3fd17c6cade4..e4bdc1a2d85f 100644 --- a/pkgs/development/python-modules/sklearn-compat/default.nix +++ b/pkgs/development/python-modules/sklearn-compat/default.nix @@ -6,7 +6,7 @@ scikit-learn, pandas, pytestCheckHook, - pytest-cov, + pytest-cov-stub, pytest-xdist, pytz, }: @@ -34,7 +34,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pandas pytestCheckHook - pytest-cov + pytest-cov-stub pytest-xdist pytz ]; diff --git a/pkgs/servers/isso/default.nix b/pkgs/servers/isso/default.nix index 7428d2d6cbba..26bec1355f12 100644 --- a/pkgs/servers/isso/default.nix +++ b/pkgs/servers/isso/default.nix @@ -66,14 +66,10 @@ buildPythonApplication rec { ''; nativeCheckInputs = [ - pytest - pytest-cov + pytestCheckHook + pytest-cov-stub ]; - checkPhase = '' - pytest - ''; - passthru.tests = { inherit (nixosTests) isso; }; meta = with lib; { diff --git a/pkgs/tools/audio/beets/common.nix b/pkgs/tools/audio/beets/common.nix index c914a44ef616..e12817b0cc7c 100644 --- a/pkgs/tools/audio/beets/common.nix +++ b/pkgs/tools/audio/beets/common.nix @@ -145,7 +145,7 @@ python3Packages.buildPythonApplication { with python3Packages; [ pytestCheckHook - pytest-cov + pytest-cov-stub mock rarfile responses