lol

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

authored by

Peder Bergebakken Sundt and committed by
GitHub
8db84afa ba7e981b

+95 -92
+1 -1
pkgs/applications/networking/p2p/deluge/default.nix
··· 68 68 nativeCheckInputs = with pypkgs; [ 69 69 pytestCheckHook 70 70 pytest-twisted 71 - pytest-cov 71 + pytest-cov-stub 72 72 mock 73 73 mccabe 74 74 pylint
+1 -1
pkgs/by-name/be/bepasty/package.nix
··· 57 57 build 58 58 flake8 59 59 pytestCheckHook 60 - pytest-cov 60 + pytest-cov-stub 61 61 selenium 62 62 tox 63 63 twine
+2 -2
pkgs/by-name/bu/buku/package.nix
··· 40 40 41 41 nativeCheckInputs = [ 42 42 hypothesis 43 - pytest 43 + pytestCheckHook 44 44 pytest-recording 45 45 pyyaml 46 46 mypy-extensions 47 47 click 48 48 pylint 49 49 flake8 50 - pytest-cov 50 + pytest-cov-stub 51 51 pyyaml 52 52 ]; 53 53
+1 -1
pkgs/by-name/ca/canaille/package.nix
··· 58 58 coverage 59 59 flask-webtest 60 60 pyquery 61 - pytest-cov 61 + pytest-cov-stub 62 62 pytest-httpserver 63 63 pytest-lazy-fixtures 64 64 pytest-smtpd
+1 -1
pkgs/by-name/cl/cloudsmith-cli/package.nix
··· 51 51 52 52 nativeCheckInputs = with python3.pkgs; [ 53 53 pytestCheckHook 54 - pytest-cov 54 + pytest-cov-stub 55 55 ]; 56 56 57 57 checkInputs = with python3.pkgs; [
+1 -1
pkgs/by-name/fa/fastcov/package.nix
··· 32 32 dontUseCmakeConfigure = true; # cmake is used for testing 33 33 34 34 nativeCheckInputs = with python3Packages; [ 35 - pytest 35 + pytestCheckHook 36 36 pytest-cov-stub 37 37 ]; 38 38
+1 -1
pkgs/by-name/gi/git-pw/package.nix
··· 36 36 37 37 nativeCheckInputs = with python3.pkgs; [ 38 38 pytest-cov-stub 39 - pytest 39 + pytestCheckHook 40 40 git 41 41 ]; 42 42
+6 -4
pkgs/by-name/gi/gitfs/package.nix
··· 27 27 ''; 28 28 29 29 nativeCheckInputs = with python3Packages; [ 30 - pytest 31 - pytest-cov 30 + pytestCheckHook 31 + pytest-cov-stub 32 32 mock 33 33 ]; 34 34 propagatedBuildInputs = with python3Packages; [ ··· 38 38 six 39 39 ]; 40 40 41 - checkPhase = "py.test"; 42 - doCheck = false; 41 + pythonImportsCheck = [ "gitfs" ]; 43 42 44 43 meta = { 45 44 description = "FUSE filesystem that fully integrates with git"; ··· 53 52 platforms = lib.platforms.unix; 54 53 maintainers = [ lib.maintainers.robbinch ]; 55 54 mainProgram = "gitfs"; 55 + # requires <=python39, otherwise you get this at runtime: 56 + # AttributeError: module 'collections' has no attribute 'MutableMapping' 57 + broken = true; 56 58 }; 57 59 }
+1 -1
pkgs/by-name/me/memray/package.nix
··· 44 44 with python3Packages; 45 45 [ 46 46 ipython 47 - pytest-cov # fix Unknown pytest.mark.no_cover 47 + pytest-cov-stub # fix Unknown pytest.mark.no_cover 48 48 pytest-textual-snapshot 49 49 pytestCheckHook 50 50 ]
+1 -1
pkgs/by-name/pa/patroni/package.nix
··· 44 44 flake8 45 45 mock 46 46 pytestCheckHook 47 - pytest-cov 47 + pytest-cov-stub 48 48 requests 49 49 versionCheckHook 50 50 writableTmpDirAsHomeHook
+2 -2
pkgs/by-name/re/rexi/package.nix
··· 27 27 ]; 28 28 29 29 nativeCheckInputs = with python3Packages; [ 30 - pytest 30 + pytestCheckHook 31 31 pytest-asyncio 32 - pytest-cov 32 + pytest-cov-stub 33 33 ]; 34 34 35 35 pythonRelaxDeps = [
+1 -1
pkgs/by-name/so/solaar/package.nix
··· 58 58 nativeCheckInputs = with python3Packages; [ 59 59 pytestCheckHook 60 60 pytest-mock 61 - pytest-cov 61 + pytest-cov-stub 62 62 ]; 63 63 64 64 # the -cli symlink is just to maintain compabilility with older versions where
+1 -1
pkgs/by-name/un/unblob/package.nix
··· 116 116 with python3.pkgs; 117 117 [ 118 118 pytestCheckHook 119 - pytest-cov 119 + pytest-cov # cannot use stub 120 120 versionCheckHook 121 121 ] 122 122 ++ runtimeDeps;
+14 -9
pkgs/by-name/vi/vim-vint/package.nix
··· 1 1 { 2 2 lib, 3 3 python3Packages, 4 - fetchPypi, 4 + fetchFromGitHub, 5 5 }: 6 6 7 7 with python3Packages; ··· 10 10 pname = "vim-vint"; 11 11 version = "0.3.21"; 12 12 13 - src = fetchPypi { 14 - inherit pname version; 15 - sha256 = "15qdh8fby9xgfjxidcfv1xmrqqrxxapky7zmyn46qx1abhp9piax"; 13 + src = fetchFromGitHub { 14 + owner = "Vimjas"; 15 + repo = "vint"; 16 + tag = "v${version}"; 17 + hash = "sha256-A0yXDkB/b9kEEXSoLeqVdmdm4p2PYL2QHqbF4FgAn30="; 16 18 }; 17 19 18 20 # For python 3.5 > version > 2.7 , a nested dependency (pythonPackages.hypothesis) fails. 19 21 disabled = !pythonAtLeast "3.5"; 20 22 21 23 nativeCheckInputs = [ 22 - pytest 23 - pytest-cov 24 + pytestCheckHook 25 + pytest-cov-stub 24 26 ]; 25 27 propagatedBuildInputs = [ 26 28 ansicolor ··· 29 31 setuptools 30 32 ]; 31 33 32 - # Unpin test dependency versions. This is fixed in master but not yet released. 33 34 preCheck = '' 34 - sed -i 's/==.*//g' test-requirements.txt 35 - sed -i 's/mock == 1.0.1/mock/g' setup.py 35 + substituteInPlace \ 36 + test/acceptance/test_cli.py \ 37 + test/acceptance/test_cli_vital.py \ 38 + --replace-fail \ 39 + "cmd = ['bin/vint'" \ 40 + "cmd = ['$out/bin/vint'" 36 41 ''; 37 42 38 43 meta = with lib; {
+3 -3
pkgs/by-name/vu/vulnix/package.nix
··· 28 28 29 29 nativeCheckInputs = with python3Packages; [ 30 30 freezegun 31 - pytest 32 - pytest-cov 31 + pytestCheckHook 32 + pytest-cov-stub 33 33 ]; 34 34 35 35 propagatedBuildInputs = ··· 48 48 49 49 postBuild = "make -C doc"; 50 50 51 - checkPhase = "py.test src/vulnix"; 51 + pytestFlagsArray = [ "src/vulnix" ]; 52 52 53 53 postInstall = '' 54 54 install -D -t $doc/share/doc/vulnix README.rst CHANGES.rst
+1 -1
pkgs/by-name/zu/zulip-term/package.nix
··· 67 67 ] 68 68 ++ (with python3.pkgs; [ 69 69 pytestCheckHook 70 - pytest-cov 70 + pytest-cov-stub 71 71 pytest-mock 72 72 ]); 73 73
+2 -2
pkgs/development/python-modules/colcon-mixin/default.nix
··· 3 3 buildPythonPackage, 4 4 fetchFromGitHub, 5 5 colcon, 6 - pytest-cov, 6 + pytest-cov-stub, 7 7 pytestCheckHook, 8 8 setuptools, 9 9 scspell, ··· 29 29 ]; 30 30 31 31 nativeCheckInputs = [ 32 - pytest-cov 32 + pytest-cov-stub 33 33 pytestCheckHook 34 34 scspell 35 35 writableTmpDirAsHomeHook
+2 -2
pkgs/development/python-modules/colcon-ros-domain-id-coordinator/default.nix
··· 4 4 colcon, 5 5 fetchFromGitHub, 6 6 pytestCheckHook, 7 - pytest-cov, 7 + pytest-cov-stub, 8 8 pytest-repeat, 9 9 pytest-rerunfailures, 10 10 scspell, ··· 30 30 31 31 nativeCheckInputs = [ 32 32 pytestCheckHook 33 - pytest-cov 33 + pytest-cov-stub 34 34 pytest-repeat 35 35 pytest-rerunfailures 36 36 scspell
+2 -2
pkgs/development/python-modules/deltalake/default.nix
··· 12 12 polars, 13 13 pytestCheckHook, 14 14 pytest-benchmark, 15 - pytest-cov, 15 + pytest-cov-stub, 16 16 pytest-mock, 17 17 pandas, 18 18 azure-storage-blob, ··· 64 64 pandas 65 65 polars 66 66 pytest-benchmark 67 - pytest-cov 67 + pytest-cov-stub 68 68 pytest-mock 69 69 azure-storage-blob 70 70 ];
+2 -2
pkgs/development/python-modules/dramatiq-abort/default.nix
··· 4 4 fetchFromGitHub, 5 5 gevent, 6 6 pytestCheckHook, 7 - pytest-cov, 7 + pytest-cov-stub, 8 8 dramatiq, 9 9 redis, 10 10 setuptools, ··· 37 37 nativeCheckInputs = [ 38 38 redis 39 39 pytestCheckHook 40 - pytest-cov 40 + pytest-cov-stub 41 41 ]; 42 42 43 43 pythonImportsCheck = [ "dramatiq_abort" ];
+2 -2
pkgs/development/python-modules/haystack-ai/default.nix
··· 42 42 pylint, 43 43 pytest, 44 44 pytest-asyncio, 45 - pytest-cov-stub, 45 + pytest-cov, 46 46 # , pytest-custom-exit-code 47 47 python-multipart, 48 48 reno, ··· 167 167 pylint 168 168 pytest 169 169 pytest-asyncio 170 - pytest-cov-stub 170 + pytest-cov 171 171 # pytest-custom-exit-code 172 172 python-multipart 173 173 reno
+2 -2
pkgs/development/python-modules/iocapture/default.nix
··· 3 3 buildPythonPackage, 4 4 fetchPypi, 5 5 flexmock, 6 - pytest, 6 + pytestCheckHook, 7 7 pytest-cov-stub, 8 8 six, 9 9 }: ··· 20 20 21 21 nativeCheckInputs = [ 22 22 flexmock 23 - pytest 23 + pytestCheckHook 24 24 pytest-cov-stub 25 25 six 26 26 ];
+2 -2
pkgs/development/python-modules/langchain-perplexity/default.nix
··· 13 13 # tests 14 14 langchain-tests, 15 15 pytest-asyncio, 16 - pytest-cov, 16 + pytest-cov-stub, 17 17 pytest-mock, 18 18 pytestCheckHook, 19 19 ··· 51 51 nativeCheckInputs = [ 52 52 langchain-tests 53 53 pytest-asyncio 54 - pytest-cov 54 + pytest-cov-stub 55 55 pytest-mock 56 56 pytestCheckHook 57 57 ];
+2 -2
pkgs/development/python-modules/nonbloat-db/default.nix
··· 14 14 # tests 15 15 pytestCheckHook, 16 16 pytest-asyncio, 17 - pytest-cov, 17 + pytest-cov-stub, 18 18 pytest-mock, 19 19 pytest-randomly, 20 20 faker, ··· 45 45 nativeCheckInputs = [ 46 46 pytestCheckHook 47 47 pytest-asyncio 48 - pytest-cov 48 + pytest-cov-stub 49 49 pytest-mock 50 50 pytest-randomly 51 51 faker
+2 -2
pkgs/development/python-modules/pdfplumber/default.nix
··· 11 11 pdfminer-six, 12 12 pillow, 13 13 pypdfium2, 14 - pytest-cov, 14 + pytest-cov-stub, 15 15 pytest-parallel, 16 16 pytestCheckHook, 17 17 types-pillow, ··· 44 44 nbexec 45 45 pandas 46 46 pandas-stubs 47 - pytest-cov 47 + pytest-cov-stub 48 48 pytest-parallel 49 49 pytestCheckHook 50 50 types-pillow
+10 -6
pkgs/development/python-modules/plaster/default.nix
··· 1 1 { 2 + lib, 2 3 buildPythonPackage, 3 4 fetchPypi, 4 - pytest, 5 + pytestCheckHook, 5 6 pytest-cov-stub, 6 7 }: 7 8 ··· 15 16 hash = "sha256-+L78VL+MEUfBCrQCl+yEwmdvotTqXW9STZQ2qAB075g="; 16 17 }; 17 18 18 - checkPhase = '' 19 - py.test 20 - ''; 21 - 22 19 nativeCheckInputs = [ 23 - pytest 20 + pytestCheckHook 24 21 pytest-cov-stub 25 22 ]; 23 + 24 + meta = { 25 + description = "Loader interface around multiple config file formats"; 26 + homepage = "https://pypi.org/project/plaster/"; 27 + license = lib.licenses.mit; 28 + maintainers = with lib.maintainers; [ ]; 29 + }; 26 30 }
+2 -2
pkgs/development/python-modules/polars/default.nix
··· 9 9 pkgs, # zstd hidden by python3Packages.zstd 10 10 pytestCheckHook, 11 11 pytest-codspeed ? null, # Not in Nixpkgs 12 - pytest-cov, 12 + pytest-cov-stub, 13 13 pytest-xdist, 14 14 pytest-benchmark, 15 15 rustc, ··· 229 229 nativeCheckInputs = [ 230 230 pytestCheckHook 231 231 pytest-codspeed 232 - pytest-cov 232 + pytest-cov-stub 233 233 pytest-xdist 234 234 pytest-benchmark 235 235 ];
+2 -2
pkgs/development/python-modules/property-manager/default.nix
··· 5 5 humanfriendly, 6 6 verboselogs, 7 7 coloredlogs, 8 - pytest, 8 + pytestCheckHook, 9 9 pytest-cov-stub, 10 10 }: 11 11 ··· 27 27 verboselogs 28 28 ]; 29 29 nativeCheckInputs = [ 30 - pytest 30 + pytestCheckHook 31 31 pytest-cov-stub 32 32 ]; 33 33
+2 -2
pkgs/development/python-modules/pygerber/default.nix
··· 26 26 dulwich, 27 27 tzlocal, 28 28 pytest-xdist, 29 - pytest-cov, 30 29 pytest-lsp, 31 30 pytest-asyncio, 32 31 pytest-mock, ··· 77 76 78 77 nativeCheckInputs = [ 79 78 pytest-asyncio 80 - pytest-cov 81 79 pytest-xdist 82 80 pytest-lsp 83 81 pytest-mock ··· 93 91 "test/gerberx3/test_assets.py" 94 92 "test/gerberx3/test_language_server/tests.py" 95 93 ]; 94 + 95 + pytestFlagsArray = [ "--override-ini required_plugins=''" ]; 96 96 97 97 pythonImportsCheck = [ "pygerber" ]; 98 98
+2 -2
pkgs/development/python-modules/pyscaffold/default.nix
··· 23 23 certifi, 24 24 flake8, 25 25 pytest, 26 - pytest-cov-stub, 26 + pytest-cov, 27 27 pytest-randomly, 28 28 pytest-xdist, 29 29 sphinx, ··· 80 80 flake8 81 81 pre-commit 82 82 pytest 83 - pytest-cov-stub 83 + pytest-cov 84 84 pytest-randomly 85 85 pytest-xdist 86 86 setuptools
+2 -2
pkgs/development/python-modules/pyscaffoldext-cookiecutter/default.nix
··· 11 11 configupdater, 12 12 pre-commit, 13 13 pytest, 14 - pytest-cov-stub, 14 + pytest-cov, 15 15 pytest-xdist, 16 16 tox, 17 17 virtualenv, ··· 44 44 configupdater 45 45 pre-commit 46 46 pytest 47 - pytest-cov-stub 47 + pytest-cov 48 48 pytest-xdist 49 49 setuptools-scm 50 50 tox
+2 -2
pkgs/development/python-modules/pyscaffoldext-custom-extension/default.nix
··· 11 11 pyscaffold, 12 12 pre-commit, 13 13 pytest, 14 - pytest-cov-stub, 14 + pytest-cov, 15 15 pytest-xdist, 16 16 tox, 17 17 virtualenv, ··· 45 45 configupdater 46 46 pre-commit 47 47 pytest 48 - pytest-cov-stub 48 + pytest-cov 49 49 pytest-xdist 50 50 setuptools-scm 51 51 tox
+2 -2
pkgs/development/python-modules/pyscaffoldext-django/default.nix
··· 10 10 configupdater, 11 11 pre-commit, 12 12 pytest, 13 - pytest-cov-stub, 13 + pytest-cov, 14 14 pytest-xdist, 15 15 tox, 16 16 virtualenv, ··· 42 42 configupdater 43 43 pre-commit 44 44 pytest 45 - pytest-cov-stub 45 + pytest-cov 46 46 pytest-xdist 47 47 setuptools-scm 48 48 tox
+2 -2
pkgs/development/python-modules/pyscaffoldext-dsproject/default.nix
··· 11 11 configupdater, 12 12 pre-commit, 13 13 pytest, 14 - pytest-cov-stub, 14 + pytest-cov, 15 15 pytest-xdist, 16 16 tox, 17 17 virtualenv, ··· 44 44 configupdater 45 45 pre-commit 46 46 pytest 47 - pytest-cov-stub 47 + pytest-cov 48 48 pytest-xdist 49 49 setuptools-scm 50 50 tox
+2 -2
pkgs/development/python-modules/pyscaffoldext-markdown/default.nix
··· 11 11 configupdater, 12 12 pre-commit, 13 13 pytest, 14 - pytest-cov-stub, 14 + pytest-cov, 15 15 pytest-xdist, 16 16 tox, 17 17 twine, ··· 46 46 configupdater 47 47 pre-commit 48 48 pytest 49 - pytest-cov-stub 49 + pytest-cov 50 50 pytest-xdist 51 51 setuptools-scm 52 52 tox
+2 -2
pkgs/development/python-modules/pyscaffoldext-travis/default.nix
··· 10 10 configupdater, 11 11 pre-commit, 12 12 pytest, 13 - pytest-cov-stub, 13 + pytest-cov, 14 14 pytest-xdist, 15 15 tox, 16 16 virtualenv, ··· 42 42 configupdater 43 43 pre-commit 44 44 pytest 45 - pytest-cov-stub 45 + pytest-cov 46 46 pytest-xdist 47 47 setuptools-scm 48 48 tox
+2 -6
pkgs/development/python-modules/reikna/default.nix
··· 4 4 buildPythonPackage, 5 5 sphinx, 6 6 pytest-cov-stub, 7 - pytest, 7 + pytestCheckHook, 8 8 mako, 9 9 numpy, 10 10 funcsigs, ··· 27 27 nativeCheckInputs = [ 28 28 sphinx 29 29 pytest-cov-stub 30 - pytest 30 + pytestCheckHook 31 31 ]; 32 32 33 33 propagatedBuildInputs = ··· 38 38 ] 39 39 ++ lib.optional withCuda pycuda 40 40 ++ lib.optional withOpenCL pyopencl; 41 - 42 - checkPhase = '' 43 - py.test 44 - ''; 45 41 46 42 # Requires device 47 43 doCheck = false;
+2 -2
pkgs/development/python-modules/sanic-ext/default.nix
··· 18 18 msgspec, 19 19 pydantic, 20 20 pytest, 21 - pytest-cov, 21 + pytest-cov-stub, 22 22 pytest-asyncio, 23 23 tox, 24 24 jinja2, ··· 51 51 msgspec 52 52 pydantic 53 53 pytest 54 - pytest-cov 54 + pytest-cov-stub 55 55 pytest-asyncio 56 56 tox 57 57 jinja2
+2 -2
pkgs/development/python-modules/sklearn-compat/default.nix
··· 6 6 scikit-learn, 7 7 pandas, 8 8 pytestCheckHook, 9 - pytest-cov, 9 + pytest-cov-stub, 10 10 pytest-xdist, 11 11 pytz, 12 12 }: ··· 34 34 nativeCheckInputs = [ 35 35 pandas 36 36 pytestCheckHook 37 - pytest-cov 37 + pytest-cov-stub 38 38 pytest-xdist 39 39 pytz 40 40 ];
+2 -6
pkgs/servers/isso/default.nix
··· 66 66 ''; 67 67 68 68 nativeCheckInputs = [ 69 - pytest 70 - pytest-cov 69 + pytestCheckHook 70 + pytest-cov-stub 71 71 ]; 72 - 73 - checkPhase = '' 74 - pytest 75 - ''; 76 72 77 73 passthru.tests = { inherit (nixosTests) isso; }; 78 74
+1 -1
pkgs/tools/audio/beets/common.nix
··· 145 145 with python3Packages; 146 146 [ 147 147 pytestCheckHook 148 - pytest-cov 148 + pytest-cov-stub 149 149 mock 150 150 rarfile 151 151 responses