treewide: use pytest-cov-stub (#417430)

Changed files
+95 -92
pkgs
applications
networking
p2p
deluge
by-name
be
bepasty
bu
ca
canaille
cl
cloudsmith-cli
fa
fastcov
gi
git-pw
gitfs
me
memray
pa
patroni
re
so
solaar
un
unblob
vi
vim-vint
vu
vulnix
zu
zulip-term
development
python-modules
colcon-mixin
colcon-ros-domain-id-coordinator
deltalake
dramatiq-abort
haystack-ai
iocapture
langchain-perplexity
nonbloat-db
pdfplumber
plaster
polars
property-manager
pygerber
pyscaffold
pyscaffoldext-cookiecutter
pyscaffoldext-custom-extension
pyscaffoldext-django
pyscaffoldext-dsproject
pyscaffoldext-markdown
pyscaffoldext-travis
reikna
sanic-ext
sklearn-compat
servers
tools
audio
beets
+1 -1
pkgs/applications/networking/p2p/deluge/default.nix
···
nativeCheckInputs = with pypkgs; [
pytestCheckHook
pytest-twisted
-
pytest-cov
+
pytest-cov-stub
mock
mccabe
pylint
+1 -1
pkgs/by-name/be/bepasty/package.nix
···
build
flake8
pytestCheckHook
-
pytest-cov
+
pytest-cov-stub
selenium
tox
twine
+2 -2
pkgs/by-name/bu/buku/package.nix
···
nativeCheckInputs = [
hypothesis
-
pytest
+
pytestCheckHook
pytest-recording
pyyaml
mypy-extensions
click
pylint
flake8
-
pytest-cov
+
pytest-cov-stub
pyyaml
];
+1 -1
pkgs/by-name/ca/canaille/package.nix
···
coverage
flask-webtest
pyquery
-
pytest-cov
+
pytest-cov-stub
pytest-httpserver
pytest-lazy-fixtures
pytest-smtpd
+1 -1
pkgs/by-name/cl/cloudsmith-cli/package.nix
···
nativeCheckInputs = with python3.pkgs; [
pytestCheckHook
-
pytest-cov
+
pytest-cov-stub
];
checkInputs = with python3.pkgs; [
+1 -1
pkgs/by-name/fa/fastcov/package.nix
···
dontUseCmakeConfigure = true; # cmake is used for testing
nativeCheckInputs = with python3Packages; [
-
pytest
+
pytestCheckHook
pytest-cov-stub
];
+1 -1
pkgs/by-name/gi/git-pw/package.nix
···
nativeCheckInputs = with python3.pkgs; [
pytest-cov-stub
-
pytest
+
pytestCheckHook
git
];
+6 -4
pkgs/by-name/gi/gitfs/package.nix
···
'';
nativeCheckInputs = with python3Packages; [
-
pytest
-
pytest-cov
+
pytestCheckHook
+
pytest-cov-stub
mock
];
propagatedBuildInputs = with python3Packages; [
···
six
];
-
checkPhase = "py.test";
-
doCheck = false;
+
pythonImportsCheck = [ "gitfs" ];
meta = {
description = "FUSE filesystem that fully integrates with git";
···
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;
};
}
+1 -1
pkgs/by-name/me/memray/package.nix
···
with python3Packages;
[
ipython
-
pytest-cov # fix Unknown pytest.mark.no_cover
+
pytest-cov-stub # fix Unknown pytest.mark.no_cover
pytest-textual-snapshot
pytestCheckHook
]
+1 -1
pkgs/by-name/pa/patroni/package.nix
···
flake8
mock
pytestCheckHook
-
pytest-cov
+
pytest-cov-stub
requests
versionCheckHook
writableTmpDirAsHomeHook
+2 -2
pkgs/by-name/re/rexi/package.nix
···
];
nativeCheckInputs = with python3Packages; [
-
pytest
+
pytestCheckHook
pytest-asyncio
-
pytest-cov
+
pytest-cov-stub
];
pythonRelaxDeps = [
+1 -1
pkgs/by-name/so/solaar/package.nix
···
nativeCheckInputs = with python3Packages; [
pytestCheckHook
pytest-mock
-
pytest-cov
+
pytest-cov-stub
];
# the -cli symlink is just to maintain compabilility with older versions where
+1 -1
pkgs/by-name/un/unblob/package.nix
···
with python3.pkgs;
[
pytestCheckHook
-
pytest-cov
+
pytest-cov # cannot use stub
versionCheckHook
]
++ runtimeDeps;
+14 -9
pkgs/by-name/vi/vim-vint/package.nix
···
{
lib,
python3Packages,
-
fetchPypi,
+
fetchFromGitHub,
}:
with python3Packages;
···
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
···
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; {
+3 -3
pkgs/by-name/vu/vulnix/package.nix
···
nativeCheckInputs = with python3Packages; [
freezegun
-
pytest
-
pytest-cov
+
pytestCheckHook
+
pytest-cov-stub
];
propagatedBuildInputs =
···
postBuild = "make -C doc";
-
checkPhase = "py.test src/vulnix";
+
pytestFlagsArray = [ "src/vulnix" ];
postInstall = ''
install -D -t $doc/share/doc/vulnix README.rst CHANGES.rst
+1 -1
pkgs/by-name/zu/zulip-term/package.nix
···
]
++ (with python3.pkgs; [
pytestCheckHook
-
pytest-cov
+
pytest-cov-stub
pytest-mock
]);
+2 -2
pkgs/development/python-modules/colcon-mixin/default.nix
···
buildPythonPackage,
fetchFromGitHub,
colcon,
-
pytest-cov,
+
pytest-cov-stub,
pytestCheckHook,
setuptools,
scspell,
···
];
nativeCheckInputs = [
-
pytest-cov
+
pytest-cov-stub
pytestCheckHook
scspell
writableTmpDirAsHomeHook
+2 -2
pkgs/development/python-modules/colcon-ros-domain-id-coordinator/default.nix
···
colcon,
fetchFromGitHub,
pytestCheckHook,
-
pytest-cov,
+
pytest-cov-stub,
pytest-repeat,
pytest-rerunfailures,
scspell,
···
nativeCheckInputs = [
pytestCheckHook
-
pytest-cov
+
pytest-cov-stub
pytest-repeat
pytest-rerunfailures
scspell
+2 -2
pkgs/development/python-modules/deltalake/default.nix
···
polars,
pytestCheckHook,
pytest-benchmark,
-
pytest-cov,
+
pytest-cov-stub,
pytest-mock,
pandas,
azure-storage-blob,
···
pandas
polars
pytest-benchmark
-
pytest-cov
+
pytest-cov-stub
pytest-mock
azure-storage-blob
];
+2 -2
pkgs/development/python-modules/dramatiq-abort/default.nix
···
fetchFromGitHub,
gevent,
pytestCheckHook,
-
pytest-cov,
+
pytest-cov-stub,
dramatiq,
redis,
setuptools,
···
nativeCheckInputs = [
redis
pytestCheckHook
-
pytest-cov
+
pytest-cov-stub
];
pythonImportsCheck = [ "dramatiq_abort" ];
+2 -2
pkgs/development/python-modules/haystack-ai/default.nix
···
pylint,
pytest,
pytest-asyncio,
-
pytest-cov-stub,
+
pytest-cov,
# , pytest-custom-exit-code
python-multipart,
reno,
···
pylint
pytest
pytest-asyncio
-
pytest-cov-stub
+
pytest-cov
# pytest-custom-exit-code
python-multipart
reno
+2 -2
pkgs/development/python-modules/iocapture/default.nix
···
buildPythonPackage,
fetchPypi,
flexmock,
-
pytest,
+
pytestCheckHook,
pytest-cov-stub,
six,
}:
···
nativeCheckInputs = [
flexmock
-
pytest
+
pytestCheckHook
pytest-cov-stub
six
];
+2 -2
pkgs/development/python-modules/langchain-perplexity/default.nix
···
# tests
langchain-tests,
pytest-asyncio,
-
pytest-cov,
+
pytest-cov-stub,
pytest-mock,
pytestCheckHook,
···
nativeCheckInputs = [
langchain-tests
pytest-asyncio
-
pytest-cov
+
pytest-cov-stub
pytest-mock
pytestCheckHook
];
+2 -2
pkgs/development/python-modules/nonbloat-db/default.nix
···
# tests
pytestCheckHook,
pytest-asyncio,
-
pytest-cov,
+
pytest-cov-stub,
pytest-mock,
pytest-randomly,
faker,
···
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
-
pytest-cov
+
pytest-cov-stub
pytest-mock
pytest-randomly
faker
+2 -2
pkgs/development/python-modules/pdfplumber/default.nix
···
pdfminer-six,
pillow,
pypdfium2,
-
pytest-cov,
+
pytest-cov-stub,
pytest-parallel,
pytestCheckHook,
types-pillow,
···
nbexec
pandas
pandas-stubs
-
pytest-cov
+
pytest-cov-stub
pytest-parallel
pytestCheckHook
types-pillow
+10 -6
pkgs/development/python-modules/plaster/default.nix
···
{
+
lib,
buildPythonPackage,
fetchPypi,
-
pytest,
+
pytestCheckHook,
pytest-cov-stub,
}:
···
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; [ ];
+
};
}
+2 -2
pkgs/development/python-modules/polars/default.nix
···
pkgs, # zstd hidden by python3Packages.zstd
pytestCheckHook,
pytest-codspeed ? null, # Not in Nixpkgs
-
pytest-cov,
+
pytest-cov-stub,
pytest-xdist,
pytest-benchmark,
rustc,
···
nativeCheckInputs = [
pytestCheckHook
pytest-codspeed
-
pytest-cov
+
pytest-cov-stub
pytest-xdist
pytest-benchmark
];
+2 -2
pkgs/development/python-modules/property-manager/default.nix
···
humanfriendly,
verboselogs,
coloredlogs,
-
pytest,
+
pytestCheckHook,
pytest-cov-stub,
}:
···
verboselogs
];
nativeCheckInputs = [
-
pytest
+
pytestCheckHook
pytest-cov-stub
];
+2 -2
pkgs/development/python-modules/pygerber/default.nix
···
dulwich,
tzlocal,
pytest-xdist,
-
pytest-cov,
pytest-lsp,
pytest-asyncio,
pytest-mock,
···
nativeCheckInputs = [
pytest-asyncio
-
pytest-cov
pytest-xdist
pytest-lsp
pytest-mock
···
"test/gerberx3/test_assets.py"
"test/gerberx3/test_language_server/tests.py"
];
+
+
pytestFlagsArray = [ "--override-ini required_plugins=''" ];
pythonImportsCheck = [ "pygerber" ];
+2 -2
pkgs/development/python-modules/pyscaffold/default.nix
···
certifi,
flake8,
pytest,
-
pytest-cov-stub,
+
pytest-cov,
pytest-randomly,
pytest-xdist,
sphinx,
···
flake8
pre-commit
pytest
-
pytest-cov-stub
+
pytest-cov
pytest-randomly
pytest-xdist
setuptools
+2 -2
pkgs/development/python-modules/pyscaffoldext-cookiecutter/default.nix
···
configupdater,
pre-commit,
pytest,
-
pytest-cov-stub,
+
pytest-cov,
pytest-xdist,
tox,
virtualenv,
···
configupdater
pre-commit
pytest
-
pytest-cov-stub
+
pytest-cov
pytest-xdist
setuptools-scm
tox
+2 -2
pkgs/development/python-modules/pyscaffoldext-custom-extension/default.nix
···
pyscaffold,
pre-commit,
pytest,
-
pytest-cov-stub,
+
pytest-cov,
pytest-xdist,
tox,
virtualenv,
···
configupdater
pre-commit
pytest
-
pytest-cov-stub
+
pytest-cov
pytest-xdist
setuptools-scm
tox
+2 -2
pkgs/development/python-modules/pyscaffoldext-django/default.nix
···
configupdater,
pre-commit,
pytest,
-
pytest-cov-stub,
+
pytest-cov,
pytest-xdist,
tox,
virtualenv,
···
configupdater
pre-commit
pytest
-
pytest-cov-stub
+
pytest-cov
pytest-xdist
setuptools-scm
tox
+2 -2
pkgs/development/python-modules/pyscaffoldext-dsproject/default.nix
···
configupdater,
pre-commit,
pytest,
-
pytest-cov-stub,
+
pytest-cov,
pytest-xdist,
tox,
virtualenv,
···
configupdater
pre-commit
pytest
-
pytest-cov-stub
+
pytest-cov
pytest-xdist
setuptools-scm
tox
+2 -2
pkgs/development/python-modules/pyscaffoldext-markdown/default.nix
···
configupdater,
pre-commit,
pytest,
-
pytest-cov-stub,
+
pytest-cov,
pytest-xdist,
tox,
twine,
···
configupdater
pre-commit
pytest
-
pytest-cov-stub
+
pytest-cov
pytest-xdist
setuptools-scm
tox
+2 -2
pkgs/development/python-modules/pyscaffoldext-travis/default.nix
···
configupdater,
pre-commit,
pytest,
-
pytest-cov-stub,
+
pytest-cov,
pytest-xdist,
tox,
virtualenv,
···
configupdater
pre-commit
pytest
-
pytest-cov-stub
+
pytest-cov
pytest-xdist
setuptools-scm
tox
+2 -6
pkgs/development/python-modules/reikna/default.nix
···
buildPythonPackage,
sphinx,
pytest-cov-stub,
-
pytest,
+
pytestCheckHook,
mako,
numpy,
funcsigs,
···
nativeCheckInputs = [
sphinx
pytest-cov-stub
-
pytest
+
pytestCheckHook
];
propagatedBuildInputs =
···
]
++ lib.optional withCuda pycuda
++ lib.optional withOpenCL pyopencl;
-
-
checkPhase = ''
-
py.test
-
'';
# Requires device
doCheck = false;
+2 -2
pkgs/development/python-modules/sanic-ext/default.nix
···
msgspec,
pydantic,
pytest,
-
pytest-cov,
+
pytest-cov-stub,
pytest-asyncio,
tox,
jinja2,
···
msgspec
pydantic
pytest
-
pytest-cov
+
pytest-cov-stub
pytest-asyncio
tox
jinja2
+2 -2
pkgs/development/python-modules/sklearn-compat/default.nix
···
scikit-learn,
pandas,
pytestCheckHook,
-
pytest-cov,
+
pytest-cov-stub,
pytest-xdist,
pytz,
}:
···
nativeCheckInputs = [
pandas
pytestCheckHook
-
pytest-cov
+
pytest-cov-stub
pytest-xdist
pytz
];
+2 -6
pkgs/servers/isso/default.nix
···
'';
nativeCheckInputs = [
-
pytest
-
pytest-cov
+
pytestCheckHook
+
pytest-cov-stub
];
-
-
checkPhase = ''
-
pytest
-
'';
passthru.tests = { inherit (nixosTests) isso; };
+1 -1
pkgs/tools/audio/beets/common.nix
···
with python3Packages;
[
pytestCheckHook
-
pytest-cov
+
pytest-cov-stub
mock
rarfile
responses