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

This commit is contained in:
Peder Bergebakken Sundt
2025-06-20 01:10:23 +02:00
committed by GitHub
41 changed files with 95 additions and 92 deletions
@@ -68,7 +68,7 @@ let
nativeCheckInputs = with pypkgs; [
pytestCheckHook
pytest-twisted
pytest-cov
pytest-cov-stub
mock
mccabe
pylint
+1 -1
View File
@@ -57,7 +57,7 @@ bepastyPython.pkgs.buildPythonPackage rec {
build
flake8
pytestCheckHook
pytest-cov
pytest-cov-stub
selenium
tox
twine
+2 -2
View File
@@ -40,14 +40,14 @@ buildPythonApplication rec {
nativeCheckInputs = [
hypothesis
pytest
pytestCheckHook
pytest-recording
pyyaml
mypy-extensions
click
pylint
flake8
pytest-cov
pytest-cov-stub
pyyaml
];
+1 -1
View File
@@ -58,7 +58,7 @@ python.pkgs.buildPythonApplication rec {
coverage
flask-webtest
pyquery
pytest-cov
pytest-cov-stub
pytest-httpserver
pytest-lazy-fixtures
pytest-smtpd
+1 -1
View File
@@ -51,7 +51,7 @@ python3.pkgs.buildPythonApplication rec {
nativeCheckInputs = with python3.pkgs; [
pytestCheckHook
pytest-cov
pytest-cov-stub
];
checkInputs = with python3.pkgs; [
+1 -1
View File
@@ -32,7 +32,7 @@ python3Packages.buildPythonPackage rec {
dontUseCmakeConfigure = true; # cmake is used for testing
nativeCheckInputs = with python3Packages; [
pytest
pytestCheckHook
pytest-cov-stub
];
+1 -1
View File
@@ -36,7 +36,7 @@ python3.pkgs.buildPythonApplication rec {
nativeCheckInputs = with python3.pkgs; [
pytest-cov-stub
pytest
pytestCheckHook
git
];
+6 -4
View File
@@ -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;
};
}
+1 -1
View File
@@ -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
]
+1 -1
View File
@@ -44,7 +44,7 @@ python3Packages.buildPythonApplication rec {
flake8
mock
pytestCheckHook
pytest-cov
pytest-cov-stub
requests
versionCheckHook
writableTmpDirAsHomeHook
+2 -2
View File
@@ -27,9 +27,9 @@ python3Packages.buildPythonApplication rec {
];
nativeCheckInputs = with python3Packages; [
pytest
pytestCheckHook
pytest-asyncio
pytest-cov
pytest-cov-stub
];
pythonRelaxDeps = [
+1 -1
View File
@@ -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
+1 -1
View File
@@ -116,7 +116,7 @@ python3.pkgs.buildPythonApplication rec {
with python3.pkgs;
[
pytestCheckHook
pytest-cov
pytest-cov # cannot use stub
versionCheckHook
]
++ runtimeDeps;
+14 -9
View File
@@ -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; {
+3 -3
View File
@@ -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
+1 -1
View File
@@ -67,7 +67,7 @@ buildPythonApplication rec {
]
++ (with python3.pkgs; [
pytestCheckHook
pytest-cov
pytest-cov-stub
pytest-mock
]);
@@ -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
@@ -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
@@ -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
];
@@ -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" ];
@@ -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
@@ -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
];
@@ -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
];
@@ -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
@@ -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
@@ -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; [ ];
};
}
@@ -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
];
@@ -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
];
@@ -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 = {
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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;
@@ -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
@@ -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
];
+2 -6
View File
@@ -66,14 +66,10 @@ buildPythonApplication rec {
'';
nativeCheckInputs = [
pytest
pytest-cov
pytestCheckHook
pytest-cov-stub
];
checkPhase = ''
pytest
'';
passthru.tests = { inherit (nixosTests) isso; };
meta = with lib; {
+1 -1
View File
@@ -145,7 +145,7 @@ python3Packages.buildPythonApplication {
with python3Packages;
[
pytestCheckHook
pytest-cov
pytest-cov-stub
mock
rarfile
responses